name: new-skill description: Author a new skill under .claude/skills/. Handles template scaffold, frontmatter, review-criteria self-check, and skills-index update.
New skill
Scaffold and review a new skill file in .claude/skills/. Use this when a workflow recurs often enough to justify a named, invokable skill.
Pre-flight
Before creating a new skill, confirm all three:
- Recurring need — this isn't a one-off task.
- No overlap — no existing skill in
skills-index.yamlalready covers this. - Adds structure — the skill provides invariants, ordered steps, or mandated checks that a bare prompt wouldn't.
If any fail, stop and reconsider. Often the right answer is updating an existing skill or adding a topic file to agent-instructions/.
Steps
-
Ask the operator:
- Skill slug (lowercase, hyphens, e.g.
release-notes). - One-line description (starts with a verb, under 200 chars).
- When to invoke (describe the triggering task).
- Scale fit — small / medium / large (any subset).
- Tools the skill needs (Read, Edit, Write, Bash, Glob, Grep, AskUserQuestion, etc.).
- Lifecycle:
onceorrecurring.
- Skill slug (lowercase, hyphens, e.g.
-
Validate the slug: matches
^[a-z][a-z0-9-]*$and isn't already used. -
Create
.claude/skills/<slug>.mdwith the template below. -
Open the file for editing and draft the body with the operator. Guide them through each section of the template — don't dump it and leave.
-
Self-review against
references/skill-review-criteria.md. Go through every checkbox. Fix anything missing. Do not skip this step. -
Update
skills-index.yaml— append an entry for the new skill. Use the same slug, file name, description, triggers, scale, tools, and lifecycle. -
Update
.claude/skills/README.md— add a row to the human-readable table. -
Update
agent-instructions/if the skill introduces a recurring practice that deserves its own topic file or section (e.g. a new-skill for release automation might updatedevelopment-workflow.md). -
Commit (ask first): stage the new skill, the updated index, and the updated README. Commit message:
feat(skills): add /<slug> — <one-line description>
Template
---
name: <slug>
description: <one-line description, verb-first, under 200 chars>
---
# <Human title>
<One paragraph: what this skill does and when to invoke it. Link to the
relevant `agent-instructions/` topic file(s).>
## Pre-flight
<What must be true before running. Detected stack? Clean working tree? Operator
confirmation? Any "stop and ask" conditions.>
## Steps
1. <Numbered, ordered, imperative. One action per step.>
2. ...
3. ...
## Output format
<If the skill produces a report, table, file, or other artifact, show the exact
structure. Use a literal example where possible.>
## Invariants
- <Things the skill must never do — destructive without confirmation, secret
exposure, etc.>
- <Things the skill must always do — cite file:line, respect the task scale,
link to the source of truth.>
## Related
- <Topic files, other skills, external docs.>
Invariants
- Don't create a skill that duplicates an existing one. Update the existing skill instead.
- Don't merge skills that solve genuinely different problems. Keep responsibilities narrow.
- Don't skip the review checklist. Skill quality compounds — a sloppy skill trains sloppy operators.
- Don't forget the index. A skill not listed in
skills-index.yamlis invisible to skill-selection.
Related
references/skill-review-criteria.md— the quality bar.skills-index.yaml— the machine-readable index.README.md— the human-readable index.agent-instructions/scaling-agent-instructions.md— when to promote a recurring pattern into a dedicated file vs. a skill.
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.