Turns a request into a brief: the user's decisions, then tasks that each carry a proof command. Use when the user says 'plan this' or 'write a spec'. Not for bugs.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Spec?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/blauwtje-spec)
---
name: spec
description: "Turns a request into a brief: the user's decisions, then tasks that each carry a proof command. Use when the user says 'plan this' or 'write a spec'. Not for bugs."
argument-hint: "outcome to shape"
allowed-tools: Bash(cat "${CLAUDE_SKILL_DIR}/../../rules/BASE.md" "${CLAUDE_SKILL_DIR}/../../rules/CODE.md")
---
# Spec
**Ask the user only what the code cannot answer.** A guessed decision gets rebuilt. You write no code.
## Look first
Run `rg -il -e <word> docs/specs docs/research` and `rg --files docs/specs docs/research | rg -i <word>`. Edit a brief on the same outcome in place; if one covers the request, stop and say so.
When the user passes a `docs/notes/` path, take its Goal, Decisions, Claude chose and Non-goals as decided. Ask only its Open points and what is still open. Do not search `docs/notes` on your own.
## Decide whether to plan
Give a verdict, `go`, `clarify` or `stop`, and the likeliest failure. `clarify` asks the one question that makes it `go`. A small change with a known proof is one task, no interview.
## Find the open decisions
Read the code with `rg`. For over three tasks, send one `exo:researcher` (`Sources: repo`) per code area and one (`Sources: docs` or `web`) for outside facts, in parallel; keep only claims labelled measured. Keep notes in `<scratch>/<topic>-notes.md`.
The rest is for the user: what done looks like, data touched, architecture, trade-offs. For design options, set criteria first, score two or three sketches, and let the user pick.
## Ask
Ask one open decision per message, in this shape, so the user answers with an option letter:
```markdown
**Which delimiter should the CSV export use?**
Dutch-locale Excel splits comma files wrong.
- **(A) Semicolon**: opens right in Dutch Excel; other tools need a setting.
- **(B) Comma**: the standard; breaks in Dutch Excel.
Recommended: A, because the users work in Dutch Excel.
```
A second "I don't know" goes under `## Open points` and blocks dependent tasks.
## Write the brief
Write `docs/specs/<topic>.md` (in plan mode, the plan file) in the format of [references/brief.md](references/brief.md). See each proof fail once. For over three tasks, a fresh `exo:researcher` (`Sources: brief`, the plan path) reads it as a builder who cannot ask; put its questions to the user the same way.
## Hand off
When another skill invoked you, return to it. Otherwise end with the brief path, a code block with a paste-ready prompt that runs `build` on it, then `Sonnet, effort high` (set it: Sonnet starts at medium).
On `PLAN WRONG` from `build`, edit only tasks with no `Plan-task:` commit yet, and add a dated line under `## Log`.
Next: `build`.
!`cat "${CLAUDE_SKILL_DIR}/../../rules/BASE.md" "${CLAUDE_SKILL_DIR}/../../rules/CODE.md"`