/create-skill:create-skillfrom create-skill
Scaffold a new Claude Code skill directory. Use when user says /create-skill.
Ships in create-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scaffold a new .claude/skills/{folder-name}/ skill directory that follows the multi-YAML pattern. Produces the canonical file set in the current project. Validation runs automatically on Stop using the plugin's own bundled infra — no project setup required.
.claude/skills/{folder-name}/)${CLAUDE_PLUGIN_ROOT}/infra/install-and-validate.sh, which installs the bundled validation infra into the project's .claude/ and runs the structure check.This plugin is installed as a Claude Code plugin and auto-discovered — its files live in the plugin cache, not in the project. ${CLAUDE_PLUGIN_ROOT} is only available to hook processes, not to the model's Bash calls, so:
${CLAUDE_PLUGIN_ROOT}/infra/..claude/ (idempotent). That is what makes the Stop hooks of skills you generate work — they reference the now-present .claude/Taskfile.skills.yaml.check-structure over the project's skills, including the one just created.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 the Stop hook |
sharp-edges.yaml | Edge cases and gotchas |
collaboration.yaml | Dependencies and triggers |
mkdir -p .claude/skills/{folder-name}/task -t .claude/Taskfile.skills.yaml validate-skill -- --skill {folder-name}
(the create-skill Stop hook installs that Taskfile into the project, so it resolves)name:task -t .claude/Taskfile.skills.yaml validate-skill -- --skill {folder-name}infra/ and reached via ${CLAUDE_PLUGIN_ROOT} from the Stop hook onlySee skill.yaml for the full procedure and patterns.
See sharp-edges.yaml for common failure modes.
What SKILL.md sets; muted values are Claude Code's defaults
*bash ${CLAUDE_PLUGIN_ROOT}/infra/install-and-validate.shOther plugins' skills for the same job
npx claudepluginhub dohernandez/claude-skills --plugin create-skill