Repository navigation
feat(skills): fold when_to_use into description and validate against the Agent Skills spec - #154
Merged
Merged
Conversation
when_to_use is a Claude Code extension. Codex reads only name, description and metadata.short-description (codex-rs/skills/src/parser.rs), and the Agent Skills spec doesn't define the field, so Copilot, Cursor and other agents chose skills without the trigger guidance it held (e.g. FlexPanel's "ALWAYS use this skill when children must WRAP"). Each description is now the old description plus its when_to_use, verbatim. Claude Code already showed them joined, so nothing changes for it. The longest is 873 chars, under the spec's 1,024. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea
Runs the spec's reference validator (skills-ref) on every skill. It covers the name and description rules Test-Plugin.ps1 checked, with the stricter 1,024-char description limit, so those checks are removed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): Closes #165
PR Type
What is the current behavior?
Every skill splits its trigger guidance between
descriptionandwhen_to_use.when_to_useis a Claude Code extension:name,descriptionandmetadata.short-description(codex-rs/skills/src/parser.rsin openai/codex). It never seeswhen_to_use.skills-ref) rejects all 62 skills for this one field.So outside Claude Code, agents choose skills without their strongest trigger wording. For example, FlexPanel's "ALWAYS use this skill when children must WRAP onto multiple lines" never reaches them.
What is the new behavior?
descriptionis now its olddescriptionfollowed by itswhen_to_use, word for word, andwhen_to_useis removed. This applies to both the plugin copy and theskills/mirror, 124 files in total.descriptionequals the old two fields joined, and that every other frontmatter field is unchanged.validate-plugin.ymlnow runsagentskills validate(skills-ref 0.1.1) on every skill. It checks spec-only fields, name format, name matching its folder, required fields and descriptions up to 1,024 characters. That covers the name and length checks inTest-Plugin.ps1, so I removed them. The checks for links between skills and toreferences/files stay.This change is on
main, which is staging, so agents get it with the next release.PR Checklist
Additional Information
Testing:
agentskills validate. Before this change, all 62 failed.Test-Plugin.ps1and bothclaude plugin validate --strictruns pass, and the link check still catches a dangling skill link.🤖 Generated with Claude Code
https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea