feat(skills): group skills by category + surface when_to_use - #17
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… prompt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
categoryandwhen_to_usefrom each skill's SKILL.md frontmatter (Skillgains both fields; defaults:category→tool,when_to_use→empty, so un-migrated skills still work).format_skills_xmlnow groups skills into<skill_group category="…">blocks in a fixed order (tool, workflow, report, then any extras sorted) and surfaces<when_to_use>per skill — giving the agent the signal to choose/compose skills.categorya skill declares (unknown categories still shown); the vocabulary/rules live in the ai-skills repo, not here.This is Phase A (skills foundation) of the River-style strategy. The companion ai-skills changes (Lean+ SKILL.md contract, curated 7-skill catalog, competitor-brief workflow) land in the ai-skills repo.
Test Plan
cargo test --bin cica skills— 12 passcargo clippy --all-targets -- -D warnings— 0cargo fmt --check— cleancategoryrenders undertool; emptycategory:line also defaults totool🤖 Generated with Claude Code