Build Your Own

Metadata Is Whatever I Say It Is

Claude Code reads a fixed list of frontmatter fields and leaves metadata to you. In this page, you'll give two skills keys of your own, write a script that reads them, then make the script catch the day one of those keys stops being true.

Colour key: 1 Define a Key 2 Read It 3 Add a Key That Repeats Another Field 4 Check It

Scroll and the sheet below builds the files one step at a time, pinning each step's notes. One scroll moves one step; the step buttons, the arrow keys or j and k do the same.

Step 1: Define a Key

Specimen roast-commit/SKILL.md after step 1

Start with a skill that roasts your last commit message. Its frontmatter fetches the commit and takes away Claude's tools for running commands, editing files and handing the job to a helper agent; the metadata: block at the bottom is the new part. Write any keys you like under it, with any values. Claude doesn't see them either. The skill listing carries only description and when_to_use, and a skill you run reaches Claude as its body alone.

The files after step 1

.claude/skills/roast-commit/SKILL.md

---name: roast-commitdescription: Roast the last commit message.model: sonneteffort: lowallowed-tools: Bash(git log *)disallowed-tools: [Agent, Bash, Edit, Write, NotebookEdit]metadata:  family: roast  heat: mild---The last commit, fetched before you read this:!`git log -1 --format='%h %s%n%n%b'`Roast the message in two sentences: one on what it says, oneon what it leaves out. Be rude about the message, never theperson who wrote it.
  1. 1a !`git log -1 --format='%h %s%n%n%b'` runs before Claude reads the skill, and its output takes the line's place, so Claude reads the commit itself. allowed-tools approves git log for it; without that approval the skill stops before it starts.

  2. 1b disallowed-tools takes these five away from Claude until your next message. Tools from MCP servers you've connected stay unless you list them too. The injected git log still runs with Bash on the list.

  3. 1c metadata: holds keys of your own. Claude Code doesn't act on its contents and drops a value that isn't a map, so every key sits indented under it. Don't reuse a frontmatter field's name, such as paths, as a key.

  4. 1d family: roast groups this skill with the others you'll write; for now, no script reads it.

  5. 1e heat: mild is invented, key and value both. Nothing in Claude Code knows what a heat is, or that mild comes before scorching.

Nothing reads heat yet, so it does nothing. Add a second roast at the other end of the scale, then a script at scripts/roast-menu.py that lists every skill in the roast family, mildest first. Run it from the project's root with python3 scripts/roast-menu.py.

python3 scripts/roast-menu.py

mild       /roast-commit   Roast the last commit message.scorching  /roast-branch   Roast every commit on this branch, in order.

The files after step 2

.claude/skills/roast-branch/SKILL.md

---name: roast-branchdescription: Roast every commit on this branch, in order.model: opuseffort: highallowed-tools: Bash(git log *)disallowed-tools: [Agent, Bash, Edit, Write, NotebookEdit]metadata:  family: roast  heat: scorching---Every commit on this branch since it left main:!`git log main..HEAD --reverse --format='%h %s'`Read them as one story and roast the story: where it changedits mind, what it fixed twice and which message gave up. Berude about the commits, never the person who wrote them.
  1. 2a main..HEAD is every commit on this branch since it left main, and --reverse puts them oldest first, so Claude reads the branch in the order it happened.

  2. 2b model: opus at effort: high, because reading a whole branch as one story takes more than a single message does.

scripts/roast-menu.py

#!/usr/bin/env python3"""Print the roast skills as a menu, mildest first."""import refrom pathlib import PathHEAT = ["mild", "medium", "scorching"]def field(block: str, key: str) -> str:	m = re.search(rf"^\s*{key}:\s*(.*)$", block, re.MULTILINE)	return m.group(1).strip() if m else ""menu = []for path in sorted(Path(".claude/skills").glob("*/SKILL.md")):	block = path.read_text().split("---")[1]	if field(block, "family") != "roast":		continue	name, heat = field(block, "name"), field(block, "heat")	rank = HEAT.index(heat) if heat in HEAT else len(HEAT)	menu.append((rank, f"{heat or '?':<10} /{name:<14} {field(block, 'description')}"))print("\n".join(line for _, line in sorted(menu)))
  1. 2c HEAT holds the order. YAML has no idea that mild comes before scorching, so the script decides.

  2. 2d field() reads the frontmatter as text with one regular expression. Python's standard library has no YAML parser, and skill-lint.py in this repository reads its keys the same way.

  3. 2e A heat the script doesn't know sorts last, and a missing one prints as ?. Nothing checked the value when you wrote it, so the script is the only place that decides what a typo means.

A script that wants to know whether a roast is safe to run on someone else's branch would rather read one word than a list of tools. Add hands-off: true to both roasts. It says what their disallowed-tools line already enforces. The menu prints the same as before, because nothing reads the new key yet.

python3 scripts/roast-menu.py

mild       /roast-commit   Roast the last commit message.scorching  /roast-branch   Roast every commit on this branch, in order.

The files after step 3

.claude/skills/roast-commit/SKILL.md

---name: roast-commitdescription: Roast the last commit message.model: sonneteffort: lowallowed-tools: Bash(git log *)disallowed-tools: [Agent, Bash, Edit, Write, NotebookEdit]metadata:  family: roast  heat: mild  hands-off: true---The last commit, fetched before you read this:!`git log -1 --format='%h %s%n%n%b'`Roast the message in two sentences: one on what it says, oneon what it leaves out. Be rude about the message, never theperson who wrote it.
  1. 3a hands-off: true repeats what disallowed-tools enforces. Claude Code acts on the list and ignores the key.

  2. 3b Change one and the other goes on saying what it said; Claude Code never compares them.

.claude/skills/roast-branch/SKILL.md

---name: roast-branchdescription: Roast every commit on this branch, in order.model: opuseffort: highallowed-tools: Bash(git log *)disallowed-tools: [Agent, Bash, Edit, Write, NotebookEdit]metadata:  family: roast  heat: scorching  hands-off: true---Every commit on this branch since it left main:!`git log main..HEAD --reverse --format='%h %s'`Read them as one story and roast the story: where it changedits mind, what it fixed twice and which message gave up. Berude about the commits, never the person who wrote them.

noor wants roast-branch to run git blame on the worst commit, takes Bash off its disallowed-tools list and leaves hands-off: true where it was. Claude has Bash again during the roast, and the frontmatter still says hands off. Teach the script what hands-off means, and make it fail when a skill claims it without taking those tools away.

python3 scripts/roast-menu.py (exits with status 1)

mild       /roast-commit   Roast the last commit message.scorching  /roast-branch   Roast every commit on this branch, in order.roast-branch: hands-off, but Claude keeps Bash

The files after step 4

.claude/skills/roast-branch/SKILL.md

---name: roast-branchdescription: Roast every commit on this branch, in order.model: opuseffort: highallowed-tools: Bash(git log *)disallowed-tools: [Agent, Edit, Write, NotebookEdit]metadata:  family: roast  heat: scorching  hands-off: true---Every commit on this branch since it left main:!`git log main..HEAD --reverse --format='%h %s'`Read them as one story and roast the story: where it changedits mind, what it fixed twice and which message gave up. Berude about the commits, never the person who wrote them.
  1. 4a disallowed-tools has lost Bash; hands-off: true is still there.

scripts/roast-menu.py

... lines 1 to 3 left outimport sysfrom pathlib import PathHEAT = ["mild", "medium", "scorching"]REMOVED = {"Agent", "Bash", "Edit", "Write", "NotebookEdit"}... lines 9 to 15 left outmenu, problems = [], []for path in sorted(Path(".claude/skills").glob("*/SKILL.md")):	block = path.read_text().split("---")[1]	if field(block, "family") != "roast":		continue	name, heat = field(block, "name"), field(block, "heat")	removed = set(re.findall(r"\w+", field(block, "disallowed-tools")))	if field(block, "hands-off") == "true" and not REMOVED <= removed:		problems.append(f"{name}: hands-off, but Claude keeps {', '.join(sorted(REMOVED - removed))}")	rank = HEAT.index(heat) if heat in HEAT else len(HEAT)	menu.append((rank, f"{heat or '?':<10} /{name:<14} {field(block, 'description')}"))print("\n".join(line for _, line in sorted(menu)))for problem in problems:	print(problem, file=sys.stderr)sys.exit(1 if problems else 0)
  1. 4b REMOVED writes down what hands-off means, once, in the only place that reads it.

  2. 4c REMOVED <= removed holds when every tool in REMOVED is also on the skill's list.

  3. 4d sys.exit(1 if problems else 0) makes the script fail, so a git hook or a CI step can refuse the change that broke the promise.

The Real Thing

Every one of this repository's 85 skills carries family, across 25 families; 62 carry glyph and 73 carry goblin-spinner. commit-one has all three, and each has its own reader.

---name: "Commit: One"description: "Generate a commit message. If nothing staged, stage all changes."...model: sonnet # was haiku: auto mode skips haiku and keeps the session model, which is sometimes Fable here; sonnet pins iteffort: lowmetadata:  glyph: ᛊ  family: commit  goblin-spinner: writing the message|staging|committing...---
  1. R.a glyph: ᛊ repeats model: sonnet as a rune, as hands-off repeats disallowed-tools. On 30 September 2026, project-tag_version moved from haiku to sonnet and kept Haiku's rune, ᚺ, until goblin-jester read the field. The rune was fixed on 8 October, and skill-lint.py arrived the next day.

  2. R.b family: commit puts [⇓] in the goblin's hand while the skill runs. A family missing from PROPS gets an empty hand, so roast would need its own line before the goblin held anything.

  3. R.c goblin-spinner holds the words the spinner cycles through while the skill runs. Its reader strips control characters and cuts each word to SPINNER_WORD_MAX, because a plugin's author writes these too and a stray escape would reach your terminal.