How to Create a Claude Skill (Step by Step, with Examples)
Create a Claude skill in six steps: pick one job, write the SKILL.md frontmatter and instructions, add files, install it in Claude Code, test that it triggers and iterate. Includes templates.
Last updated: 2026-11-27
A Claude skill is a folder with a SKILL.md file that teaches Claude a repeatable task: your commit style, your deploy checklist, how to fill your company's report template. This guide walks through building one from scratch, then testing it in Claude Code. If you are new to the format, read What is SKILL.md? first.
Step 1: Pick one job
Good skills do one thing that you explain to Claude more than once. Signs you have a good candidate:
- You paste the same instructions into chats again and again.
- The task has a fixed output format (a report, a changelog, a config file).
- It needs knowledge Claude does not have: your conventions, an internal API, a niche tool's docs.
"Help with marketing" is too broad. "Write a launch announcement for X, LinkedIn and our newsletter from a feature spec" is a skill.
Step 2: Write the frontmatter
Create a folder and an empty file:
mkdir -p ~/.claude/skills/launch-announcement
touch ~/.claude/skills/launch-announcement/SKILL.md
Start the file with the two required fields:
---
name: launch-announcement
description: Writes launch announcements for X, LinkedIn and an email newsletter from a feature spec or changelog. Use when the user asks to announce, launch or promote a feature or release.
---
The description decides whether Claude ever uses the skill. Say what it does and when to use it, and include the words a user would type ("announce", "launch", "release notes").
Step 3: Write the instructions
Below the frontmatter, write Markdown that Claude follows once the skill is loaded:
# Launch announcement
Turn a feature spec into three ready-to-post announcements.
## Steps
1. Read the spec. Extract: what shipped, who it is for, the one benefit that matters most.
2. If the spec has no clear user benefit, ask the user for it before writing.
3. Write the three versions:
- **X**: at most 280 characters, the benefit first, one link, no hashtags.
- **LinkedIn**: 80–150 words, a hook line, three bullet points, a call to action.
- **Newsletter**: a subject line under 50 characters plus a 120-word body.
## Output
The three versions under `### X`, `### LinkedIn`, `### Newsletter` headings.
Tips that make the biggest difference:
- Be concrete. Limits, formats and exact commands beat adjectives like "concise" or "professional".
- Write the decisions down. What should Claude do when input is missing or ambiguous?
- Show the output. A short example of the finished result anchors the style better than a description of it.
Generate a SKILL.md from a URL
Paste a docs page, a guide or a chat log. Free, no signup.
Step 4: Add supporting files (optional)
When the instructions need long reference material, such as a brand voice guide, an API reference or a template, put it in separate files next to SKILL.md and point to them:
For tone, follow [voice.md](voice.md). Use [template.html](template.html) for the newsletter.
Claude opens those files only when it needs them. Scripts work the same way: put them in scripts/ and tell Claude when to run them. Keep SKILL.md itself under about 500 lines.
Step 5: Install the skill
Where you put the folder decides who gets it:
- Personal:
~/.claude/skills/<name>/SKILL.md, available in all your projects. - Project:
.claude/skills/<name>/SKILL.mdinside a repository, shared with everyone who clones it. - Claude apps: zip the folder and upload it in Settings → Capabilities → Skills.
Start a new Claude Code session so the skill is discovered.
Step 6: Test and iterate
- Check it triggers. Ask for the task in your own words, without naming the skill ("announce the new export feature"). If Claude does not use it, the description is missing the words you used. Add them.
- Check it does not over-trigger. Ask for something nearby that should not use it.
- Check the output. Compare the result with what you wanted, then tighten the instruction that caused each difference.
- Validate the file. Paste it into the SKILL.md validator to catch frontmatter errors.
Shortcut: generate the first draft
Writing the first version is the slowest part. Paste a docs URL, a guide or a chat where you explained the task into the Claude skill builder, and it drafts a complete SKILL.md with the frontmatter, steps and output format filled in. Then edit it with the steps above. For more starting points, see the 10 Claude skill examples or browse the skill directory.
Generate a SKILL.md from a URL
Paste a docs page, a guide or a chat log. Free, no signup.