Free resources · Notes and skills
Claude Code skills best practices: first make sure Claude can find your skill
The claude code skills best practices that come first: what a skill is, why Claude may never see yours, what our test of a vague and a specific description found, and a five-minute skill you can check by hand.
What is a Claude Code skill, in plain words?
A skill is a folder that holds a file named SKILL.md, with the instructions for one kind of job. At the top of that file sit a few lines between two lines of three dashes. That block is the front matter, and it holds the skill's name and its description: one or two sentences on what the skill does and when to use it.
When a session starts, Claude reads only each skill's name and short description, and it opens the rest of the file only when your request fits that job. So a skill can hold a long procedure and cost almost nothing until you need it.
If Claude cannot read a skill's description, the instructions below it never run. In our view, that is the first of the Claude Code skills best practices: before you tune the wording, make sure Claude can find the skill at all.
Why doesn't Claude use my skill?
Often because Claude never saw it, and nothing tells you so. Start Claude Code in the project and type /skills. If a skill you just added is missing, /reload-skills reads the folder again. Still missing? Rule these out:
- The folder is in the wrong place. A project skill lives at .claude/skills/<name>/SKILL.md, in the folder where you start Claude Code or a parent folder up to the repository root. The folder name starts with a dot, and without it nothing loads.
- Something sits above the opening line of three dashes. Claude Code reads the front matter only when that line is the file's very first line.
- The description holds a colon followed by a space, as in "Use when: ...", without quotes around it. If the front matter does not parse, Claude Code loads the skill with no description, so Claude cannot match it. Put the whole description in double quotes when it holds a colon.
What did our test of a vague and a specific description find?
The vague one missed almost a third of the requests the skill was made for, and the specific one missed none.
We gave one skill, release-notes, three descriptions in turn. We ran 20 requests through Claude Code 2.1.296 on Claude Haiku 5.5, headless (scripted): 10 for release notes or a changelog entry, and 10 similar ones the skill should not take, such as a commit message or a tweet. Each ran twice per description, 120 runs in all.
- "Helps with writing.": the skill ran on 14 of the 20 runs it should have taken.
- "Writes release notes in our house format. Use when the user asks for release notes or a changelog entry for a version.": 20 of 20.
- The same, plus a sentence naming jobs to leave alone: 20 of 20.
In the two misses we read by hand, Claude wrote the changelog itself, without the skill's format, and never said a skill existed. No description fired on the requests it should not take, so the third one's extra sentence had no effect we could measure.
We tested one model and one skill, and the two runs of each request are not fully independent. The requests it should not take were easy ones, none close to the skill's wording.
How many skills should I have?
In our view, one per job. Claude Code fits every skill's description into one shared listing, and that listing gets about 1% of the model's context window, its working memory for the session. Past that, descriptions get dropped, starting with the skills you call least; only the name stays, so Claude has little to match against. Two skills for the same job, we think, leave Claude guessing between them.
How do I make my first skill?
Make one in a throwaway folder. This is the release-notes skill from our test; "house format" is just the test's made-up layout. In a terminal, run:
mkdir -p skill-test/.claude/skills/release-notes cd skill-test cat > .claude/skills/release-notes/SKILL.md <<'EOF' --- name: release-notes description: Writes release notes in our house format. Use when the user asks for release notes or a changelog entry for a version. --- # Release notes Write the notes as one summary line and then three bullets: Added, Fixed, Changed. Start every bullet with a verb. End the notes with the line `-- house format v1`. EOF
Now check the file from inside skill-test:
ls .claude/skills/release-notes head -n 1 .claude/skills/release-notes/SKILL.md grep -c '^description: ' .claude/skills/release-notes/SKILL.md
Where is the full answer?
- What a Claude Code skill is.
- Skills made by other people: the claude skills marketplace.
- What goes in a skill and what stays in CLAUDE.md, the file Claude reads every session: CLAUDE.md best practices.
- Testing a skill properly: how many test cases you need.
Check your skill folder
The three commands print exactly this:
SKILL.md --- 1
- SKILL.md: the file is at the exact path Claude Code reads. An error here means a folder name is wrong.
- The three dashes: the front matter starts on the first line. Anything else is a line to delete.
- 1: the description line is there. 0 means there is no description line, the line Claude matches against (name is optional and defaults to the folder name). A 1 does not prove the line parses: a description with a colon and a space still needs its double quotes.
Then run the same three commands on your own skill: from the folder that holds .claude, with your skill's folder name in place of release-notes, or from your home folder for a personal skill in ~/.claude/skills.