Awesome Claude Skills Examples: 16 Annotated SKILL.md Patterns, From Minimal to Scripted
A hands-on collection of annotated Claude Skills examples that shows every common SKILL.md pattern: the minimal skill, reference files, bundled scripts, templates and assets, arguments, manual-only skills, background knowledge, pre-approved tools, dynamic context injection, forked context, path-scoped skills, hooks inside skills, model and effort overrides, plugin packaging, portable spec-only skills and workflow routers. Each example is a real, working skill plus a NOTES.md that explains what the pattern does, why it works and when to use it.
It is for anyone writing Agent Skills for Claude Code, the Claude apps and API, OpenAI Codex or other agents that support the open Agent Skills format, who wants to see working examples rather than read a spec.
Last reviewed: December 2026. Field names and behavior were checked against the Agent Skills specification and the Claude Code skills documentation. All examples pass the included validator; scripts have tests.
Contents
- Pattern index
- Try an example in two minutes
- Anatomy of a skill
- Frontmatter field reference
- Writing descriptions that trigger
- The patterns, one by one
- Choosing a pattern
- Portability across agents
- Testing and validating skills
- Troubleshooting
- Security checklist for skills
- FAQ
- Where to go next
- Contributing
- More free resources
Pattern index
| # | Pattern | Example skill | Key fields / files | Portable? |
|---|---|---|---|---|
| 1 | Minimal | greeting-style |
name, description |
Yes |
| 2 | Reference files | api-style-guide |
references/*.md, “which file to read” table |
Yes |
| 3 | Bundled script | changelog-stats |
scripts/, compatibility, ${CLAUDE_SKILL_DIR} |
Mostly (path note) |
| 4 | Templates and assets | incident-report |
assets/ template and lookup table |
Yes |
| 5 | Arguments | scaffold-component |
$ARGUMENTS, $0, arguments, argument-hint |
Claude Code |
| 6 | Manual-only | deploy-staging |
disable-model-invocation: true |
Claude Code |
| 7 | Background knowledge | feature-flags |
user-invocable: false |
Claude Code |
| 8 | Pre-approved tools | dependency-report |
allowed-tools |
Varies (experimental in spec) |
| 9 | Dynamic context | standup-notes |
!`command` |
Claude Code |
| 10 | Forked context | codebase-map |
context: fork, agent: Explore |
Claude Code |
| 11 | Path-scoped | sql-migrations |
paths globs |
Claude Code |
| 12 | Hooks in a skill | careful-refactor |
hooks (PostToolUse) |
Claude Code |
| 13 | Model and effort | architecture-review |
model, effort, when_to_use |
Claude Code |
| 14 | Plugin packaged | team-tools (2 skills) |
.claude-plugin/plugin.json, namespacing |
Claude Code plugins |
| 15 | Portable spec-only | csv-to-markdown |
license, compatibility, metadata |
Yes, by design |
| 16 | Workflow router | bug-triage |
Decision table + branch references | Yes |
Every pattern folder contains the skill folder(s) and a NOTES.md with the annotation.
Try an example in two minutes
git clone https://github.com/Ralpberry-Labs/awesome-claude-skills-examples
cd awesome-claude-skills-examples
# Claude Code: copy one skill into your personal skills folder
cp -r examples/16-workflow-router/bug-triage ~/.claude/skills/
# or into a project, shared via git
mkdir -p .claude/skills && cp -r examples/02-reference-files/api-style-guide .claude/skills/
# OpenAI Codex: project skills live in .agents/skills/
mkdir -p .agents/skills && cp -r examples/15-portable-spec-only/csv-to-markdown .agents/skills/
# Try the plugin example without installing it
claude --plugin-dir examples/14-plugin-packaged/team-tools
In Claude Code, run /skills to see what loaded (or /reload-skills after copying during a session). Then either type the skill as a command (/bug-triage) or just describe the task (“triage this crash report: …”) and let Claude pick it.
Anatomy of a skill
my-skill/ folder name == name in frontmatter
├── SKILL.md required: YAML frontmatter + Markdown instructions
├── references/ optional: docs loaded only when needed
├── scripts/ optional: code the agent runs
└── assets/ optional: templates, data, images
---
name: my-skill # lowercase, digits, hyphens; max 64 chars; matches folder
description: What it does. Use when ... (trigger words users actually say) # max 1024 chars
---
# Title
Numbered steps, exact commands, a "do not" list, and the expected output format.
Links to [references/topic.md](references/topic.md) with a note on when to read each.
How it loads (progressive disclosure):
- Startup: only
nameanddescriptionof every skill (about 100 tokens each). - Activation: the full
SKILL.mdwhen the task matches (the spec recommends keeping the body under 5,000 tokens and under 500 lines). - On demand: reference files and script output only when the instructions call for them.
Frontmatter field reference
| Field | Where it is defined | What it does |
|---|---|---|
name |
Agent Skills spec (required) | Identifier and command name; 1-64 chars, a-z, 0-9, single hyphens, matches the folder |
description |
Spec (required) | What and when; 1-1024 chars; the only text used to decide whether to load the skill |
license |
Spec | License name or bundled license file |
compatibility |
Spec | Environment requirements, up to 500 chars |
metadata |
Spec | String-to-string map for anything else (author, version) |
allowed-tools |
Spec (experimental) | Space-separated tools pre-approved while the skill runs |
when_to_use |
Claude Code | Extra trigger phrases appended to the description in the listing |
argument-hint |
Claude Code | Autocomplete hint such as [issue-number] |
arguments |
Claude Code | Named positional arguments for $name substitution |
disable-model-invocation |
Claude Code | true: only a person can invoke it; description not loaded into Claude’s context |
user-invocable |
Claude Code | false: hidden from the / menu, Claude can still load it |
disallowed-tools |
Claude Code | Tools removed while the skill is active |
model |
Claude Code | Model for the turn when run with /name |
effort |
Claude Code | Effort level for the rest of the turn (low … max) |
context / agent |
Claude Code | fork runs the skill in a subagent; agent picks which |
background |
Claude Code | With context: fork, false waits for the result |
hooks |
Claude Code | Hooks registered when the skill is invoked |
paths |
Claude Code | Glob patterns for files that make the skill relevant |
shell |
Claude Code | bash (default) or powershell for ! commands |
Unknown fields are ignored silently by Claude Code, so a typo (disable-model-invokation) fails without an error. The validator in this repo checks the spec fields; double-check spelling of the Claude Code ones.
Substitutions in Claude Code skill bodies: $ARGUMENTS, $0/$1/… (or $ARGUMENTS[N]), $name for declared arguments, ${CLAUDE_SKILL_DIR}, ${CLAUDE_PROJECT_DIR}, ${CLAUDE_SESSION_ID}, ${CLAUDE_EFFORT}, and in plugin skills ${CLAUDE_PLUGIN_ROOT} and ${CLAUDE_PLUGIN_DATA}. Escape a literal dollar as \$.
Writing descriptions that trigger
The description is the whole decision surface: if it does not match the user’s words, the best instructions in the world never load.
Formula: what it does (with concrete nouns) + “Use when…” (situations and phrases users actually type).
| Weak | Strong |
|---|---|
| “Helps with APIs.” | “Design and review REST API endpoints using our API style guide - resource naming, status codes, pagination, errors, versioning. Use when adding or changing HTTP endpoints, writing OpenAPI specs, or reviewing API pull requests.” |
| “Incident tool.” | “Create an incident report from the team template, filled from the user’s notes, alert timestamps and chat logs. Use when the user asks for an incident report, outage write-up or postmortem document.” |
| “Git stuff.” | “Summarize git history between two refs - commits per type, top contributors, most-changed files. Use when the user asks what changed, for release stats, or for a summary of recent work.” |
Tips:
- Include synonyms: “postmortem”, “incident report”, “outage write-up”.
- Include file types and tools: “CSV”, “OpenAPI”, “Dockerfile”.
- Do not oversell. A description that matches everything (“Use for any coding task”) gets loaded at the wrong times and wastes context.
- For manual-only skills (
disable-model-invocation: true), the description only needs to help humans in the menu.
The patterns, one by one
1. Minimal
greeting-style is eight lines of rules for writing support replies. It shows that a skill does not need scripts or structure to be useful: a sharp description plus a checklist. Start every skill this way and add structure only when you need it.
2. Reference files
api-style-guide keeps five core rules in SKILL.md and moves pagination, error format (RFC 9457 problem details) and versioning into references/. A table tells the agent which file to read for which task. This is progressive disclosure in practice: a review of a list endpoint loads pagination.md, not the versioning policy.
3. Bundled script
changelog-stats ships scripts/git_stats.py, which counts commits by Conventional Commit type, finds breaking changes, ranks authors and most-changed files. The skill tells the agent to run the script, not to read git log itself. The command uses ${CLAUDE_SKILL_DIR} so it works from any directory in Claude Code. Example output (illustrative numbers):
commits: 42
by type: feat=14, fix=11, chore=6, other=5, refactor=4, docs=2
breaking: feat(api)!: remove v1 orders endpoint
authors: Ada (20), Lin (15), Sam (7)
most changed files:
12 src/api/orders.ts
9 src/db/schema.ts
4. Templates and assets
incident-report copies assets/incident-template.md, fills it from the user’s notes, must quote a severity definition from assets/severity-levels.md, and writes UNKNOWN - ask <role> for missing facts instead of inventing them.
5. Arguments
scaffold-component declares arguments: [component, directory], so /scaffold-component PriceTag src/features/cart fills $component and $directory. The NOTES table shows every substitution for that exact input. It also handles the case where Claude loads the skill automatically and there are no arguments.
6. Manual-only
deploy-staging has disable-model-invocation: true. Only a person typing /deploy-staging can run it, and its description is not even loaded into Claude’s context. Use this for anything with side effects.
7. Background knowledge
feature-flags has user-invocable: false: it is not a command anyone would type, but Claude should know it whenever flags come up. Cheaper than putting the same rules in CLAUDE.md, which loads every session.
8. Pre-approved tools
dependency-report pre-approves exactly three read-only npm commands and Read, so the report runs without prompts and without widening permissions for the rest of the session.
9. Dynamic context
standup-notes uses !`git log ...` and !`gh pr list ...` lines that run before the model reads the skill, so it starts with today’s data. If any injected command fails, the skill invocation is aborted, so the commands are chosen to succeed with empty output.
10. Forked context
codebase-map runs with context: fork and agent: Explore. Exploring a codebase reads dozens of files; in a fork, only the 40-line map returns to your conversation.
11. Path-scoped
sql-migrations lists paths globs for migration folders, so Claude Code treats it as relevant when those files are opened, even if nobody says “migration”.
12. Hooks in a skill
careful-refactor registers a PostToolUse hook on Edit|Write that runs the test suite after every edit and, on failure, writes to stderr and exits with code 2, which feeds the message back to Claude. The hook only exists in sessions where the skill was used.
13. Model and effort
architecture-review sets model: opus and effort: high because critiquing a design rewards deeper reasoning, and adds when_to_use with example phrases.
14. Plugin packaged
team-tools bundles two skills in a Claude Code plugin. They become /team-tools:pr-checklist and /team-tools:oncall-handoff, can be versioned and installed with one command from a marketplace, and pass claude plugin validate.
15. Portable spec-only
csv-to-markdown uses only spec fields (license, compatibility, metadata with string values), relative script paths and no Claude Code-only syntax, so it works unchanged across agents.
16. Workflow router
bug-triage classifies a report (crash, performance, wrong behavior, unclear) with a decision table, loads only the matching reference file, and produces one shared output format. The “unclear” branch asks three specific questions instead of guessing.
Choosing a pattern
| If your skill needs to… | Use pattern |
|---|---|
| Share a short set of rules | 1 Minimal |
| Cover a big topic without loading all of it | 2 Reference files, 16 Workflow router |
| Do exact computation or parsing | 3 Bundled script |
| Produce a document in a house format | 4 Templates and assets |
| Take input from a slash command | 5 Arguments |
| Never run unless a person asks | 6 Manual-only |
| Inform Claude without being a command | 7 Background knowledge |
| Run tools without prompting | 8 Pre-approved tools |
| Start with live repo or PR data | 9 Dynamic context |
| Do noisy research and return a summary | 10 Forked context |
| Apply to certain files | 11 Path-scoped |
| Enforce something while it is active | 12 Hooks in a skill |
| Use a stronger or cheaper model | 13 Model and effort |
| Ship several skills to a team | 14 Plugin packaged |
| Work in every skills-compatible agent | 15 Portable spec-only |
Patterns combine. A realistic team skill might be a workflow router (16) with reference files (2), a bundled script (3), pre-approved tools (8), shipped in a plugin (14).
Skill vs CLAUDE.md vs subagent vs hook
| Mechanism | Loaded | Best for |
|---|---|---|
| CLAUDE.md / AGENTS.md | Every session | Facts and rules for every task |
| Skill | Description always, body on demand | Procedures and knowledge needed for some tasks |
| Subagent | When delegated, separate context | Isolated work with restricted tools |
| Hook | Every matching event, enforced | Things that must always or never happen |
| MCP server | Tools always listed | Access to external systems |
Portability across agents
| Feature | Agent Skills spec | Claude Code | Other agents (for example Codex) |
|---|---|---|---|
name, description |
Required | Yes | Yes |
license, compatibility, metadata |
Optional | Yes | Generally yes |
allowed-tools |
Experimental | Yes | Varies |
scripts/, references/, assets/ |
Conventions | Yes | Yes |
$ARGUMENTS, !`cmd`, ${CLAUDE_SKILL_DIR} |
No | Yes | Check your agent’s docs |
context, hooks, paths, model, effort |
No | Yes | Ignored |
Where skills live:
| Agent | Project | Personal |
|---|---|---|
| Claude Code | .claude/skills/<name>/ |
~/.claude/skills/<name>/ |
| Claude Code plugin | <plugin>/skills/<name>/ |
(installed via marketplace) |
| OpenAI Codex | .agents/skills/<name>/ (scanned up to repo root) |
~/.agents/skills/<name>/ |
| Antigravity CLI | .agents/skills/<name>/ |
~/.gemini/skills/ |
| Claude apps / API | Upload a ZIP of the skill folder | - |
Testing and validating skills
- Validate format:
python3 tools/validate_skills.py examples/checks frontmatter placement, required fields, name rules, folder match, lengths, files over 500 lines and broken relative links. The spec authors also publish a reference validator, skills-ref. - Unit-test scripts:
python3 -m unittest discover -s tests -v(this repo’s tests cover both scripts and validate every example). - Test triggering: in a fresh session, phrase the request three different ways without naming the skill. If it does not load, improve the description.
- Test the empty case: invoke without arguments, with an empty repo, with no network. The skill should ask or explain, not invent.
- Plugins:
claude plugin validate <dir>andclaude --plugin-dir <dir>.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Skill never loads automatically | Description lacks the user’s words; or disable-model-invocation: true |
Rewrite description with trigger phrases; check the field |
Skill not in / menu |
user-invocable: false, wrong folder, or frontmatter not on line 1 |
Fix placement; /reload-skills |
| “name does not match folder” | Folder renamed or typo | Make them identical |
| A frontmatter field has no effect | Misspelled Claude Code field (ignored silently) | Compare with the field table above |
| Skill aborts immediately | A !`command` failed |
Run the command yourself; make it succeed on empty results |
| Script not found | Relative path resolved from the wrong directory | Use ${CLAUDE_SKILL_DIR}/scripts/... in Claude Code |
| Plugin skill name is longer than expected | Plugin skills are namespaced | Invoke /plugin-name:skill-name |
| Skill loads at the wrong times | Description too broad | Narrow it; add “Do not use for…” in the body |
Security checklist for skills
- Read every skill (instructions and scripts) before installing it; it runs with your permissions.
- Prefer narrow
allowed-tools(Bash(npm outdated *), notBash). - Make side-effect skills manual-only.
- Never put secrets in skills; read them from the environment or a secret manager at run time.
- Scripts should not make network calls unless that is the point, and should say so in
compatibility. - Pin and review third-party skills like any other dependency.
FAQ
What is the difference between a skill and a slash command in Claude Code?
In current Claude Code, a skill is also a slash command: .claude/skills/review/SKILL.md gives you /review. Old .claude/commands/*.md files still work, but skills can bundle files and can be loaded automatically.
How long should SKILL.md be? As short as possible. The specification recommends under 500 lines and under about 5,000 tokens for the body; most good skills are 20-150 lines with details in reference files.
Do skills use context when they are not being used?
Only their name and description, unless disable-model-invocation: true is set, in which case not even that.
Can a skill call another skill? A skill can tell the agent to use another skill by name, and Claude can load several. Keep dependencies explicit and shallow.
Can I use these examples commercially? Yes, the repository is MIT licensed.
Why does the hook example use exit code 2? In Claude Code hooks, exit code 2 is the signal that sends stderr back to Claude. Other non-zero exit codes are non-blocking errors that Claude does not see.
Where do skills go in Codex?
In .agents/skills/ in the repository (scanned from the working directory up to the repo root) or ~/.agents/skills/ for personal skills.
Where to go next
- Agent Skills overview and specification
- Claude Code skills documentation
- Claude Code hooks reference (for pattern 12)
- Claude Code plugins reference (for pattern 14)
- Codex skills documentation
- RFC 9457 problem details (used in pattern 2)
- Conventional Commits (used in pattern 3)
- Related Ralpberry Labs repos: agent-skills-library (14 ready-to-use skills), engineering-skills, agent-skills-frontend and claude-plugins-marketplace
Contributing
New patterns and better examples are welcome. Each contribution is one pattern folder with a working skill, a NOTES.md (what, why, when, caveats), tests for any script, and a passing python3 tools/validate_skills.py examples/. Please verify field behavior against the official docs and say which agent supports it.
If this helped you, a star helps others find it.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.