npx skills add ...
npx skills add coleam00/skills --skill skills-create
Author a new Claude Code skill the house way, or refactor a fat skill into a lean SKILL.md + references/. Use when you want to "create a skill", "write a new skill", "turn a prompt or command into a skill", "split a skill into references", "trim a SKILL.md", or invoke /skills-create. The meta-skill — a skill that builds skills.
npx skills add coleam00/skills --skill skills-create
A skill that authors and refactors skills. Two jobs:
references/, move output shapes into templates/, trim
SKILL.md down to a lean spine of pointers.It's built the way it teaches: a lean body that defers detail to references/. That's progressive
disclosure, and this skill is its own worked example. It's all composable markdown: a skill is a
SKILL.md plus optional files the agent loads only when it reaches for them.
Be strict on how a skill is built and agnostic on what any given skill — or its output — should contain.
description · an
imperative, lean body · no duplication · every bundled file wired · deliberate invocation control · validation
that fits the skill type. (See references/skill-standards.md.)Strict on the craft so the author stays free on the content. (Guide, don't prescribe — and take-vs-build: you build a skill when you own the process and want it to follow YOUR way.)
Pin the type before applying the craft — the guidance is proportional, not one-size-fits-all:
| Type | What it is | Apply |
|---|---|---|
| Workflow | a multi-step procedure (plan, review, ship) | the full lens incl. verifiable validation gates |
| Artifact-generator | produces a document/output | Context-is-King + a suggested (never mandated) output shape |
| Knowledge / reference | facts the agent consults | Context-is-King + information-dense; no phases, no validation loop |
| Tool-wrapper | drives a script / CLI / API | a deterministic script + sharp triggers; validation = the tool's own exit code |
A skill can blend types — apply the union of what fits. Never force a workflow's machinery (phases, loops, output
skeletons) onto a knowledge skill. Full detail: references/skill-standards.md → Skill types.
$ARGUMENTS)Parse $ARGUMENTS to pick the mode and the target:
create [<name>] (or is clearly a new-skill ask) → create mode; use <name> as the skill
name if one was given → follow references/creating-skills.md.refactor <path/to/SKILL.md> (or points at an existing skill) → refactor mode on that
path → follow references/refactoring-skills.md.Both modes obey the same craft rules → read references/skill-standards.md first.
references/creating-skills.md)scripts/; what informs the work → references/; what shapes the
output → templates/; what you don't own / changes upstream → cite a path/URL; what only exists at runtime →
gather it (ask the user, read git/codebase).templates/SKILL.template.md to .claude/skills/<name>/SKILL.md; add references/ /
templates/ only as the plan needs.description; imperative, lean body; push detail to
references. Get it triggering before you write the references.references/validation.md (checklist → trigger test → run it for real).references/refactoring-skills.md)references/ (or templates/ for output shapes) — don't reword
anything that affects behavior.templates/<x>.md"); for sometimes-needed content, a lazy pointer.references/validation.md.The #1 refactor risk: moving an always-needed output format into a lazily-loaded reference, so the agent forgets to read it and the output silently changes. Always pair such an extraction with a mandatory-read line.
Build one when you own a process and want the agent to follow your way of it, repeatedly — the take-vs-build rule. A rough threshold: you've prompted the same thing ~3 times (the Rule of Three) → bank it as a skill. Don't build a skill for a one-off, or for a tool whose owner already ships a good one.
references/skill-standards.md — the craft rules: skill types, anatomy, context sources, frontmatter spec,
progressive disclosure, writing voice, no-duplication, "structure implies a maintainer", wiring, portability.references/creating-skills.md — the full create runbook (incl. porting an existing prompt/command).references/refactoring-skills.md — the full split-and-trim runbook, with a before/after.references/validation.md — the validation gates (structure · description · body · disclosure · behavior · trigger test).templates/SKILL.template.md — the lean SKILL.md skeleton to scaffold from.