Free resources · Notes and skills
Claude Code Skills: What They Are and Whether You Need One
A plain explanation of claude code skills: what a skill is, when it beats CLAUDE.md or a plain prompt, and how to make your first one and see it run.
What is a Claude Code skill?
A skill is a folder with one file in it, named SKILL.md, that holds instructions Claude reads only when your request calls for them. The top of the file is a short block called front matter, set between two lines of three dashes. It contains a description line: one or two sentences that Claude reads to decide whether to open the skill. Below it you write the instructions in plain markdown.
While Claude works, only each skill's name and description stay in view. Once your request matches a description, Claude opens the rest of the file and follows it. You can also skip the matching and type a slash and the folder name, such as /summarize-changes.
Is a skill just a saved prompt?
Mostly, yes: a prompt you wrote once and keep in a file, loaded only when needed. It goes a little further in two ways. The folder can hold extra files and scripts next to SKILL.md, and a line in the file can run a command first, so the instructions arrive with real data, such as your current diff.
In our view, a skill earns its place when it holds something Claude cannot guess, like your checklist, your naming rules or the order your team does things.
Do I need one?
Not at first. Match the tool to the job:
- A one-off request: a plain prompt.
- A fact Claude should know in every session, such as "this project uses pnpm": CLAUDE.md, the file Claude reads at the start of each session.
- A procedure you keep pasting into chat, or a part of CLAUDE.md that has grown from a fact into a checklist: a skill.
It comes down to cost. CLAUDE.md is read every session, while a skill's body loads only when it is used, so a long procedure costs almost nothing until you need it.
Is it safe to install someone else's skill?
Treat a skill like a script you downloaded: read it before you use it. A skill is instructions, and sometimes commands that run on your machine. Of almost 4,000 skills in public libraries, 76 were confirmed malicious. Open SKILL.md and any script beside it first. A line that starts with an exclamation mark and a command in backticks runs that command when the skill is used, after your permission rules are checked, and the skill stops if a rule denies it. The skill below does that, and you wrote it, so you know what it runs.
How do I make my first skill?
Make one folder holding one SKILL.md file. This first skill summarizes your uncommitted changes and flags anything risky, and it works in any git project with at least one commit, because a failed command stops the whole skill.
- Make the folder. Its name becomes the command name. A folder in ~/.claude/skills works in every project on your machine; to share a skill with your team, use .claude/skills inside the project and commit it.
mkdir -p ~/.claude/skills/summarize-changes
- Save this as SKILL.md inside it. The line with the exclamation mark runs git diff HEAD before Claude reads the instructions, so Claude gets your real changes.
--- description: Summarizes uncommitted changes and flags anything risky. Use when the user asks what changed, wants a commit message, or asks to review their diff. --- Current changes: !`git diff HEAD` Instructions: Summarize the changes above in two or three bullet points, then list any risks you notice such as missing error handling, hardcoded values, or tests that need updating. If the diff is empty, say there are no uncommitted changes.
- Open a git project, change any file, and start Claude Code by running claude. Then ask "What did I change?" or type /summarize-changes.
You should get a short summary of your edit and a list of risks.
Where do I go next?
- Claude Code skills best practices: why Claude may never see your skill
- Claude skills marketplace
- CLAUDE.md best practices
- Claude agent teams, when one session is not enough
- How to use Claude Code
- Whether Claude Code is free
Check that your skill ran, and what to look at if it did not
Your skill worked if the reply describes your actual edit. If it seems to do nothing, check in this order:
- Ask Claude "What skills are available?" Your skill should be in the list. If it is missing, run /reload-skills, and make sure the file is named SKILL.md exactly, inside its own folder under ~/.claude/skills.
- Type /summarize-changes. If that works but asking in words does not, Claude is not matching your request to the description, which is the line it reads to decide.
- If the skill never loads on its own, the front matter may not parse. Then the body still loads when you type the slash command, but Claude cannot match against the description. Starting Claude Code with claude --debug shows the error.