Skip to content

fix(cli): scope skill metadata to frontmatter - #981

Open
WNZhao wants to merge 1 commit into
profullstack:masterfrom
WNZhao:fix/skills-frontmatter-boundary
Open

fix(cli): scope skill metadata to frontmatter#981
WNZhao wants to merge 1 commit into
profullstack:masterfrom
WNZhao:fix/skills-frontmatter-boundary

Conversation

@WNZhao

@WNZhao WNZhao commented Aug 24, 2026

Copy link
Copy Markdown

Summary

  • read inferred skill metadata only from a leading YAML frontmatter block
  • support BOM and LF/CRLF frontmatter boundaries
  • add a regression proving Markdown body examples cannot overwrite generated manifest metadata

Bug

sh1pt skills new searched the entire SKILL.md for name: and description: lines. A documentation example in ordinary Markdown body text was therefore treated as manifest metadata.

Before the fix, the regression generated body-example; after the fix it correctly falls back to the containing directory plain-skill.

Validation

  • pnpm exec vitest run packages/cli/src/commands/skills.test.ts --reporter=dot (18/18)
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant