Claude Code Skills Examples: 8 SKILL.md Files You Can Copy

Published 4 min read

These are eight complete SKILL.md files for Claude Code. Save each one as SKILL.md inside its own folder under .claude/skills/ (one project) or ~/.claude/skills/ (all projects), and it becomes a /skill-name command. Each example shows which front matter fields to use and why.

New to skills? Read what SKILL.md is and how to write one first. For the overview, see the Claude Code skills guide.

How to install any example

  1. Create the folder, for example .claude/skills/pr-description/.
  2. Save the example as SKILL.md in that folder. The file name must be exactly SKILL.md.
  3. If Claude Code is already running and the skill does not appear, run /reload-skills.
  4. Type /pr-description to test it.

The folder name becomes the command name unless you set name in the front matter. The examples set both to the same value.

Which fields the examples use

FieldUsed for
descriptionTells Claude when to use the skill. Put the key use case first.
disable-model-invocation: trueOnly you can run the skill. Use it for anything with side effects.
user-invocable: falseHides the skill from the / menu so only Claude uses it.
allowed-toolsPre-approves tools while the skill runs.
argument-hintShows what argument to type.
context: fork and agentRuns the skill in a separate subagent.

1. pr-description

Writes a pull request description from the current branch. It runs git before Claude reads the skill, so the diff is already in the prompt.

.claude/skills/pr-description/SKILL.md

---
name: pr-description
description: Writes a pull request description from the current branch's commits and diff. Use when the user asks for a PR description, PR summary or pull request text.
allowed-tools: Bash(git diff *) Bash(git log *)
---

## Branch changes

!`git log --oneline main..HEAD`

!`git diff main...HEAD --stat`

## Instructions

Write a pull request description from the changes above.

Use this structure:

1. **Summary**: one or two sentences on what changed and why.
2. **Changes**: a bullet list of the main changes.
3. **Testing**: how the change was tested, or "Not tested" if unknown.
4. **Risks**: anything a reviewer should check carefully.

Do not invent details that are not in the commits or the diff.
If `main` is not the base branch, say so and ask which branch to compare with.

If your default branch has another name, replace main. If the base branch does not exist, the command fails and the skill stops, so check the name once.

2. changelog

Turns recent commits into a changelog entry. Only you can run it, because the version number is your decision.

.claude/skills/changelog/SKILL.md

---
name: changelog
description: Writes a changelog entry from recent commits in Keep a Changelog format. Use when the user asks for release notes or a changelog update.
argument-hint: "[version]"
disable-model-invocation: true
allowed-tools: Bash(git log *)
---

## Recent commits

!`git log --oneline -30`

## Instructions

Write a changelog entry for version $ARGUMENTS using the commits above.

1. Group changes under Added, Changed, Fixed and Removed. Skip empty groups.
2. Write each item as one short sentence in the past tense.
3. Leave out commits that only change tests, formatting or CI.
4. Output only the Markdown entry. Do not edit CHANGELOG.md unless asked.

Run it as /changelog 1.4.0.

3. deploy-checklist

A manual-only skill for a risky action. disable-model-invocation: true means Claude never starts a deploy by itself. context: fork runs it in a subagent, which keeps long build output out of your main conversation.

.claude/skills/deploy-checklist/SKILL.md

---
name: deploy-checklist
description: Runs the pre-deploy checklist and deploys the application to production
context: fork
disable-model-invocation: true
---

Deploy the application. Stop at the first failed step and report it.

1. Confirm the working tree is clean with `git status --short`. If it is not, stop.
2. Run the test suite. If any test fails, stop.
3. Build the application.
4. Show the deployment target and the commit hash, then run the project's deploy command.
5. Report the result in three lines: what was deployed, the commit, and any warnings.

Never skip a step. Never retry a failed deploy more than once.

Replace step 4 with the exact deploy command for your project. A forked skill runs in a subagent that does not see your conversation, so the steps must be complete.

4. run-tests

A model-invocable skill that Claude can use whenever you ask it to check your work.

.claude/skills/run-tests/SKILL.md

---
name: run-tests
description: Runs the project's test suite and summarizes failures. Use when the user asks to run tests, check that tests pass or verify a change.
---

Run the project's tests.

1. Find the test command in package.json, a Makefile or the README.
2. Run the full suite. If it takes longer than a few minutes, run only the tests for the changed files.
3. Report: the command you ran, how many tests passed and failed, and for each failure the test name, the error message and the likely cause.
4. Do not change any code unless the user asks you to fix the failures.

5. brand-voice

Background knowledge, not a task. user-invocable: false hides it from the / menu, and Claude loads it when you write copy.

.claude/skills/brand-voice/SKILL.md

---
name: brand-voice
description: Writing style rules for all customer-facing copy, including blog posts, emails, release notes and UI text. Use whenever writing or editing text for customers.
user-invocable: false
---

Follow these rules for customer-facing text.

## Voice

- Write in second person ("you") and active voice.
- Use short paragraphs: three sentences at most.
- Lead with the answer, then explain.

## Words

- Say "use", not "utilize". Say "start", not "commence".
- Avoid hype words such as "revolutionary" and "game-changer".
- Write product names exactly as they appear in the product.

## Formatting

- Use sentence case for headings.
- Use numbered lists for steps and bullet lists for options.
- Do not use emojis.

Edit the rules to match your own brand. The instructions stay in context after the skill loads, so standing rules like these suit this format well.

6. fix-issue

Takes an issue number as an argument and works through it. Only you start it, because it changes code.

.claude/skills/fix-issue/SKILL.md

---
name: fix-issue
description: Fixes a GitHub issue by number
argument-hint: "[issue-number]"
disable-model-invocation: true
---

Fix GitHub issue $ARGUMENTS.

1. Run `gh issue view $ARGUMENTS` and read the title, description and comments.
2. Find the code the issue refers to.
3. Write a failing test that reproduces the problem, if the project has tests.
4. Fix the cause, then run the tests.
5. Summarize what you changed and which files it touched. Do not commit unless asked.

This example needs the GitHub CLI (gh) installed and signed in. Run it as /fix-issue 123.

7. deep-research

Runs in the built-in read-only Explore subagent. It cannot edit files, and the research stays out of your main context.

.claude/skills/deep-research/SKILL.md

---
name: deep-research
description: Research a topic thoroughly
context: fork
agent: Explore
---

Research $ARGUMENTS thoroughly:

1. Find relevant files using Glob and Grep
2. Read and analyze the code
3. Summarize findings with specific file references

Run it as /deep-research how authentication works. The Explore subagent is read-only: the docs list Write and Edit as denied.

8. csv-summary (a skill with a script)

This is the pattern for skills that include code. The script lives in scripts/, and SKILL.md calls it through ${CLAUDE_SKILL_DIR}, so it works from any directory.

Folder layout:

.claude/skills/csv-summary/
├── SKILL.md
└── scripts/
    └── summarize.sh

.claude/skills/csv-summary/SKILL.md

---
name: csv-summary
description: Summarizes a CSV file: row count, column names and a preview of the first rows. Use when the user asks what is in a CSV file.
argument-hint: "[csv-file]"
allowed-tools: Bash("${CLAUDE_SKILL_DIR}/scripts/summarize.sh" *)
---

Run `"${CLAUDE_SKILL_DIR}/scripts/summarize.sh" $ARGUMENTS` and read the output.

Then explain in plain language what the data contains, which columns look like
identifiers, dates or amounts, and any problems you notice such as empty values.

.claude/skills/csv-summary/scripts/summarize.sh

#!/usr/bin/env bash
# Print the row count, the header and the first five data rows of a CSV file.
set -euo pipefail

file="${1:?Usage: summarize.sh <csv-file>}"

if [ ! -f "$file" ]; then
  echo "File not found: $file" >&2
  exit 1
fi

rows=$(($(wc -l < "$file") - 1))
echo "Rows (excluding header): $rows"
echo "Header: $(head -n 1 "$file")"
echo "First rows:"
head -n 6 "$file" | tail -n +2

On macOS and Linux, make it executable with chmod +x .claude/skills/csv-summary/scripts/summarize.sh. On Windows, run Bash scripts through Git Bash or WSL, or use a PowerShell script and set shell: powershell in the front matter for !`command` blocks.

Choosing the right pattern

You wantUse
Claude to apply it automaticallyA clear description, default invocation
Only you to start itdisable-model-invocation: true
Background rules, no commanduser-invocable: false
Live data (git, files) in the prompt!`command` plus allowed-tools
Noisy or long work kept out of your chatcontext: fork with an agent
A repeatable scriptA scripts/ folder and ${CLAUDE_SKILL_DIR}

Troubleshooting

  • The skill does not show up. Check the file name is exactly SKILL.md and that --- is on line 1. Run /reload-skills. If the YAML is invalid, the skill loads with no fields set.
  • Claude never uses it. Rewrite the description: start with what it does, then "Use when ..." followed by the phrases a person would say.
  • A ! command stops the skill. A command that exits with an error aborts the invocation. Add || true to commands that may fail.
  • Two skills compete. Make their descriptions clearly different, or set disable-model-invocation: true on one.

Seeing which skills are used

Agent Office reads the skills in ~/.claude/skills and shows each call in a live activity feed with its project and token numbers, so you can find skills that never run. It runs on your PC and reads tool names, task titles, status and token numbers, not message text. Use the setup guide to install it, then open the Office. For writing agent files, see Claude Code subagent examples.

Sources

  • Claude Code docs, Extend Claude with skills: https://code.claude.com/docs/en/skills
  • Claude Code docs, Create custom subagents: https://code.claude.com/docs/en/sub-agents

Frequently asked questions

Where can I find Claude Code skills?

Write your own using the examples here, look for public GitHub repositories that collect SKILL.md folders, or install a plugin that bundles skills. Read every SKILL.md and script before you use it.

How do I install a skill from GitHub?

Copy the skill's folder, with its SKILL.md and any supporting files, into ~/.claude/skills/ for all projects or .claude/skills/ for one project. If it does not appear, run /reload-skills.

Can I share skills with my team?

Yes. Put them in .claude/skills/ inside the repository and commit them. Everyone who clones the repository gets them. Plugins are the other route for sharing across repositories.

How do I update a skill?

Edit its SKILL.md. Claude Code watches the skills folders, so the change applies in the current session. Remember that a skill already loaded earlier in the conversation stays as it was loaded, so run it again or start a new session to be sure.

Can skills include code?

Yes. Put scripts in a scripts/ folder inside the skill and run them from SKILL.md with ${CLAUDE_SKILL_DIR}. You can also run a shell command before Claude reads the skill using the !command syntax.

How do I test that a skill triggers?

Run realistic prompts in fresh sessions with the skill on and off and compare. Run it manually with /skill-name to test the instructions, then test the description by asking in plain language. /skill-doctor shows each skill's usage.