Repository navigation
feat(skills): split trigger text into when_to_use across every Claude skill - #258
Merged
Merged
Conversation
… skill Every Claude-side skill now follows the skill schema: description says what the skill does, when_to_use says when to load it (trigger phrases and "Not for" sibling scope), user-only skills included. OpenCode and Copilot read only description, so their copies carry the folded text. - 42 plugins-claude skills: description/when_to_use split - utils/skill-frontmatter.py: shared fold of when_to_use into description - utils/port-copilot-skills.py: generated real copies replace the skills symlinks for 7 Copilot plugins; enforces the 1024-char limit; wired into regen-generated.sh with its own test suite - port-session-skills.py folds when_to_use and renders before writing - hand-maintained Copilot/OpenCode forks keep the combined description - merge duplicate skills: java-toolkit setup into java-toolkit, kb-capture capture into kb-capture (argument dispatch) - replace the $IF argument lines in java-toolkit and markdown with $ARGUMENTS prose; usage strings use /plugin:skill - CLAUDE.md: convention, generated-trees table, Copilot layout - patch version bumps for every touched plugin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018KC1pVVZ3E6ui65fNGWfdT
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.
Summary
Every Claude-side skill now uses the proper frontmatter schema:
descriptionsays what the skill does,when_to_usesays when to load it (trigger phrases, "Not for" sibling scope). User-only skills are included so they are ready if later made model-invocable. Claude Code readswhen_to_use(confirmed in the binary); OpenCode and Copilot read onlydescription, so their copies carry the folded text.utils/port-copilot-skills.pyreplaces theskillssymlinks of 7 Copilot plugins (agentic-ide, convert-doc, elevated-edit, freecad, git-tools, image, stl-game-config) with generated real copies, foldswhen_to_useintodescription, enforces the 1024-char Agent Skills limit, refuses symlinks under destinations, and has a--checkmode. Wired intoutils/regen-generated.sh(now four stages).utils/skill-frontmatter.py, also used by the OpenCode session porter, which now renders every skill before writing any. It raises on frontmatter shapes it cannot handle rather than writing wrong text.description.setupintojava-toolkit; kb-capturecaptureintokb-capture(argument dispatch added). READMEs updated.$IF(...)lines in java-toolkit and markdown are replaced with$ARGUMENTSprose; usage strings use the/plugin:skillform.plugins-opencode/session.Review: three review/triage/fix passes; all significant findings applied.
Test plan
utils/regen-generated.sh --check: all four trees cleantests/copilot-port/test-copilot-skills-port.sh44/44,tests/opencode/test-session-port.sh84/84,tests/ci/test-generated-drift.sh27/27when_to_uselint-shell.shcleantest.sh: only the permission-manager failures already fixed on master by fix(permission-manager): fail safe when analysis fails (jq depth, parse errors, write-check overflow) #257 (this branch predates it)Caveat:
plugins-copilot/java-toolkit/commands/java-toolkit.mdstill uses$IF(Copilot command syntax, out of scope).🤖 Generated with Claude Code
https://claude.ai/code/session_018KC1pVVZ3E6ui65fNGWfdT