# Mac exercise for mission 15.4: Create a skill and test its description

Part of the course “AI from Zero to Autonomous Agents” (https://llm.yoga/en). Web page: https://llm.yoga/en/mac-15-4

About 20 minutes at your computer · Address to type in: **llm.yoga/en/mac-15-4**

In this exercise you create the customer report skill from [chapter 15](https://llm.yoga/en/15-wrapper-harness-2.md) yourself, as a project skill in a separate practice folder. Then you give Claude Code notes on a customer meeting without naming the skill and check whether Claude loads it. Finally, you replace its description with an unsuitable one and compare the answers. The company and the people are made up. The skill, the template, and the notes are in German, exactly as in the measured runs, so the headings in Claude’s answer are German too. You can write your own skills in English.

**Before you start**

This exercise doesn’t need a local model. It needs **Claude Code**, Anthropic’s program for the terminal. It runs on macOS 13 or later and needs an internet connection. According to the documentation, you install it with this command:

```
curl -fsSL https://claude.ai/install.sh | bash
```

Then open a new terminal window and check the installation. It should print a version number. If the terminal says it can’t find `claude`, the install folder isn’t on your PATH yet; the setup documentation explains how to add it.

```
claude --version
```

To sign in, you need an Anthropic account: either a Pro, Max, Ultra, Team, or Enterprise plan or a Console account with an API key. The free claude.ai plan isn’t enough ([setup documentation](https://code.claude.com/docs/en/setup)). Start the program once without any options, sign in through your browser, and then quit with `/exit`. Only then will the `-p` commands in this exercise work.

```
claude
```

The exercise takes two runs, or three with the optional step 6. On a subscription, they count toward your plan’s usage limits; with an API key, you pay per token. On the test computer, one run of this exercise with Claude Code 2.1.332 and Claude Opus 5.5 cost about $0.20 to $0.22 at API prices. Most of that came from the test computer’s large context, with many tools, its own skills, and the instruction file of a parent project folder. Your costs, timing, and any extra comments in the answer may differ.

### 1. Create the practice folder

Create an empty folder with the subfolder for the skill and change into it. Claude Code looks for project skills under `.claude/skills/` in the folder where you start it.

```
mkdir -p ~/skill-uebung/.claude/skills/kb3
```

```
cd ~/skill-uebung
```

Here the skill is named only `kb3`, after the template KB-3 that you create in step 3. So in this exercise, whether Claude loads it depends almost entirely on the description. With the descriptive name `kundenbericht` (customer report), Claude loaded the skill in the test even with the weak description „Hilft bei Berichten.“ (helps with reports), probably because the name and description appear together in the list of skills.

### 2. Write SKILL.md

The command writes the file in one go. Copy all of it, up to and including the line `EOF`. While you paste, the terminal shows `heredoc>` at the start of each line; that’s expected and ends with the line `EOF`. The header between the two `---` lines holds the name and description, and the instructions follow below it.

```
cat > .claude/skills/kb3/SKILL.md <<'EOF'
---
name: kb3
description: Schreibt aus Notizen zu einem Kundentermin, Telefonat oder Besuch einen Kundenbericht nach der festen Gliederung der Firma. Verwenden, wenn jemand einen Kundenbericht, Besuchsbericht oder eine Zusammenfassung eines Kundengesprächs für die Ablage möchte, auch wenn das Wort Kundenbericht nicht fällt.
---

# Kundenbericht schreiben

1. Lies die Gliederung in [vorlage.md](vorlage.md) und übernimm alle Überschriften in derselben Reihenfolge.
2. Fülle jeden Abschnitt nur mit Angaben aus den Notizen. Fehlt etwas, schreibe „nicht besprochen“.
3. Nenne unter „Nächste Schritte“ jede Aufgabe mit Person und Termin.
4. Bleibe unter einer Seite und erfinde keine Zahlen, Namen oder Zusagen.
EOF
```

In English, the description says: writes a customer report from notes on a customer meeting, call, or visit, using the company’s fixed outline; use it when someone wants a customer report, a visit report, or a summary of a customer conversation for the records, even if they don’t say customer report. The four steps tell Claude to use all headings from the template vorlage.md in the same order, to fill each section only from the notes and write „nicht besprochen“ (not discussed) where something is missing, to list every task under „Nächste Schritte“ (next steps) with a person and a date, and to stay under one page without inventing numbers, names, or commitments. Under the open format’s specification, `name` must match the folder name and may contain only lowercase letters, digits, and hyphens. You can check the header with this command:

```
head -4 .claude/skills/kb3/SKILL.md
```

**Output (Run on an M4 Mac (24 GB) on November 27, 2026)**

```
---
name: kb3
description: Schreibt aus Notizen zu einem Kundentermin, Telefonat oder Besuch einen Kundenbericht nach der festen Gliederung der Firma. Verwenden, wenn jemand einen Kundenbericht, Besuchsbericht oder eine Zusammenfassung eines Kundengesprächs für die Ablage möchte, auch wenn das Wort Kundenbericht nicht fällt.
---
```

### 3. Save the template

The template sits next to `SKILL.md`. Its headings are „Anlass“ (reason for the meeting), „Ausgangslage beim Kunden“ (the customer’s situation), „Was besprochen wurde“ (what was discussed), „Offene Fragen“ (open questions), and „Nächste Schritte“ (next steps). Its last line, „Erstellt nach Vorlage KB-3“ (based on template KB-3), is a marker that later shows whether Claude read the template.

```
cat > .claude/skills/kb3/vorlage.md <<'EOF'
# Kundenbericht: [Firma], [Datum]

## Anlass
## Ausgangslage beim Kunden
## Was besprochen wurde
## Offene Fragen
## Nächste Schritte

Erstellt nach Vorlage KB-3
EOF
```

### 4. Hand over notes without naming the skill

With `-p`, Claude Code sends a single request and prints only the answer. The request, in German, asks Claude to turn notes from today’s meeting at Muster GmbH (a placeholder name, like Acme Inc.) into something for the records. In the notes, Ms. Weber, the head of IT, wants faster ticket handling (the first response currently takes three days) and asks whether customer data stays in the EU. The budget is still open, a demo invitation goes out by Friday, and she will clarify data protection internally by December 15. The request mentions neither `kb3` nor the word Kundenbericht. In this mode, Claude Code doesn’t ask for permission. If Claude tries to write a file and nothing in your settings allows it, Claude Code blocks the attempt, and the answer still appears in the terminal. Until then, the terminal shows nothing; in the test, a run took about 15 seconds.

```
claude -p "Hier sind meine Notizen vom Termin heute bei der Muster GmbH. Mach daraus bitte etwas für die Ablage. Notizen: Frau Weber (IT-Leitung) will die Ticketbearbeitung beschleunigen, heute 3 Tage bis zur ersten Antwort. Sie fragt, ob Kundendaten in der EU bleiben. Budget noch offen. Ich schicke bis Freitag eine Demo-Einladung, sie klärt bis 15.12. den Datenschutz intern."
```

**Output, shortened (Run on an M4 Mac (24 GB) on November 27, 2026)**

```
# Kundenbericht: Muster GmbH, 27.11.2026

## Anlass
Termin bei der Muster GmbH am 27.11.2026. Der genaue Anlass steht nicht in den Notizen.

## Ausgangslage beim Kunden
Frau Weber (IT-Leitung) möchte die Ticketbearbeitung beschleunigen. Bis zur ersten Antwort auf ein Ticket vergehen derzeit 3 Tage.

## Was besprochen wurde
- Ziel: schnellere Bearbeitung der Tickets
- Datenschutz: Frau Weber fragt, ob die Kundendaten in der EU bleiben
- Budget: noch offen
- Preise, Zeitplan und technische Details: nicht besprochen

## Offene Fragen
- Bleiben die Kundendaten in der EU? Frau Weber klärt den Datenschutz intern.
- Wie hoch ist das Budget?

## Nächste Schritte
| Aufgabe | Person | Termin |
|---|---|---|
| Einladung zur Demo verschicken | ich | bis Freitag |
| Datenschutz intern klären | Frau Weber, Muster GmbH | bis 15.12.2026 |

Erstellt nach Vorlage KB-3
```

On the test computer, Claude added comments in English before and after the report, about the Friday date, the name in place of „ich“ (I), and the year; they are left out here. All five template headings are there, and so is the line „Erstellt nach Vorlage KB-3“. Claude marked missing information, such as the reason for the meeting, as missing instead of making it up. Your wording will differ, but the outline should be the same.

### 5. Let the page check the report

Paste the answer from step 4. The check looks for the template headings and the marker.

The check needs JavaScript. Without JavaScript: if the answer contains all five headings („Anlass“, „Ausgangslage beim Kunden“, „Was besprochen wurde“, „Offene Fragen“, and „Nächste Schritte“) as well as the line „Erstellt nach Vorlage KB-3“, Claude used the skill and its template.

### 6. Optional: see the invocation yourself

With `--output-format stream-json --verbose`, Claude Code prints every step as a line of JSON, including the call to the `Skill` tool. `grep` shows only the name, and `sort -u` removes duplicate lines, because each call appears twice in the output. This step costs another run.

```
claude -p "Hier sind meine Notizen vom Termin heute bei der Muster GmbH. Mach daraus bitte etwas für die Ablage. Notizen: Frau Weber (IT-Leitung) will die Ticketbearbeitung beschleunigen, heute 3 Tage bis zur ersten Antwort. Sie fragt, ob Kundendaten in der EU bleiben. Budget noch offen. Ich schicke bis Freitag eine Demo-Einladung, sie klärt bis 15.12. den Datenschutz intern." --output-format stream-json --verbose | grep -o '"skill":"[a-z0-9:-]*"' | sort -u
```

**Output (Run on an M4 Mac (24 GB) on November 27, 2026)**

```
"skill":"kb3"
```

If other names appear, they come from skills in your personal `~/.claude/skills` folder or from plugins that Claude also found relevant to the same request.

### 7. Swap in an unsuitable description

This is what a copy-and-paste mistake would look like: the description comes from a skill for quarterly reports from accounting figures, meant only for the finance department. The instructions and template stay the same. `sed -i ''` replaces the line directly in the file; that’s how you write it on macOS.

```
sed -i '' 's/^description: .*/description: Erstellt Quartalsberichte aus Zahlen der Buchhaltung. Nur für die Finanzabteilung verwenden./' .claude/skills/kb3/SKILL.md
```

```
head -4 .claude/skills/kb3/SKILL.md
```

**Output (Run on an M4 Mac (24 GB) on November 27, 2026)**

```
---
name: kb3
description: Erstellt Quartalsberichte aus Zahlen der Buchhaltung. Nur für die Finanzabteilung verwenden.
---
```

### 8. The same notes again

Run exactly the same request as in step 4.

```
claude -p "Hier sind meine Notizen vom Termin heute bei der Muster GmbH. Mach daraus bitte etwas für die Ablage. Notizen: Frau Weber (IT-Leitung) will die Ticketbearbeitung beschleunigen, heute 3 Tage bis zur ersten Antwort. Sie fragt, ob Kundendaten in der EU bleiben. Budget noch offen. Ich schicke bis Freitag eine Demo-Einladung, sie klärt bis 15.12. den Datenschutz intern."
```

**Output, shortened (Run on an M4 Mac (24 GB) on November 27, 2026)**

```
## Gesprächsnotiz Muster GmbH, 27.11.2026

**Teilnehmende:** Frau Weber (IT-Leitung, Muster GmbH), ich

### Ausgangslage
Die Muster GmbH will ihre Tickets schneller bearbeiten. Bis zur ersten Antwort auf ein Ticket vergehen heute drei Tage.

### Offene Fragen
- Frau Weber möchte wissen, ob die Kundendaten in der EU bleiben.
- Das Budget ist noch nicht geklärt.

### Vereinbarte Aufgaben

| Aufgabe | Zuständig | Frist |
|---|---|---|
| Einladung zur Demo verschicken | ich | Freitag, 04.12.2026 |
| Datenschutz intern klären | Frau Weber | 15.12.2026 |
```

Claude again wrote a usable note, but with its own outline. It’s called „Gesprächsnotiz“ (meeting note) instead of „Kundenbericht“, it has no section „Anlass“, and the line „Erstellt nach Vorlage KB-3“ is missing. In the output of the step 6 command, `kb3` did not appear for this run. Paste the answer for the cross-check:

The check needs JavaScript. Without JavaScript: if the line „Erstellt nach Vorlage KB-3“ is missing, Claude didn’t use the template this time.

With an English version of the skill (same name, English description and template), both runs turned out the same way in the test. With a merely vague description such as „Gliederung KB-3.“ (outline KB-3), on the other hand, the test gave no clear result. Claude didn’t invoke the skill, but it searched the nearly empty practice folder and found the template anyway. In a project with many files, you can’t count on that. A good description therefore states explicitly what the skill does and which requests it is meant for. (Run on an M4 Mac (24 GB) on November 27, 2026)

### 9. Clean up

Delete the practice folder along with the skill. The skill applied only in this folder and doesn’t affect your other projects.

```
cd ~
```

```
rm -rf ~/skill-uebung
```

#### On the DGX Spark

This exercise doesn’t use a local model; the model runs on Anthropic’s servers. So the Spark offers no advantage here. According to the documentation, Claude Code supports Ubuntu 20.04 or later on ARM64, which includes DGX OS, based on Ubuntu 24.04 according to NVIDIA’s playbooks. The commands are the same, except that on Linux you write `sed` without the empty quotation marks: `sed -i 's/…/…/' .claude/skills/kb3/SKILL.md`. (Checked against the documentation, not run here)

How skills, `CLAUDE.md`, hooks, and MCP servers work together is explained in [chapter 15](https://llm.yoga/en/15-wrapper-harness-2.md). What to watch for with third-party skills is covered in [chapter 18](https://llm.yoga/en/18-sicherheit-3.md).
