proof-spec
/proof-spec
Use when turning an idea into something buildable — first checks it against the board for anything it overlaps, supersedes or contradicts and settles each, then explores the problem, proposes approaches, writes user stories and acceptance criteria, rates priority, asks whether a new idea lands as a board-tracked issue or a parked GitHub Discussion, and holds an issue at Spec Draft until the user approves the spec; splits oversized work into a parent with sub-issues. Part of every issue
- Author
- jsamitt ↗
- Repository
- proof-claude-plugin ↗
- Licence
- MIT
- Last repository change
- 15.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 15.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when turning an idea into something buildable — first checks it against the board for anything it overlaps, supersedes or contradicts and settles each, then explores the problem, proposes approaches, writes user stories and acceptance criteria, rates priority, asks whether a new idea lands as a board-tracked issue or a parked GitHub Discussion, and holds an issue at Spec Draft until the user approves the spec; splits oversized work into a parent with sub-issues. Part of every issue
Original author description
Use when turning an idea into something buildable — first checks it against the board for anything it overlaps, supersedes or contradicts and settles each, then explores the problem, proposes approaches, writes user stories and acceptance criteria, rates priority, asks whether a new idea lands as a board-tracked issue or a parked GitHub Discussion, and holds an issue at Spec Draft until the user approves the spec; splits oversized work into a parent with sub-issues. Part of every issue
How it works
- Checklist
- 1. Check what already exists
- 2. Ground first
- 3. Explore
- 4. Propose approaches
- 5. User stories, then acceptance criteria
- 6. Cut
- 7. Rate priority
- 8. Design (visual changes only)
- 9. Present, then ask where it lands
SKILL.md preview
---
name: proof-spec
description: Use when turning an idea into something buildable — first checks it against the board for anything it overlaps, supersedes or contradicts and settles each, then explores the problem, proposes approaches, writes user stories and acceptance criteria, rates priority, asks whether a new idea lands as a board-tracked issue or a parked GitHub Discussion, and holds an issue at Spec Draft until the user approves the spec; splits oversized work into a parent with sub-issues. Part of every issue
model: opus
---
# Spec
Turns a thought into something you can build from without asking follow-up questions.
This is the only planning stage — no separate idea tier, no separate technical spec.
A new idea ends in one of two places, and **the skill always asks which**:
a GitHub **issue** (committed work, goes on the board) or a GitHub **Discussion**
(a worked-out concept, deliberately *not* on the board). There is no mode to remember
and no flag to pass — you are asked at the end, once the draft exists and the choice
is an informed one. Speccing an issue that already exists skips that question: it is
already an issue.
An issue waits at **Spec Draft** until the user approves the spec. Only an explicit
approval moves it to Ready to Dev — choosing where it lands is not approval.
```
/proof-spec "unused streak freezes should carry over to next week"
/proof-spec 14 # spec an issue that already exists
/proof-spec d/7 # pick up Discussion #7 and finish it
```
Read `_partials/config.md`, `_partials/voice.md`, `_partials/priority.md` and
`_partials/overlap.md` first, and `_partials/design-record.md` when step 8 applies. Then `project.docs` and any `learnings.file` entries
touching this area — say which past decisions you are applying.
## Checklist
1. Check what already exists — overlaps, supersedes, contradictions — and settle each
2. Ground yourself in the code that this would touch
3. Explore the problem — one question at a time
4. Propose 2–3 approaches with a recommendation
5. Write user stories, then acceptance criteria
6. Cut the scope
7. Rate priority — propose, then adjust
8. Design it, if it is visual — here, elsewhere, or not at all
9. Present the draft, then **ask where it lands** — issue or Discussion. Skipped for an existing issue
10. An issue: put the draft on it at `spec_draft`, **ask for approval**, and only then move it to `ready` and apply what step 1 settled. A Discussion: write it, off the board
11. Capture the spec learnings
12. Present discovered work
## 1. Check what already exists
Before anything else, run the **full** overlap check in `_partials/overlap.md`: open
issues, open Discussions, recently closed issues and the decisions file, against the idea
as stated. For `/proof-spec <n>`, check the issue against everything except itself.
If nothing overlaps, say so in one line and carry on. If something does, present the
matches and settle each one with the user **now**, in this session — the answer often
changes what the rest of the spec is about. *Spec the existing issue instead* switches
straight to speccing that issue.
Settle, do not apply. Write down what was decided and carry it through the spec; the
changes to other issues happen in step 10a once the spec is approved, or in step 10b when
the Discussion is written. Put them in the draft's Notes ("On approval: closes #12 as a
duplicate") so they survive a pause.
### Speccing an existing issue
When the spec is for an issue that already exists — given as `/proof-spec <n>`, or reached
through *Spec the existing issue instead* — check where it stands before touching it. With
the board off, read its labels and open pull requests instead.
| Where it is | What to do |
|---|---|
| `in_dev` or `in_review`, has an open pull request, or is closed | **Stop and ask.** Re-speccing work that is being built changes the ground under it. Offer: finish it first, stop it, or spec the change as a new issue |
| `ready` | Its spec is already approved. Ask whether to re-spec it before changing anything |
| A parent with sub-issues | It stays at `backlog` for life (step 3). Spec it, but never move it to `spec_draft` or `ready` |
| `backlog`, or already at `spec_draft` | Carry on |
Once the overlap check is settled and the user has committed to speccing this issue, move it
to `spec_draft` per `_partials/board.md`. Never before: a check that ends in "stop here"
leaves the issue as it was. Only the issue actually being specced moves. **An issue that
was `ready`** keeps its stage and `ready` label until the draft is posted in step 10a, and
gets them back if the user then answers *Not now*: its approved spec is still its body.
**A draft already waiting?** A waiting draft is the issue's one comment headed **Spec
draft — awaiting approval** that is not marked Approved or Superseded — or, for an issue
this skill created, its body while it has no `ready` label and no **Spec approved**
comment. Look for the comment, not the stage, so this works with the board off. An issue
with a **Spec approved — waiting for the design** comment is not waiting for approval. If
there is one, show it and ask: approve it as it is, revise it, or start again (mark the
old comment **Superseded**). Approving or revising goes straight to step 10a; the
settlements in the draft's Notes still apply, and steps 11 and 12 run afterwards, taking
the Spec capture from the draft's Approach and Notes.
## 2. Ground first
Read the actual files this would touch before asking anything. Grounded questions
("the reminder time is stored per habit and per account — which should this follow?")
are worth ten generic ones. Bring what you found into the conversation.
## 3. Explore
One question at a time, multiple choice where you can. Cover: what problem this solves,
who hits it and when, and what changes once it exists. Two to four rounds — this is a
spec, not a requirements phase.
Watch for the request that is really three requests. Never write one issue with three
unrelated acceptance criteria — that issue cannot be finished, only abandoned. Say so,
and offer three shapes:
| Shape | When |
|---|---|
| **One issue after all** | It only looked big; the pieces are one coherent change |
| **Separate issues, shared label** | 2–3 pieces that are genuinely independent and can ship in any order |
| **A parent issue with sub-issues** | 3+ pieces serving one goal, where the shared context is worth writing down once |
Recommend one and say why. For the parent shape, the parent holds the goal, the shared
constraints and the running order; each child is independently buildable with its own
acceptance criteria. Use GitHub's native sub-issue relationship, not a checklist of
links in the body — native sub-issues track completion on their own.
The parent goes on the board at `backlog` and **stays there for its lifetime**; children
move through the stages independently. The parent is never worked directly.
**Do not reach for the parent shape by default.** A parent with one or two children is
bureaucracy — it adds a layer that carries no information. If you cannot name shared
context that would otherwise be repeated in each child, use separate issues.
## 4. Propose approaches
Give 2–3 real options — not one plan plus two strawmen. Lead with your recommendation
and the reason. For each: what it costs, what it risks, what it forecloses. Then let
the user choose.
This step is where the harness earns its keep. A solo developer's failure mode is
committing to the first idea; two credible alternatives on the table is the cheapest
correction available.
Present them per `_partials/voice.md`: recommendation first, trade-offs in terms of what
the user experiences and what it costs, technical detail last. If the recommendation
genuinely hinges on something you could find out — a platform limit, a library's actual
behaviour — offer to research it, naming the question and how each answer changes the
call. Otherwise, recommend and move on.
## 5. User stories, then acceptance criteria
### User stories
Before the criteria, say **who** this is for and **why**, as user stories:
```
As a {specific user}, I want {goal} so that {reason}.
```
- **One story per distinct user and goal**, usually one to three. If you need more than
four, the request is probably several requests; that is the split question in step 3.
- **Name a real, specific user**: *a parent checking a child's progress*, not *a user*.
For internal work (a refactor, tooling), the user can be the developer or maintainer,
but the *so that* must still reach someone who uses the product. If it can't, say so;
that is a signal for the priority rating.
- **The reason is the point.** It is what lets the build and the review judge a case the
criteria did not foresee. *"So that it works"* is not a reason.
- Draft them from step 3's answers, show them, and let the user correct them. Every
acceptance criterion below should serve at least one story; a criterion that serves
none is scope creep, and a story with no criterion is not being built.
### Acceptance criteria
The contract `/proof-work` builds against and `/proof-review` reviews against. Each one
observable and checkable — a thing you could watch happen, not a quality you could
argue about.
```
- [ ] An unused freeze from last week is still available on Monday, up to a maximum of two
- [ ] Using a freeze on a missed day keeps the streak count unchanged, not increased
- [ ] Free users see the upgrade prompt on their third freeze of a week; Pro users never do
```
Not: "freezes work correctly", "good UX", "performance is acceptable".
Also state **out of scope** explicitly. It is the half people skip and the half that
stops the build wandering.
## 6. Cut
Before showing anything, re-read the draft and strip: features nobody asked for, "while
we're in there" additions, configurability with one caller, and anything defending
against a problem the project does not have. Say what you cut — the user may want a
piece of it back, and hidden cuts are how specs lose trust.
## 7. Rate priority
Per `_partials/priority.md`. Propose value, effort and confidence in **one message**, each
with a one-line reason, and the priority they produce. The user confirms or adjusts in
one reply.
Name the goal the work serves, from `goals` — or say plainly that it serves none.
You have just spent the conversation on this problem, so the reasons should be specific
to it — *"users asked for it in reviews"*, not *"users would find this helpful"*. If a
rating is a guess, say so; that is what the confidence rating is for.
If the table lands on **Reconsider**, say so directly: this may not be worth building.
If confidence is **Low**, recommend a bounded investigation before the work itself.
## 8. Design (visual changes only)
Skip silently if there is no visible UI. Otherwise the acceptance criteria say *what*
must be true, and something has to say what it should *look* like — or the build will
decide, and you will find out in review.
### Size it first
Size it by the **design question**, not by how much code it touches. Call the change
**small** only if all three hold, and say which way it went and why:
- it uses **existing components** (a new arrangement is fine, a new component is not)
- the design question is **narrow**: it touches **one or two screens**, *or* it is **one
change applied the same way everywhere** — a token value, a colour swap — which a few
representative screens show completely
- it needs **no new visual direction**. Refining an existing colour is not new direction:
a darker shade of the brand colour so its text passes contrast is still the same look.
A new palette, typeface or style is new direction
A contrast fix that changes three token values across twenty screens is small: the
question is "does the darker shade look right?", and a before/after of four screens
answers it. A redesign of two screens with a new card style is not.
### Offer the routes that fit
Present the options that apply, **recommendation first**, and let the user pick:
| Route | When to offer it | What happens |
|---|---|---|
| **Design it here** | Small, and Claude Design is available (below) | Claude designs it in this session on a Claude Design canvas, with you, using the project's design system. Recorded in the issue; no hand-off |
| **Design it elsewhere** | Not small, or the user prefers their own tool | The issue is created with a **brief for the designer**. Once the spec is approved it gets the `needs_design` label and waits in Spec Draft. When the design is ready, `/proof-handoff {n} <link>` checks it and moves the issue on |
| **Wireframe** | Layout or flow is the open question, not the look | A self-contained HTML wireframe saved under `docs/features/{issue}-{slug}/mockup.html` — layout only, no polish |
| **No design** | The criteria already pin it down (a copy change, one new field in an existing form) | Nothing extra |
Recommend **design it here** for small changes when it is available, **elsewhere** for
anything with a new component or new visual direction, and **no design** when a picture
would add nothing.
### Is "design it here" available?
Two checks, both quick. Say the result either way.
1. **Can this session make Claude Design canvases?** Call the Artifact tool's
`quickstart` with intent `design`. No Artifact tool, or no Design type in the result:
not available here — say so and offer the other routes.
2. **Is there a design system to design with?** In order of preference:
- `design.reference` is a Claude Design System link → design with it. This is the
version worth having: the canvas uses the project's real tokens and, where the system
has them, its real components.
- `design.tokens` is set → design with the exact values from the token module, and say
the components will be close copies, not the real ones.
- Neither → **do not offer** "design it here". A canvas with an invented look is a
generic mockup that quietly sets a style nobody chose. Recommend `/proof-design` and
offer the other routes.
### Designing it here
1. **List the states to draw** from the acceptance criteria — the default, plus every
state a criterion mentions (empty, error, loading, the long-content case, the smallest
screen). Confirm the list in one line; it becomes the record's table.
**For one change applied everywhere**, the states are instead a few **representative
screens**, chosen to cover every kind of use the change touches (a button, text on a
light background, an error message), not the screens that happen to be first.
2. **Create one canvas**, titled after the issue, through the Artifact tool, and follow
the Design type's own instructions for building it. One artboard per state. For one
change applied everywhere, each artboard shows the screen **today and after the
change, side by side**, using today's values from the code, so the user judges the
difference rather than the new look alone.
3. **Iterate with the user** — in chat or through comments on the canvas — until they
approve it. Change only what they ask.
4. **Check it against `design.rules` and `design.platform`** before calling it done, and
say what you checked. A rule broken on the canvas is a rule broken in the build.
5. **Record it** per `_partials/design-record.md`: save the frozen copy, and put the
`## Design` section in the draft the user approves in step 9.
### Designing it elsewhere
Write a **design brief** into the draft, ready to paste into the design tool, so the
design starts from the spec instead of from a blank page:
```markdown
## Design brief
**What this is for:** {the problem and who has it, from the spec — two sentences}
**Screens:** {which, and where they sit in the app}
**States to draw:** {the default, and every state the criteria mention — empty, error,
loading, long content, the smallest screen}
**Constraints:** {design.platform; design.rules in plain words; the design system to use
(design.reference), or "none yet"}
**Out of scope:** {from the spec}
```
The states list is what `/proof-handoff` checks the design against, so make it complete.
## 9. Present, then ask where it lands
Show the full draft. Revise and re-present as the user asks. **Create nothing until the
user has seen the draft and, for a new idea, chosen where it lands. Nothing reaches
Ready until they approve it in step 10a.**
**Speccing an existing issue** (given as `<n>`, or reached through *Spec the existing
issue instead*)? Do not ask where it lands. It is already an issue, so go straight to
step 10a.
Include what step 1 settled and what it will do to other issues ("closes #12 as a
duplicate; updates #19's criteria"), so the approval covers those too. If the scope moved
a long way during the conversation, re-run the overlap check on what is new before
presenting — the idea that was checked may not be the idea being approved.
For a new idea or a Discussion being picked up, ask — always, even when the answer seems obvious:
> Where should this land?
> **1. Issue** — committed work. Goes on the board at {board.stages.spec_draft} for your approval, then {board.stages.ready}.
> **2. Discussion** — a worked-out concept, parked. Not on the board, nothing owed.
Before asking, check that the repository can take a Discussion:
`gh api repos/{owner}/{repo} -q .has_discussions`, and an *Ideas* category. If either is
missing, say so in the question: option 2 is unavailable until Discussions are on (with
an Ideas category), and `/proof-init --refresh` will set that up. Do not quietly drop the
option, and do not create the issue anyway when the user wanted to park it. Ask whether
to land it as an issue, or stop and set up Discussions first.
Say which you would pick and why, in one line. The honest default is an **issue** when
the user came in wanting to build the thing, and a **Discussion** when the conversation
kept opening questions rather than closing them, when it depends on something that does
not exist yet, or when the user has said any version of "not yet". A **Reconsider** or a
Low-confidence rating is also a strong signal toward a Discussion.
Asking costs one keystroke. Guessing wrong puts a maybe on the board, and a board full
of maybes is one nobody looks at.
## 10a. The issue: Spec Draft, approval, then Ready
Title as a capability, not a task ("Unused freezes carry over to next week", not "Add
freeze carry-over"). Body:
```markdown
## Problem
{2-3 sentences: what hurts, for whom, when}
## Approach
{the chosen option, and one line on why it beat the alternatives}
## User stories
- As a {specific user}, I want {goal} so that {reason}.
## Acceptance criteria
- [ ] ...
## Out of scope
- ...
{## Design — only if step 8 designed it here, per _partials/design-record.md}
{## Design brief — only if it is to be designed elsewhere}
## Notes
{constraints, affected files, prior decisions being applied}
## Priority: {P1|P2|P3}
| | Rating | Why |
|---|---|---|
| Value | ... | ... |
| Effort | ... | ... |
| Confidence | ... | ... |
```
**Put the draft where the user can see it, at `spec_draft`.**
- **A new idea:** create the issue with this body and, per `_partials/board.md`, add it
to the board at `spec_draft`.
- **An existing issue:** leave its body alone for now and post the draft as a comment
headed **Spec draft — awaiting approval**. Keep it to that one comment, edited in
place as the draft changes. The body is replaced only on approval, so a spec that is
never approved leaves the issue's text as it was. (It moved to `spec_draft` in step 1,
or moves now if it was `ready`.)
- **A split:** each child is created at `spec_draft`. The parent goes to `backlog`.
- **Any parent** (an issue with sub-issues, new or existing) never moves stage and never
gets the `ready` label (step 3). Its draft is still approved like any other: approval
replaces its body and sets its P-label, and nothing else.
No `ready` label and no P-label yet. The draft's Notes list what approval will do to
other issues, from step 1.
**Then ask for approval** — a separate question, every time, even right after the user
chose *Issue*:
> #{n} is at {board.stages.spec_draft}: {link}
> Approving also {closes #12 as a duplicate; updates #19's criteria}. ← only if step 1 settled anything
> Approve the spec, or tell me what to change.
For a split, ask once for the whole set and list each child; the user can approve some
and change others. With the board off, say "waiting for your approval" rather than
naming a stage.
**Called from `/proof-handoff`** for a design that came first: the handoff's own approval
is the spec approval, and the design already exists. Create the issue and go straight to
*Approved* on the `ready` path, without asking again and without `needs_design` or the
waiting-for-design comment.
- **Changes:** revise the draft where it lives (the new issue's body, or the one draft
comment, edited in place), show what changed, and ask again. It stays at `spec_draft`.
- **Approved:** only now, per `_partials/board.md`:
- an existing issue's body is replaced with the approved draft, and the draft comment
is marked **Approved**
- it moves to `ready` with the `ready` label, its P-label, and `investigate` if
confidence is Low. Replace, never add: remove any other P-label, and `investigate`
if confidence is no longer Low
- **to be designed elsewhere:** the same labels except `ready`, plus `needs_design`.
It stays at `spec_draft` until `/proof-handoff` records the design. Comment **Spec
approved — waiting for the design** so it does not read like an unapproved draft
- **Not now:** leave it at `spec_draft` and say so — or, if it was `ready` before this
run, put it back at `ready` with its label. Do not apply what step 1 settled.
- **Unclear, or a reply to something else:** answer it if it was a question, then ask
the approval question again. Never move the stage on an unclear reply. If the session
ends without an answer, treat it as *Not now*.
Read approval by intent: a clear yes with no changes ("approve", "looks good", "yes")
approves; anything that asks for a change is a change, even if it starts with "yes".
Choosing *Issue* in step 9, or a reply to some other question, is never approval.
After approval, apply what step 1 settled, per `_partials/overlap.md`: comment on and
update, close, or attach as a sub-issue, and record the links in the issue's Notes.
Report each change with a link.
## 10b. Write the Discussion (if that is the answer)
Create it in the **Ideas** category via `gh api graphql` (there is no `gh discussion`
command). Resolve the repository and category IDs at runtime; never hardcode them.
Same body as the issue (user stories included), with three changes: the acceptance criteria become a
**Sketch of scope** (unchecked, clearly provisional — they have not been committed to),
add an **Open questions** section holding what the conversation did not settle, and the
Priority section is titled **Provisional priority**. No label — it is not a commitment.
Do **not** add it to the board, do not label it `ready`, and do not open an issue "to
track it". The whole value of this path is that nothing is owed.
Apply what step 1 settled, with one difference: a Discussion never closes or supersedes
an issue. Link the related issues from the Discussion and leave them open.
Report the Discussion URL and say plainly how to pick it up later: `/proof-spec d/<n>`.
### Picking one up later
Given `d/<n>`, read the Discussion as your starting context — the problem, the approach
and the rejected alternatives are already settled, so do not re-litigate them. Still run
step 1: the board has moved on since it was parked, and what it overlaps may have
shipped, changed or been turned down in the meantime. Explore
only the open questions, then continue from step 5 — including a fresh priority rating,
since the provisional one may be stale. When the issue is created, comment
on the Discussion with a link to it so the trail closes.
## 11. Learnings
Runs once the spec is approved, or the Discussion is written. Left at `spec_draft`? Skip
it, including any proposal to supersede a decision. The draft already holds the
reasoning, and it is captured when the spec is approved.
Per `_partials/learnings.md`, post the **Spec** capture: the decision, why, and which
alternative was rejected. This is the entry you will most want later — it is the only
record of why the other two options lost. If a durable decision came out of it, propose
promotion and wait. If step 1 settled that this spec overrides a recorded decision,
propose superseding it here, per `_partials/learnings.md`.
## 12. Discovered work
Per `_partials/discovered.md`, present anything you found while reading the code.
File only what is approved.
## Hand back
The issue (or Discussion) URL and its stage — for an issue, the stage confirmed from
the board, never assumed (with the board off, its labels). Left at `spec_draft`? Say so,
and that `/proof-spec {n}` picks the draft up again.
Then **ask what to do next**, per `_partials/chain.md` — never start the next step unasked.
Versions
The database has no other skills named proof-spec.
Database snapshot: 13.11.2026 · package version 8b62e87c12a7 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95idea-to-spec
把产品想法变成可执行文档:拷问出决策、写 product.md、切成带验收标准的 spec。当项目里还没有 spec 文件,或需求只到功能列表、没有验收标准时使用。 - 95spec-driven-delivery
Use this capability when defining, refining, or reviewing a feature before implementation. Trigger on requirements, user stories, acceptance criteria, OpenAPI, AsyncAPI, JSON Schema, contracts, ADRs, RFCs, roadmap items, or \u201cturn this idea into buildable work\u201d. - 90Spec
Writes a grounded spec: recalls prior decisions from LTM, explores the affected code, then writes testable acceptance criteria to specs/<feature>.md. Use when the user asks to 'spec this', 'write a spec', 'define what to build', or 'write requirements / acceptance criteria'… - 100issue-spec
Draft or revise a focused specification issue when requested or required by repository policy. Use to discover existing work, define acceptance criteria or reconcile implementation decisions. - 90story-time
Start the Specify phase of the SPARK loop: the Product Owner interrogates a product idea and turns it into a spec with user stories and testable acceptance criteria. Use when the user brings a new feature idea, product idea or change request that has no spec yet — or wants an… - 90specify
Use to turn a raw feature idea into a reviewed spec.md — a lightweight Socratic interview front (capture the idea, deep-dive the problem) merged with a full product spec (context, goals, user stories, acceptance criteria, NFRs, KPIs). Triggers on "specify {slug}", "spec for…