No slash command · from fd3
Writes a formal specification from ratified design decisions, using closing notes and research files as input. Reads a spec template and rules, then produces a spec document.
Ships in fd3. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The shape to write against is ${CLAUDE_SKILL_DIR}/../../references/spec-template.md, and the
invariants that hold in every section are in ${CLAUDE_SKILL_DIR}/../../references/spec-rules.md.
Read both before writing anything. They are what a spec is measured against — a section they
name and you omit is a finding waiting to happen.
Three paths come with the invocation, in this order: $ARGUMENTS
notes-path — the closing-notes file: four numbered lists holding the ratified decisions with
their question numbers, chosen options and facts: pointers, the decisions the assistant took,
the risks the user accepted, and the research files produced alongside them.research-dir — the directory those research files live in, with the session's INDEX.md.spec-path — where the spec goes.The notes file and the research directory are your whole input. Read the notes file before writing and hold it as the checklist section 6 walks; a fact in neither it nor the research directory is a gap to declare or a lookup to dispatch, never a recollection. The decisions in it are ratified — you write them up, you do not reopen them.
A probe — a command you run to settle a claim, a repository's own script included (a package.json
script, a Makefile target, a docs build) — runs in a detached worktree under your scratchpad
(git worktree add --detach <scratchpad>/<name> <commit>), never in the user's checkout, and never
installs, links or rebuilds dependencies; a claim that needs more is a gap to declare. Your
scratchpad is the directory your system prompt names; when it names none, create one once with
mktemp -d "${TMPDIR:-/tmp}/fd3-<topic-slug>.XXXXXX" and use that literal path for the rest of the
session — never a directory inside a repository (scratchpad/, .scratchpad/, notes/, research/).
INDEX.md in the research directory is the research you write from: each decision's facts:
names its entries, and each entry holds the question, the condensed answer, its sources and the
report file. Read it whole, after the notes. Open a raw report only to quote it, at the heading
that holds the quote — never end to end. Notes with no INDEX.md beside them come from an older session: there the notes' research
list is the index — read a report's headings first, then the sections you are about to cite. Do
not re-read a file you have already read in this pass: if a cat trips the tool cap, the payload
is on disk and the error names its path.
A path that is missing, or that does not resolve, stops you: SendMessage to main naming which
one and what you need, then end your turn. Do not guess it, do not derive it from the repository's
layout, do not go looking for it. The answer comes back as a message and you continue from there.
A spec-path that already holds a spec with an evidence record is an update, not a new document:
apply only the decisions the notes file holds that the spec's decision table does not, each in the
sections it binds, and touch nothing else — the rest of the document stands on its last verdict.
Report the edits by section; validation reads exactly those.
Confirm spec-path's directory exists before writing. Once the spec is there, the session's
working files move out of the scratchpad into the spec's session folder beside it, named the
spec's filename without .md, plus .session/ (spec/out.md → spec/out.session/, never
spec/out.md.session/): the closing-notes file as notes.md, the question ledger beside it
(question-ledger.md) when there is one, and the research directory as research/ with INDEX.md
among them. They outlive the session — a validation pass reads the decisions' provenance
from them, and a re-entry appends to them — but they are never committed, so create the folder
holding a .gitignore whose one line is *. That hides the folder from git, the ignore file
included, without touching a tracked file, and goes wherever the folder goes. On an update the
folder already exists: add to it. Rewrite every scratchpad path the notes, the
index or the spec cite to the new location — evidence a later pass cannot open is evidence lost.
What moves is the evidence: the reports, and any data file the spec or a report cites. Raw dumps
and scratch scripts nothing cites stay in the scratchpad, and so does a file that holds an error
response instead of the page it was fetching, which proves nothing.
Nothing else you write lands beside the spec except evidence/<section>.md (section 3), which is
committed with it.
Only what the session settled or established. The template defines every section's shape — write against the file, not from memory of it. What the template cannot know is how a grilling session maps into it:
D1…Dn. Each rationale
opens with its provenance: the question number and option the user chose, or
assistant-taken and the answer it followed from. A decision you took yourself, that the
user's closing confirmation covered without answering directly, still goes in on those
terms — and where a decision supersedes one of the user's own answers, the rationale names
that answer and why it fell. An end state whose provenance is missing reads as the user's
choice when it was yours.Every load-bearing claim gets a row: the claim as the spec asserts it, and how it was established —
the command, the path:line, the doc quote, the probe output. Not "checked the code". A claim a
research file establishes cites that file's path beside the source it quotes — the report, never
INDEX.md, which only routes to it; an inline entry's own sources are the citation. The report
sits in the uncommitted session folder, so the source beside it is what a reader on another
machine can open; a quote that must outlive the session goes into evidence/<section>.md.
This table is the spec's proof of work and the thing a validation pass spot-checks first, so it is worth more than any prose you could write instead. Two rules:
${CLAUDE_SKILL_DIR}/../../references/fact-routes.md. If it stays unsettled, it goes into
the document as a declared gap with an owner and a placement, never as a bare statement.Keep every cell of this table — and of every other table in the spec — to two sentences. Evidence
that needs more room goes to evidence/<section>.md beside the spec, cited from the cell; the
template says so, and a spec whose tables read as prose is one nobody re-reads.
A number you chose while writing — a bake period, a waiting window, a threshold, a version — is a claim like any other: it gets an evidence row stating its basis, or it becomes a declared gap. A plausible reason attached to a number nobody agreed is still a number nobody agreed.
Before the document is reported done, resolve every path:line you did not read yourself — the
citations inherited from lookup reports are the ones that drift. Batch the checks per file. A
citation that will not resolve is deleted or downgraded to a filename, never left for a validation
pass to find.
Anything the session could not settle goes into the document as a declared gap, on the terms
spec-rules.md sets. A gap left as confident prose is the failure this whole section exists to
prevent. A choice the session left open is a parked choice, not a gap (spec-rules.md): it goes to
main as a question, never into the document.
Every sentence either records a decision, an element, a fact with its source, or a gap with its owner. Nothing restates what a table already says, and nothing narrates the process that produced the document — a reader implementing this needs the conclusion, not the reasoning that reached it, except where the reasoning is the rationale of a decision.
Write in English regardless of the language of the grilling.
Every section the template names is present, or absent with the one line that says the subject has no instance of it; every decision the session settled has a row in the decision table; every element carries its element code; and every load-bearing claim has either an evidence row or a declared gap with an owner and a placement. Check this against the document you wrote, not against your memory of writing it.
Then two counted passes, both against the file. Walk the closing-notes checklist entry by entry:
each ratified decision, assistant-taken decision and accepted risk names the Dn row, element code,
gap or rollout step that carries it — an entry with no landing place is a decision you dropped or a
gap you owe the reader. And count: decision rows, element codes used anywhere in the document,
element codes defined in the target-architecture section, verification rows, evidence rows, declared
gaps. Every code used has a definition — a code that appears only in a work item or a verification
row is defined or deleted.
Report where it went, how long it is, the counts from section 6, and how many citations you resolved yourself against how many you did not — "the rest resolve" is a claim you did not check. Then say plainly what is not yet settled in it: the declared gaps, and anything you were unable to verify.
Close with every question the writing raised, in one numbered batch, recommendation first: a
subdivision the threshold asks for, and each decision you took while writing that the closing
notes do not cover — a default, a value, a seam — with the Dn row it landed in. Those rows are
written as assistant-taken; the batch is where the user ratifies or overturns them, at one known
point. Each row is its own question, quoting the decision it records — never a single "ratify all"
over rows the user cannot see; more rows than one batch carries go out as consecutive batches, in Dn
order. A decision left "worth confirming before the split" is a parked choice (spec-rules.md), so
it goes in this batch.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub grixu/cc-toolkit --plugin fd35 skills in this plugin
/grill-topicGrill the user relentlessly about a topic until its design tree is settled. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases./implement-tasksMass-implement a directory of task files on a dynamic workflow — dependency-ordered waves in isolated worktrees, batched per-repository validation (CI, then code review), human-in-the-loop only where a task demands it, and a push/PR proposal at the end. Use when the user wants split tasks implemented./split-to-tasksSplit a spec into task files — one task per worktree, tasks grouped onto shared branches by the spec's rollout gates, one branch per pull request. Use when the user wants a SPEC divided into implementable tasks./validate-specValidate a spec for implementation readiness, backing every load-bearing claim with recorded evidence.Other plugins' skills for the same job