adr
Architecture decision records: durable decisions with their date, context, and consequences — supersede, never rewrite.
Spec-first design: a gap-closing interview that produces a complete spec, with a quality controller that blocks until every section is answered and every question resolved.
> /plugin marketplace add azrtydxb/procoder > /plugin install procoder@procoder
How it fires
How this command gets triggered: by you, by Claude, or both.
/specContext preview
What this command does when you run it.
Spec-first design: a gap-closing interview that produces a complete spec, with a quality controller that blocks until every section is answered and every question resolved.
description: "Spec-first design: a gap-closing interview that produces a complete spec, with a quality controller that blocks until every section is answered and every question resolved."
The user invoked /procoder:spec with arguments:
The launcher is: "${CLAUDE_PLUGIN_ROOT}/hooks/launcher.sh"
Specs live under `.procoder/specs/`, one Markdown file per feature. The point of spec-based coding is that the thinking happens BEFORE the code: the spec is complete when a different engineer could build the feature from it without asking you anything. `launcher.sh spec check` is the quality controller — it blocks while sections are missing or empty, while any `OPEN:` question is unresolved, and while acceptance criteria are untestable.
With a feature name in the arguments, start (or resume) that spec. With `check` or `list`, run the matching subcommand. With no arguments, run `launcher.sh spec list` and report.
Classify the work FIRST — and say the classification out loud so the user can override it before the first question:
answer, not kept code. State the question and the cheapest probe, get a nod, investigate, report. Anything built is labelled throwaway; keeping it is a new request that gets its own classification.
this repo (bounded measures the repo, not your familiarity with the problem). No spec file: ask the questions that matter, put a short design in chat (approach, files touched, testing), STOP for an explicit yes, then implement.
the full interview below.
In doubt between two paths, take the heavier one — and the ratchet is one-way: hidden complexity discovered mid-task upgrades the path (stop, say so, step up); nothing ever downgrades. The ceremony scales with the task; the approval gate never does — no implementation before the user's explicit yes, on any path.
The interview — this is the core of the skill:
1. `launcher.sh spec template <name>` prints the spec shape; write it to the printed path. 2. Fill it by interviewing the user, one topic at a time — do NOT invent answers to design questions the user has not decided. Ask the right questions to close gaps:
solution, ask for the problem behind it.
it — out-of-scope is written down so nobody assumes it.
implementations; ask about the ones the user has not mentioned.
missing, slow, or wrong?
reviewer can verify. "Works well" is not a criterion; "renders with the network cable pulled" is. 3. Every decision you cannot close in the interview goes in as an `- OPEN: <question>` line under Open questions. Resolve each with the user, then move the decision into its proper section and delete the OPEN line. Do not silently decide for the user. 4. Run `launcher.sh spec check <name>` after each pass. It names the remaining gaps — keep interviewing until it says COMPLETE. Do not start implementing while the spec is blocked. 5. When it is COMPLETE: for architectural work, write the implementation plan next (/procoder:plan — its own quality controller gates it); for smaller work, seed the task list directly from the acceptance criteria (`launcher.sh todo add`, one task per coherent group — see /procoder:todo). Then build against the spec. If reality contradicts the spec mid-build, update the spec first and re-check.
Senior-developer discipline for AI coding agents. A commit gate that counts unchecked as failing, quality controllers that refuse to call unfinished work done, and a lessons loop that closes each escaped bug's class. One Go binary, no runtime deps, works with 20+ agents.
Architecture decision records: durable decisions with their date, context, and consequences — supersede, never rewrite.
Onboard an existing codebase: every domain's checks over the whole tree, then a triaged plan to bring it in line.
The project layer: milestones, epics, and user stories with refusing controllers — spec-seeded, sprint-ready.
Run the formatting gate over the changed files, as a commit or CI would.
CI/CD hygiene and run health: pinned actions, timeouts, concurrency, tests — plus the latest runs via gh.
Copilot's auto-review escapes: find them since the last look, sanitise them, and turn each one into a lesson.