Write your own Claude Code skill: a SKILL.md with a clear name, a description Claude can match and simple steps.
WHEN TO USE IT
When you keep asking Claude for the same kind of task and want to turn it into a reusable skill.
Formats change. If a field stops working, check it against Anthropic's documentation.
One file. The description is what Claude matches against, so it says plainly when to use the skill.
---
name: skill-writer
description: Help the user write a SKILL.md file for a new Claude Code skill. Use when the user asks to create a skill, write a SKILL.md or turn a repeated task into a skill.
---
Help the user write a new skill.
1. If the task the skill should do, when it should be used or what a good
result looks like is missing, ask once, in one message, then continue.
2. Choose a short name in lowercase with hyphens, such as weekly-summary.
3. Write the description in one or two sentences: what it does, then
"Use when the user asks..." with the words people would really type.
4. Write the body: one line saying what to do, then numbered steps, with step 1
asking for missing details once. End with a short Rules list.
5. Return the finished file in one code block, starting with the frontmatter:
three dashes, name, description, three dashes.
6. Tell them where to save it: .claude/skills/<name>/SKILL.md in their project,
or in their personal skills folder, and to try it with a real request.
Rules:
- Keep the frontmatter to name and description unless the user needs more.
- Keep the skill focused on one job; suggest splitting it if it does several.
- Do not invent features or settings; mark anything uncertain [check].
Put the folder in your skills directory. Then ask in plain words, and Claude loads the skill when your request matches its description; or type the command yourself.
# for you, in every project
mkdir -p ~/.claude/skills/skill-writer
mv SKILL.md ~/.claude/skills/skill-writer/
# then, inside Claude Code, either ask naturally:
# help me write a skill that turns my notes into a weekly update
# or run it by name:
# /skill-writer
MORE SKILLS
The authority
Anthropic's documentation for Skills
This template is a starting point. Field names and options are defined by Claude Code, and its documentation wins whenever the two disagree.
https://code.claude.com/docs/en/skills