Skip to content
Back to skills

Intermediate

ASecurity

<sub>**Intermediate** · Lesson 2 of 6 · about 25 minutes · Needs: [Decide what Claude should remember](01-decide-what-to-remember.md) · Verified against Claude Code v2.1.311 (stable) documentation on 2026-11-24, not yet re-run in a real session</sub>

  • 3,745 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsrustgobashapidocumentation

Works with

  • claude code
  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add wesammustafa/Claude-Code-Quest --skill intermediate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Intermediate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Intermediate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wesammustafa-intermediate-7a6dde97/badge)](https://www.skillsdirectory.com/skills/wesammustafa-intermediate-7a6dde97)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Turn a repeated job into a skill

<sub>**Intermediate** · Lesson 2 of 6 · about 25 minutes · Needs: [Decide what Claude should remember](01-decide-what-to-remember.md) · Verified against Claude Code v2.1.311 (stable) documentation on 2026-11-24, not yet re-run in a real session</sub>

## Goal

By the end of this lesson you can package a procedure as a skill, run a skill by name, write its description so it loads for the right requests and not the wrong ones, test that both ways, and improve the skill when a second input shows a gap.

## The job

> **Nadia (owner, Juniper Street Bakery), Friday 13 November:** Every month I add a seasonal item, and every time it's the same: the menu, the label, the allergens and a test. This month it's the chestnut loaf, on sale from Tuesday 17 November. It keeps three days, like the pumpkin loaf. Can Claude just know how to do it, so Sam can add the next one without me?

Nadia adds a seasonal item every month, and each one touches the same four things: the menu, the label, the allergens and a test. The loaf is on line 15 of her recipe sheet, `brief/recipe-sheet.md`. The menu is `menu.json`, and the back office prints one allergen label for each item in it, on `/back-office/labels.html`.

This lesson starts with the kit as it stands after Lesson 1: `CLAUDE.md`, the scoped rule for `api/`, and the paper bag and the cake box as extras. Your own version stays in Lesson 1.

## You need

- Claude Code, installed and signed in as in [Beginner lesson 1](../beginner/01-start-and-check.md). Claude's replies are its own: they depend on your words, so yours may differ from the examples here.
- An editor for the lesson's files. A skill is a plain text file, so any editor opens it.

## The idea

A skill is the procedure Sam can't forget to paste. Claude sees its one-line description in every session, and reads its steps only when a request matches.

That makes the description the part that decides. A description that fits every request can load for the wrong ones: it may start adding an item to the menu when Sam asked about the order total. That's worse than no skill at all.

So you write the description, then probe it both ways: a request it should load for, and one it shouldn't.

## Worked example

1. **Start Claude where the kit lives.** Start Claude in the `project` folder, where the project and its kit live. If Claude Code asks whether you trust this folder, trust it: it's your own practice copy of the bakery's project.

   ```bash
   claude
   ```

2. **Turn the steps into a skill.** First, a question: Nadia adds a seasonal item every month, and each one takes the same four steps. Where should those steps live?

   In a skill. `CLAUDE.md` loads in every session, the order total and the back office's look included. A procedure you need once a month shouldn't cost attention every time. Pasting the steps into the prompt works, for you. Sam doesn't have your checklist, and a pasted checklist drifts: one month a step gets dropped. Claude sees a skill's one-line description in every session, and reads its steps only when a request matches.

   Ask Claude to turn how an item goes on the menu into a skill: `Make a project skill called add-menu-item for adding a new item to the menu. It takes the item's name. Give it exactly this description: Use for any change to the menu or prices. Steps: find the item in brief/recipe-sheet.md; add it to menu.json with every field, the price in whole pence; add a test in test/ named after the item; run npm test and check its label as back-office/labels.js prints it.`

   A skill is a folder in `.claude/skills/` with a `SKILL.md`: a short description at the top, then the steps. Open `.claude/skills/add-menu-item/SKILL.md` in your editor. The description, between the two lines of dashes at the top, is what Claude reads in every session to decide whether to use this skill. The steps below it load only when the skill runs. The description is the one you dictated: Use for any change to the menu or prices. If Claude reworded it, put that line back and save: step 4 shows what it does.
3. **Run it by name on the chestnut loaf.** Claude Code watches the project's `.claude/skills/` and picks up a new skill within the session ([Skills](https://code.claude.com/docs/en/skills#live-change-detection)). Type `/add` and look for add-menu-item in the menu. If it isn't there, type `/reload-skills`, which scans the skill folders again and reports how many skills are available and how many were added. Then run it by name, with the item after it: `/add-menu-item chestnut loaf`. What you type after the name goes to the skill as its argument, so it looks up the chestnut loaf.

   If Claude asks how long the loaf keeps: three days, as Nadia says in `notes/this-week.md`. Before you go on, read what Claude reports: did it add the loaf to `menu.json` after the pumpkin loaf, at 460 in whole pence, write a test named after it, and run `npm test`? If a step is missing, ask Claude to finish it. Read the new label in the Preview: type `/back-office/labels.html` in its address bar. Before Sam relies on it, compare its allergens with line 15 of `brief/recipe-sheet.md`. You'll come back to them in Your turn.
4. **Try the description on the wrong request.** A skill can also load without its name, when a request matches its description. Start a clean conversation with `/clear`. Nothing earlier in the conversation steers which skill loads. Then ask for something that has nothing to do with adding an item, and watch Claude's first action: `fix the order total`

   Claude may start on the order total without the skill: it reads the request as well as the description, and chooses each time. If it does, press `Esc` before it changes anything. The description still fits the wrong request, Use for any change to the menu or prices, so nothing in the skill stops it loading on another day. If Claude loads the add-menu-item skill, press `Esc` straight away: the skill's steps would have Claude adding an item to `menu.json`. Before you go on: did any file change before you pressed `Esc`? If one did, ask Claude to put it back as it was.

## Your turn

1. **Write a description that chooses correctly.** In your editor, rewrite the skill's `description:` in your own words, so it loads for adding a new item to the menu and not for fixing the order total, changing a price or the back office's look. Say what it does and when to use it. What does this skill add, and where? Name what it adds, then say what it is not for, in a sentence of its own.

   The check reads the saved description against two requests: add the chestnut loaf, which it should fit, and fix the order total, which it shouldn't. It reads the words; in a session Claude makes the choice, which you probe next.

   | Request | Should it load? |
   |---|---|
   | add the chestnut loaf | yes |
   | fix the order total | no |

   One description that does: `description: Adds a new item to the bakery's menu, such as a seasonal loaf, with its price, allergens, label and test. Use when asked to add an item to the menu or put one on it. Not for changing an existing price, fixing an order total or changing how the back office looks.`
2. **Probe it both ways.** In a clean conversation, ask Claude to add the chestnut loaf without naming the skill. When you see Claude load the add-menu-item skill, press `Esc`: you only wanted to see it load. Clear the conversation first, so nothing earlier steers the choice. Ask in plain words, such as: add the chestnut loaf

   Clear it again, and ask Claude to fix the order total. Claude should start on the order total without the skill. Ask in plain words, such as: fix the order total. Press `Esc` before Claude changes anything: once you've seen whether the skill loaded, the probe has done its job. If the order total request still loads it, press `Esc`, edit the description, clear the conversation and ask again.
3. **Fix the gap the loaf showed.** Open `menu.json` in your editor and compare the chestnut loaf's allergens with line 15 of `brief/recipe-sheet.md`. The sheet's last column gives each item's allergens. If they match, this run got them right. Then read the skill's `menu.json` step: unless it says where an item's allergens come from, and that they're never worked out from what's in it, next month's run may not get them right.

   Suppose a run of the skill gives an item an allergen worked out from what's in it, such as tree nuts for the chestnut loaf, while line 15 of the recipe sheet gives gluten (wheat) and milk. Where do you fix it? In the skill's `menu.json` step. It's part of how an item is added, so it belongs in the procedure: the allergens exactly as the recipe sheet lists them, never worked out from what's in it. Chestnuts aren't one of the 14 tree nuts. Editing the loaf's allergens by hand fixes the loaf, but next month's item goes through the same skill, and Sam gets the same guess. Fix the procedure, not this month's output. Telling Claude the allergens each time is the pasted checklist again.

   Change the skill so it settles this itself, for every item: its allergens go into `menu.json` exactly as the recipe sheet lists them, never worked out from what's in it. Which step of the skill writes the item into `menu.json`? Say where the allergens come from, and what Claude must never do with them:

   ```text
   2. Add it to `menu.json`, after the last item in its section, with every field: an id in kebab case, its name, its section, its price in whole pence, a description from what's in it, its allergens exactly as the recipe sheet lists them, in lower case, and `keepsDays`. Never work an allergen out from what's in it.
   ```

   Run the skill on the chestnut loaf again, and read the loaf in `menu.json`. The same command as before: the skill reads its steps afresh each time it runs. If Claude says the loaf is already there, ask it to check the loaf against the skill's steps and fix what differs. Before you go on: does the loaf have gluten (wheat) and milk, from line 15 of the sheet? Does its test check them, and does `npm test` pass?
4. **When a skill is overkill.** Nadia wants one notice in the shop window, saying the chestnut loaf is on sale from Tuesday 17 November. Do you make a skill for it? No. There's only one notice. A skill pays when a procedure repeats and someone else must run it the same way. A one-off job is a prompt. Adding it as a step of `add-menu-item` is worse: then every new item would get a window notice, and the skill would do a job nobody asked it to.

   Now tell Sam how to run the skill you did make: in `README.md`, under the line about `npm test`, add one line with the skill's name and what to give it. What would Sam type to add next month's item?

   ```text
   To add a new item to the menu, start Claude here and type `/add-menu-item` with the item's name, such as `/add-menu-item chestnut loaf`.
   ```

## Check

The Lesson's check reads four things:

- `.claude/skills/add-menu-item/SKILL.md` has a description that loads it for adding the chestnut loaf, and not for fixing the order total
- the chestnut loaf is in `menu.json` at 460, with gluten (wheat) and milk
- the chestnut loaf's label on `/back-office/labels.html` shows £4.60, its allergens and Best eaten within 3 days
- a test in `test/` names the chestnut loaf, and `npm test` passes

The check reads the menu, the label it prints and the tests, not which run of the skill wrote them: that the loaf in `menu.json` came from the skill, run after your last change to it, is yours to say.

What only you can judge: put `SKILL.md` beside line 15 of the recipe sheet. Would its steps add next month's item without you?

<a id="on-your-own-computer"></a>
## On your own project

Claude Code reads skills from your project and your home folder.

1. Ask Claude to make one, or create the folder yourself: `.claude/skills/<name>/SKILL.md` in the project, shared with everyone who works there, or `~/.claude/skills/<name>/SKILL.md`, yours in every project.
2. Run it by name: `/<name>`, with any argument after it.
3. Probe the description in a clean conversation (`/clear`), and press `Esc` when you've seen whether the skill loads.
4. Claude Code picks up a skill you add, edit or remove within the session. If a new skill doesn't appear, `/reload-skills` scans the skill folders again.

Custom commands in `.claude/commands/` still work, and now behave as skills. If a skill has side effects you only ever want on request, add `disable-model-invocation: true`, so it never loads on its own. See [Extend Claude with skills](https://code.claude.com/docs/en/skills).

Skills follow the Agent Skills open standard. Skills you made in claude.ai sync into Claude Code sessions signed in with the same claude.ai account.

## Technical detail

| Item | What it does | How to verify | Failure case |
|---|---|---|---|
| `SKILL.md` frontmatter `name`, `description` | the description is in context in every session; the body loads on use | `/skills` lists it | a vague description loads for unrelated requests; a too-narrow one never loads on its own ([Skills](https://code.claude.com/docs/en/skills)) |
| `$ARGUMENTS`, `argument-hint` | passes what follows `/<name>` into the body | run it with and without an argument | with no argument, the body should say what to do |
| Supporting files | loaded only when the body points to them | ask Claude which files it read | a missing file fails silently |
| `disable-model-invocation: true` | only an explicit `/<name>` runs it | the probe no longer loads it | none |
| `/reload-skills` | reads the skill folders again | the edited description shows in `/skills` | none ([Commands](https://code.claude.com/docs/en/commands)) |

The lesson's check reads a description by fixed word rules: it fits a request when it names what the request is about, and "Not for" rules out the rest of its sentence. In a session, Claude decides with the model, so probe your own skills both ways.

The Desktop app's Code tab and the VS Code extension run the same project skills. In claude.ai, skills are added in settings and apply to your chats. The habit is the same everywhere: a procedure with a description that says when it applies, probed both ways.

Files in this skill

  • 01-decide-what-to-remember.md13.5 KB
  • 02-turn-a-repeated-job-into-a-skill.md13.9 KB
  • 03-decide-what-each-part-may-touch.md15.4 KB
  • 04-bring-in-a-second-reviewer.md15 KB
  • 05-connect-an-outside-tool.md13.4 KB
  • README.md3.6 KB
  • capstone.md10.2 KB
  • lab-evaluate-and-share-a-plugin.md12.6 KB
  • lab-hooks-fail-closed.md16 KB
  • lab-model-and-effort.md9.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.