/mastermind:interviewfrom mastermind
Interrogates ambiguous or underspecified asks to produce a precise spec before building. Use when scope is disputed, terms are inconsistent, or the user wants to be questioned.
Ships in mastermind. 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.
Read when SKILL.md points to them.
A precise spec is cheaper than a wrong build. Time spent making the spec exact pays off more than time
watching the implementation (~/.mastermind/engineering/core/product-sense.md, ~/.mastermind/engineering/core/agent-loop.md). This produces the what,
not the code.
Lead with your reading of the ask and how sure you are: a wrong guess gets corrected faster than a blank question gets answered. One or two lines, then proceed or ask:
Reading it as: a way to see which jobs failed overnight, so the morning starts with a fix not a search.
~70% sure: what I'm missing is whether "failed" includes timeouts.
If you do have to ask: one question at a time, and answer it yourself first. A batch of questions hands your job back and makes the user do technical work; asking blind makes them generate an answer from nothing. Ask the single question that unblocks the next decision, with your recommendation attached, people correct a wrong guess far faster than they compose an answer:
Q: Should a failed import roll back the whole batch, or keep the rows that parsed?
I'd keep the good rows and report the failures: a 5,000-row file failing on row 4,900
is the case people actually hit. Say the word if you'd rather it be all-or-nothing.
Look facts up rather than asking for them: the stack, the conventions, what the code already does are yours to find. Only the decisions are theirs.
When the user has no hypothesis of their own, do not ask them for one. Give what is known from the code and the brief, then ask only for the unknowns.
Two things to catch, because both hide a wrong build behind an apparent agreement:
Say what you think they mean first: that stays the default, and it is faster than any interview. But when the user hands you the wheel: "interview me", "ask me what you need", "question me", "here's the PRD, tear it apart": switch modes and get everything a build needs before a line is written.
With a document ("interview me on this spec/PRD/ticket"), read it in full first, then raise only what the document itself cannot settle: contradictions between two sections, requirements with no acceptance criteria, assumptions stated as facts, and the silent gaps: errors, empty states, permissions, migration of what already exists. Quote the line you are challenging; a challenge without a citation is an opinion.
The deeper pass: red-team the document (offer it, do not default to it). For a plan someone will bet real time or money on:
This attacks a document, deciding what to build. Attacking a finished claim ("the bug is fixed") is
double-check, after the work.
When the target is a spec.md in a feature folder (~/.mastermind/engineering/core/spec-driven.md),
the questions come from a scan rather than from instinct. Mark each area clear, partial or missing:
| Area | What a gap looks like |
|---|---|
| Scope and roles | no out-of-scope line, two kinds of user treated as one |
| Data | an entity with no identity rule, no lifecycle, no volume |
| Journeys and states | no empty, loading or error state; an unordered sequence |
| Quality targets | "fast", "reliable", "secure" with no number or behavior |
| Integrations | an outside service with no failure behavior |
| Edge cases | concurrent edits, duplicates, limits, partial failure |
| Constraints | a technical or legal limit implied and never stated |
| Words | one concept with two names, against the brief's glossary |
| Done | an acceptance criterion nobody could test |
Then ask, under these limits:
[NEEDS CLARIFICATION]
markers come first.blueprint).Stop when the scan leaves no area partial or missing, the user says stop, or five questions are spent.
A spec with no markers still gets the scan: its silent gaps are the point. Report the areas still
partial, and set the spec's status to clarified when no marker remains. Then run mastermind next and end with the step it names. In this mode spec.md is the
scope contract: skip Write the spec and Output below, and write no second spec file.
Outside clarify mode, close the interview by writing the scope contract below. Show it and proceed: it is a contract the user can correct, not a gate. Stop for an answer only where the contract rests on a product decision the user has not made. Everything you noticed but were not asked for goes under Suggested (not done): never folded into the build.
Problem & outcome: the real user/business outcome, in one or two lines (not the literal request if they differ). What outcome, for whom, why now?
Scope: what's in, and explicitly what's out (deferred as follow-ups). A coherent slice.
Name the key terms (glossary). List the domain nouns actually in use. Define each in one sentence, plus what NOT to call it, so the synonyms are on the record. Then resolve any word that means two things, or two words that mean one. One concept, one name: then use these exact names in the spec, types, and code. Names are the data model in disguise; muddled naming is a bug waiting to happen.
Interfaces & data: the files/modules touched, the key types, the API/data contracts.
Acceptance criteria: observable behavior that means "done," from the user's view (not "compiles"). Write each one in a shape that already contains its trigger, so QA can execute it without guessing:
<event>, the system shall <response>: when the upload finishes, the row count is shown<state>, the system shall <response>: while a sync is running, the button stays disabled<failure>, then the system shall <response>: if the token expires, then re-auth happens silently once<feature is present>, the system shall <response>: for anything behind a flagFour sentence shapes, and between them they force the trigger into the criterion. "Handles errors gracefully" has no trigger and no observable, so nobody can tell you whether it happened.
Edge cases & failure modes: null/empty/loading/error/many/offline/unauthorized/malformed.
Verification: the end-to-end check that proves it works.
A slice should fit one working session and be verifiable on its own: vertical (a thin path through every layer) rather than horizontal (a whole layer with nothing to run). Two signals that one is too big, both cheap to check:
For anything spanning more than a couple of slices, put a checkpoint between them, the small set of things that must be true before the next one starts:
Checkpoint after slices 1–3
· suite green · build clean · one row imports end to end and shows in the UI
· reviewed with a human before continuing
The point is to make "halfway" a real state rather than a feeling, so a wrong direction costs one slice instead of the whole batch.
Decide everything technical yourself; surface only genuine product trade-offs to the user (one line each). Keep it self-contained: a fresh session should be able to build from it alone.
architect agentInterview settles the what; architect (~/.mastermind/agents/architect.md) is the how. Interview produces the
problem, scope, glossary, acceptance criteria, and edge cases; architect produces module/interface
boundaries, the data model, key types, and the technical decisions behind them.
interview first. Ask is clear but the design isn't → architect, when the
design crosses a module boundary, the data model or a public API (the kernel's threshold).architect as its input, it restates the problem from the spec's
scope and acceptance criteria instead of re-deriving them. A small, well-understood change needs
neither.A short SPEC.md (or inline): problem, scope, interfaces, acceptance, edge cases, verification. Decisive,
not a menu, the blueprint an implementer follows without second-guessing.
When the work qualifies for the full flow in spec-driven.md, or the project keeps a specs/ folder,
hand the agreed scope to specify instead, so it lands in a numbered feature folder with traceable IDs.
What SKILL.md sets; muted values are Claude Code's defaults
33 skills in this plugin
/analyzeUse when a feature's spec, plan and task list all exist and need checking against each other before code is written: "check the spec and plan agree", "is this ready to build?", "find gaps before we start", or before building anything that touches money, auth or data from a task list. Read-only. Not for one concern inside the spec (`checklist`), not for code against the documents after building (`converge`)./assessUse when someone wants to know whether an idea deserves building before anyone builds it: "is this worth doing?", "should we build X?", "would users actually want this?", a product idea with no code yet, or a feature request nobody has said yes to. Ends in go, clarify or stop. Not for specifying something already decided (`specify`), not for choosing a library (`tech-scout`)./npx claudepluginhub mehrad-dm/mastermind --plugin mastermindOther plugins' skills for the same job