Skip to content

feat(skills): split trigger text into when_to_use across every Claude skill - #258

Merged
st0nefish-ci[bot] merged 1 commit into
masterfrom
worktree-wip-skill-when-clauses
Nov 26, 2026
Merged

st0nefish-ci[bot] merged 1 commit into
masterfrom
worktree-wip-skill-when-clauses

Conversation

@St0nefish

Copy link
Copy Markdown
Owner

Summary

Every Claude-side skill now uses the proper frontmatter schema: description says what the skill does, when_to_use says 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 reads when_to_use (confirmed in the binary); OpenCode and Copilot read only description, so their copies carry the folded text.

  • 42 Claude skills: description/when_to_use split.
  • Copilot generator: utils/port-copilot-skills.py replaces the skills symlinks of 7 Copilot plugins (agentic-ide, convert-doc, elevated-edit, freecad, git-tools, image, stl-game-config) with generated real copies, folds when_to_use into description, enforces the 1024-char Agent Skills limit, refuses symlinks under destinations, and has a --check mode. Wired into utils/regen-generated.sh (now four stages).
  • Shared fold: 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.
  • Hand-maintained forks (Copilot java-toolkit, kb-capture, session, sf-code-review; OpenCode git-tools) keep the combined text in description.
  • Duplicates merged: java-toolkit setup into java-toolkit; kb-capture capture into kb-capture (argument dispatch added). READMEs updated.
  • Argument handling: the non-existent $IF(...) lines in java-toolkit and markdown are replaced with $ARGUMENTS prose; usage strings use the /plugin:skill form.
  • Docs: CLAUDE.md covers the convention, the generated-trees table, and the Copilot layout.
  • Versions: patch bumps for every touched plugin (Claude and Copilot kept equal), plus plugins-opencode/session.

Review: three review/triage/fix passes; all significant findings applied.

Test plan

Caveat: plugins-copilot/java-toolkit/commands/java-toolkit.md still uses $IF (Copilot command syntax, out of scope).

🤖 Generated with Claude Code

https://claude.ai/code/session_018KC1pVVZ3E6ui65fNGWfdT

… 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
@st0nefish-ci
st0nefish-ci Bot enabled auto-merge November 26, 2026 19:59
@st0nefish-ci
st0nefish-ci Bot merged commit 0e29e13 into master Nov 26, 2026
8 checks passed
@st0nefish-ci
st0nefish-ci Bot deleted the worktree-wip-skill-when-clauses branch November 26, 2026 20:04
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