✨ Add declarative composition frontmatter to skills#55
Conversation
Introduces four optional frontmatter fields for skill composition: - next-skill: happy-path handoff target (skill or command name) - requires: prerequisites as skill:/tool:/mcp: entries - model-hint: preferred model tier when delegated as a subagent - stability: stable|experimental maturity marker Annotates three existing chains: - brainstorming → brainstorm-synthesis (model-hint: sonnet) - brainstorm-synthesis → ship (model-hint: opus, requires: brainstorming) - systematic-debugging → verify-fix (model-hint: opus) Documents the schema in .claude/CLAUDE.md and plugins/core/skills/CLAUDE.md. No existing skills break — fields are optional and harness-ignored. Fixes #52 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Code ReviewClean, well-scoped PR. The four-field design is the right call — Strengths
Issues
The PR describes Compare: Suggest adding to requires:
- skill:systematic-debugging
All four fields appear in the docs, but zero annotated skills use NitThe docs table lists SummaryMerge-ready after addressing |
- Add stability: experimental to mcp-debug to demonstrate the field - Clarify requires is a YAML sequence (not a comma-separated string) - Add note that commands don't have SKILL.md so can't declare requires Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Fixed in 056c3d7:
|
Code ReviewClean, minimal PR with solid documentation. The proven-pattern approach (harness-ignores, LLM-reads) is the right call for zero-infrastructure adoption. A few things worth considering: The
|
|
Addressed in PR #57. Fixed: next-skill handoff convention (safety), stability: experimental demo, docs wording consistency. Declined: verify-fix requires (it is a command, not a skill — commands cannot declare requires back) and systematic-debugging requires (chain source with no upstream prerequisites). |
|
Triage of this review:
|
Summary
next-skill,requires,model-hint, andstability.claude/CLAUDE.md(dev guide) andplugins/core/skills/CLAUDE.md(skill-creation guide)Design Decisions
Why only four fields (not all eight proposed in the issue):
pipeline,next-skill-args,handoff, andcost-tierwere omitted. They add complexity without immediate runtime value —next-skillalone handles 80% of the composition signal. Fewer fields → easier to adopt, easier to keep consistent.No new infrastructure:
Claude Code's harness ignores unknown frontmatter fields. The LLM reads
next-skillas part of the skill content and invokes the handoff. This is exactly howtriggers,category, andversionalready work — proven pattern, zero harness changes required.requiresformat (skill:name,tool:name,mcp:name):Machine-parseable prefix makes future
/ai-coding-config doctorvalidation straightforward without any ambiguity about what type of dependency is declared.Annotated chains
brainstorming→brainstorm-synthesis→shipsystematic-debugging→verify-fixComplexity
balanced
Validation
validate-marketplaceCI check covers plugin manifestFixes #52