npx skills add ...
npx skills add getsentry/webvitals.com --skill skill-creator
npx skills add getsentry/webvitals.com --skill skill-creator
Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.
Guide the user through creating a new agent skill following the Agent Skills specification. Follow each step in order.
Gather requirements before writing anything.
Ask the user:
Determine the skill name:
Choose a complexity tier:
| Tier | Structure | Use When |
|---|---|---|
| Simple | SKILL.md only | Self-contained instructions under ~200 lines |
| With references | SKILL.md + references/ | Domain knowledge that agents load conditionally |
| With scripts | SKILL.md + scripts/ | Workflow automation needing Python scripts |
| Full | All of the above | Complex skills with automation and domain knowledge |
Read ${CLAUDE_SKILL_ROOT}/references/design-principles.md for guidance on keeping skills focused and concise.
Before writing, study 1-2 existing skills that match the chosen tier. Look for skills in the target repository or plugin to understand local conventions.
Read ${CLAUDE_SKILL_ROOT}/references/skill-patterns.md for concrete examples of each tier.
Also read CLAUDE.md (or AGENTS.md) at the repository root for repo-specific conventions that the skill should follow.
Create <skill-directory>/<name>/SKILL.md.
The YAML frontmatter must be the first thing in the file. No comments or blank lines before ---.
Required fields:
name — must match the directory name exactlydescription — up to 1024 chars; include trigger keywords that help agents match user intentOptional fields:
model — override model (sonnet, opus, haiku); omit to use the user's defaultallowed-tools — space-delimited list (e.g., Read Grep Glob Bash Task); omit to allow all toolslicense — license name or path (add when vendoring external content)Write the body in imperative voice — these are instructions, not documentation.
| Do | Don't |
|---|---|
| "Read the file and extract..." | "This skill reads the file and extracts..." |
| "Report only HIGH confidence findings" | "The agent should report only HIGH confidence findings" |
| "Ask the user which option to use" | "You may want to ask the user..." |
Structure:
## Step N: Title headingsSize limits:
references/ filesIf the skill is based on or adapted from external sources, add an HTML comment after the frontmatter closing ---:
references/)Use for domain knowledge the agent loads conditionally.
Reference from SKILL.md with:
Keep each reference file focused on one topic. Use markdown with tables and code blocks.
scripts/)Use for workflow automation that benefits from structured Python.
Script requirements:
uv run to execute: uv run ${CLAUDE_SKILL_ROOT}/scripts/do_thing.pyassets/)Use for static files the skill references (templates, configs, etc.).
Include a LICENSE file in the skill directory when vendoring content with specific licensing requirements.
Registration steps vary by repository. Check the repository's CLAUDE.md or README.md for specific instructions.
name field in SKILL.md frontmatter exactly.claude/settings.json, add Skill(<plugin>:<name>) to the permissions.allow arrayCLAUDE.md for any additional registration steps specific to that projectRun through this checklist before finishing:
name matches directory namedescription is under 1024 charactersdescription includes trigger keywords---nameuv run ${CLAUDE_SKILL_ROOT}/scripts/...Report any issues found and fix them before completing.
<name>/
├── SKILL.md
└── references/
├── topic-a.md
└── topic-b.mdRead `${CLAUDE_SKILL_ROOT}/references/topic-a.md` for details on [topic].<name>/
├── SKILL.md
└── scripts/
└── do_thing.py# /// script
# requires-python = ">=3.12"
# dependencies = ["requests"]
# ///