Skip to content

fix(compatibility): log warning when skill file fails to parse - #66979

Closed
prascli wants to merge 1 commit into
anomalyco:v2from
prascli:fix/66970-log-skipped-skills-v2
Closed

prascli wants to merge 1 commit into
anomalyco:v2from
prascli:fix/66970-log-skipped-skills-v2

Conversation

@prascli

@prascli prascli commented Nov 28, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #66970

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When a SKILL.md file from a compatibility root (Claude/agents) fails to parse, it was silently dropped without any log output. This makes debugging difficult when users expect their skills to load but they don't appear in the skills list.

This change adds warning logs for both skip reasons:

  • markdown: frontmatter block cannot be read at all
  • frontmatter: frontmatter decodes into wrong shape (includes the schema issue details)

This matches the logging behavior of the native skill loader (agent.ts) and command loader (command.ts).

How did you verify your code works?

  • Created a skill with invalid frontmatter (description as array instead of string)
  • Verified that a warning log is now emitted with the filepath and reason
  • Verified that valid skills still load correctly

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

When a SKILL.md file from a compatibility root (Claude/agents) fails to parse,
it was silently dropped without any log output. This makes debugging difficult
when users expect their skills to load but they don't appear in the skills list.

This change adds warning logs for both skip reasons:
- markdown: frontmatter block cannot be read
- frontmatter: frontmatter decodes into wrong shape

This matches the logging behavior of the native skill loader (agent.ts) and
command loader (command.ts).

Fixes anomalyco#66970

Signed-off-by: Indra Prasetya <11029197+prascli@users.noreply.github.com>
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Nov 28, 2026
@opencodejr opencodejr Bot closed this Nov 28, 2026
@opencodejr

opencodejr Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Thanks for putting this together, @prascli!

The v2 branch was promoted to dev on 2026-10-10, and dev is now where all v2 work happens. This pull request targets v2, which is no longer used, so it's being closed automatically.

Please open it again with dev as the base branch. You can reuse the same head branch for the new pull request.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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