Claude Code skills tutorial: stop typing the same rules in every new chat. Write them once in a SKILL.md file, and Claude Code opens it when the job comes up.
In 4 minutes you will create your first skill, write a description that works, test it, and see where skills fail. The steps are shown in real Claude Code runs.
Official docs: https://code.claude.com/docs/en/skills
Chapters
0:00 Why Claude Code "forgets" your rules
0:36 What a skill is
1:08 Part 1: Where the file goes
1:43 Part 2: What goes in SKILL.md
2:38 Part 3: How to test your skill
3:15 Where skills fail
3:32 Skill or CLAUDE.md?
3:46 When to make a skill, and the recap
The example skill from this video, ready to copy:
---
name: new-page
description: Adds a new page to my website with my menu, footer and colors. Use when I ask for a new page.
---
- Use the same menu as the home page.
- Use the same footer.
- Do not add new colors.
- Check the page at phone size.
- Tell me which files you changed.
Where the file goes
Only this project: .claude/skills/new-page/SKILL.md
All your projects: ~/.claude/skills/new-page/SKILL.md
How to test it
1. Ask in normal words: Add a contact page
2. Run it directly: /new-page
If it does not work
The slash works but the normal request does not: fix the description. Add the words you really use.
The skill runs but skips a rule: make that rule shorter and clearer.
Skill or CLAUDE.md?
A rule for every task goes in CLAUDE.md, which Claude Code loads every session.
A job that comes up sometimes goes in a skill.
Easy test: if you typed the same instructions three times, make a skill.
Two warnings
A skill is instructions, not a lock. Claude Code can still miss a rule, so always read the result.
A skill can tell Claude Code what to do on your computer, so read any skill from the internet before you use it.
About the demo
The website is a small example I made for this video. Its inner pages still have an old design, which is why a request with no rules can copy the wrong look. Recorded with the Haiku model. Shell commands were turned off in these runs, so Claude Code checked phone size by reading the CSS, not by opening a browser. Your results can be different from run to run.
Which job would you turn into a skill first? Tell me in the comments.