SKILL.md Examples You Can Copy and Paste
Complete, real SKILL.md files you can copy and paste straight into your skills folder — with the full source visible and a note on why each one works. Every example runs in Claude Code, Codex, and Gemini CLI.
What a SKILL.md example actually is
A skill is a folder with a SKILL.md file: YAML frontmatter (name + description) and a Markdown body of instructions. It is not the "skills" section of a résumé — that's an unrelated meaning of the word. Every example below is a complete, working agent skill you can copy as-is.
Example 1: Commit Message Writer
Writes clean, conventional commit messages from a staged diff.
---
name: commit-message-writer
description: Writes a Conventional Commits message from the staged diff. Use when the user asks to write or improve a commit message.
---
# Commit message writer
1. Read the staged diff.
2. Pick the type: feat, fix, docs, refactor, test, or chore.
3. Write a summary line of at most 72 characters, in imperative mood.
4. Add a short body only if the change needs context, explaining why.Why it works
The description contains the exact phrases people type — "commit message", "write", "improve" — so a request like "improve this commit message" matches on the first try.
Example 2: Code Review Checklist
Reviews a diff in a fixed, repeatable order.
---
name: code-review-checklist
description: Reviews a diff for correctness, security, and style in a fixed order. Use when the user asks to review code or a pull request.
---
# Code review checklist
1. Correctness: logic, edge cases, error handling.
2. Security: input validation, authorization, secrets.
3. Tests: are the changes covered?
4. Style: naming and consistency, last.
5. End with approve or request-changes and a one-line summary.Why it works
A fixed order turns a vague request into a repeatable procedure — the agent can't skip security just because the diff looks small.
Example 3: README Generator
Drafts a README from a project's files.
---
name: readme-generator
description: Generates a README from the project structure and package metadata. Use when the user asks to write or update a README.
---
# README generator
1. Detect the stack from manifest files such as package.json or pyproject.toml.
2. Write sections: title, what it does, install, usage, license.
3. Include a runnable quick-start command.
4. Keep it scannable — short paragraphs and code blocks.Example 4: Deploy Checklist (manual-only)
Some skills should never fire on their own — anything with side effects, like a deploy. This one adds one Claude Code field to make it manual-only.
---
name: deploy-checklist
description: Walks through the pre-deploy checks and the deploy itself for this project. Use only when the user explicitly runs the deploy checklist.
disable-model-invocation: true
---
# Deploy checklist
1. Confirm the branch is main and up to date with origin.
2. Run the test suite; stop if anything fails.
3. Check that pending database migrations are reviewed.
4. Deploy, then verify the health endpoint returns 200.One field, agent-specific
disable-model-invocation: true is a Claude Code field: the skill runs only when you type /deploy-checklist. In Codex the equivalent is allow_implicit_invocation: false in the skill's agents/openai.yaml. Agents that don't know the field simply don't use it.
The same skill across Claude, Codex, and Gemini CLI
Every example above is model-agnostic. Install the same folder into:
- Claude Code~/.claude/skills/<name>/
- Codex~/.agents/skills/<name>/
- Gemini CLI~/.gemini/skills/<name>/
…and other agents that read the open standard, such as GitHub Copilot, Cursor, and VS Code.
| Agent | Install path |
|---|---|
| Claude Code | ~/.claude/skills/<name>/SKILL.md |
| Codex | ~/.agents/skills/<name>/SKILL.md |
| Gemini CLI | ~/.gemini/skills/<name>/SKILL.md |
| Antigravity CLI | ~/.gemini/antigravity-cli/skills/<name>/SKILL.md |
See the Claude, Codex, and Gemini CLI guides for project folders and the exact steps.
Adapt an example into your own skill
1. Rename it
Change the folder and the name together — they must stay identical.
2. Rewrite the description
Use the words you type when you ask for this job, and add when not to use it if you have similar skills.
3. Edit the steps
Replace generic steps with your team's real rules: your commit types, your review order, your deploy commands.
4. Test it
Ask for the job naturally and check that the agent picks the skill. If it doesn't, the description is the thing to fix.
Want more starting points? Use the Skill Builder to generate one from your own inputs, or browse the full catalog of ready-made skills.
Before you install an example
- You read the whole file, top to bottom
- Folder name and
namematch - The description uses your own trigger words
- Steps reflect your real rules, not the example's
- Tested with one natural request