How a skill works
At session start the agent sees only the names and short descriptions of available skills. When a task matches a description, it reads the full instructions and any extra files in the skill. That is why the description must state clearly when the skill applies.
Structure
.claude/skills/release/ ├── SKILL.md ├── checklist.md └── scripts/bump-version.sh
--- name: release description: Prepares a release: bumps the version, updates CHANGELOG, tags the commit. Use when asked to make a release or ship a version. --- # Release 1. Run tests: npm test. If they fail, stop. 2. Bump the version with scripts/bump-version.sh. 3. Add a CHANGELOG.md section from commits since the last tag. 4. Commit "release: vX.Y.Z" and tag vX.Y.Z. 5. Don't push, show a summary.
Where to store them
| Path | For whom |
|---|---|
.claude/skills/ in the repo | the whole team, committed to git |
~/.claude/skills/ | only you, in every project |
Skill, CLAUDE.md or command
| When to use | |
|---|---|
| CLAUDE.md | rules needed all the time: test commands, style, don’ts |
| Skill | detailed instructions for a specific kind of task, the agent turns it on itself |
| Custom command | a prompt you run manually via /name; stored in .claude/commands/ |
A good description
- What the skill does: "prepares a release".
- When to use it: "when asked to make a release or ship a version".
- No vague words like "a helpful assistant".
Skill ideas for a team
- Code review against your checklist.
- Scaffolding a new module from the project template.
- A database migration with a rollback check.
- A pull request description in your format.
- A change report for a client.
Ready-made skills to download are in the article "Claude Code Skills".
Today's task
Pick a task you have explained to the agent three times already. Create a skill for it with a clear description and test it: ask the agent to do the task without mentioning the skill.