Create Skill
Purpose
Scaffold a new .claude/skills/{folder-name}/ skill directory that follows the multi-YAML pattern. Produces the canonical file set and wires the Stop hook to validate-skill.
Quick Reference
- •Creates: SKILL.md, skill.yaml, validations.yaml, sharp-edges.yaml, collaboration.yaml
- •Requires: folder name, description, purpose
- •Stop hook:
task -t .claude/Taskfile.skills.yaml validate-skill -- --skill {folder-name}
Skill File Structure
Each skill directory contains:
| File | Purpose |
|---|---|
SKILL.md | Human-readable documentation (thin wrapper) |
skill.yaml | Machine-readable procedure, patterns, anti-patterns |
validations.yaml | Automated checks for Stop hook |
sharp-edges.yaml | Edge cases and gotchas |
collaboration.yaml | Dependencies and triggers |
Workflow
- •Discover operations - Run
task --listto find available validation targets - •Gather inputs - folder name, title, description, purpose
- •Create folder -
mkdir -p .claude/skills/{folder-name}/ - •Write files - Create all 5 canonical files
- •Validate - Run
task -t .claude/Taskfile.skills.yaml validate-skill -- --skill {folder-name}
Rules
- • Folder name must match SKILL.md frontmatter
name: - • SKILL.md should be thin (pointer-level only)
- • validations.yaml must only reference existing Task targets
- • Stop hook must call
task -t .claude/Taskfile.skills.yaml validate-skill -- --skill {folder-name}
Automation
See skill.yaml for the full procedure and patterns.
See sharp-edges.yaml for common failure modes.