/mastermind:qafrom mastermind
Verifies features and fixes by running them end-to-end, writing checklists before testing, and reporting evidence. Defaults to driving the real thing; offers tests as a project choice.
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.
Proving a change works is mandatory, so it is never offered as a question: verify, then report. The proof is rarely a test suite. Default to verify (drive the real thing, watch what it does). Tests / TDD are a project choice: offer them, don't impose them. After a build, the close is the evidence and the verdict, with tests offered as one line under Suggested (not done).
Write the checklist before you look. Turn the expected behavior into a short list of criteria that are each individually checkable: one line per criterion, phrased so the answer is met or not met, never "looks fine". Write it before exercising anything, because a list written while looking is a list that describes what you found. If you can't say what correct looks like, you can't verify it.
Prefer criteria a person could count or observe over ones needing an opinion: "a second submit while pending is rejected" beats "handles concurrency well." This list is what you report against in step 5, and what makes "it works" mean something.
Pick the lightest real check. Drive the actual thing over reasoning about it: run the app and click the flow, hit the endpoint, run the script/CLI, render the component. Reuse the project's run/dev command; reach for harness the project already has.
Happy path, then the edges that matter: empty, null, error, loading, zero/one/many, unauthorized,
malformed, offline/slow (~/.mastermind/engineering/core/rigor.md). Observe actual output and state.
Check the invisible: typecheck, lint, build; console/network for errors; for UI, keyboard + focus, contrast, no layout shift/regression nearby.
Say what must NOT happen, not only what must. Half of a real check is a negative: no request was sent, the tokens were not cleared, the user was not bounced to login, no second write landed. A test that only asserts the visible message passes while the damage happens behind it.
Report with evidence: what you ran and what you observed (command output, response, screenshot).
When a check could not run, the verdict is Done, not fully checked and the not checked: line
names it (~/.mastermind/engineering/core/rigor.md).
"Click the flow" is the step most often skipped, because most sessions have no way to click anything. Work down this list and use the first rung you actually have:
browser-use being one example: it opens the page, clicks and types from a
natural-language task. Reach for it when writing selectors is the bottleneck and the question is
exploratory: does a person get through this flow. It brings its own runtime and its own model call,
and it is never a requirement: it is a rung, not a dependency.An agentic driver reads a page the way a person would, so it finds what a selector-based test cannot: the button nobody can find, the flow that technically works. It also varies between runs, so it belongs in exploration and not in a gate.
Found a bug? Fix the root cause (or route to debug if it's not obvious), never suppress a symptom
to make a check pass. Verify against the requirement, not the code you just wrote (a hostile eye).
Writing a test suite is a heavy optional step: offer it, get a yes, then write. You're in Mode 2 only because the user asked for tests / test-first, or said yes to the offer after a build. Inside it, test the product fully and in detail: writing tests (even test-first) to prove behavior across the happy path and every edge is good QA, not overreach.
A test written for a bug must be proven against it: the revert-proof in debug phase 6
(~/.mastermind/skills/debug/SKILL.md) is the rule; it applies unchanged here.
Get the yes before the first file lands. Name where the tests would live and what they'd cover,
"Want these as tests? They'd go in <path> and cover <happy path + the edges that matter>.": and write
nothing to disk before it. Proportionality, not ceremony: if the project already has a suite and the
change belongs in it, adding the case is the normal way to work: do it and say so; the gate is for
starting a suite, or putting test files in a repo that has none.
Then Red → Green → Refactor:
Test behavior/contracts, not internals (brittle implementation tests are worse than none). Test names read like the spec. Struggling to make a test pass cleanly? The design is probably wrong, listen to it.
Two checks for a test you wrote. Name the specific break it catches, then make that break by hand and watch it fail. A test that still passes against the broken code tests nothing. And a test that only fails when the code changes, not when it breaks, such as one asserting exact copy or a snapshot of internals, is a change detector: it costs every future edit and catches nothing.
The two ways a green suite lies. A tautological test recomputes the expected value the way the
code does: expect(add(a, b)).toBe(a + b) passes whatever add does, so the expected value has to
come from somewhere independent: a hand-worked example, the spec, a known-good output. A horizontally
sliced suite tests a layer in bulk before anything runs end to end, which verifies imagined
behavior, one thin vertical slice that actually executes is worth more than a wall of green.
And don't silently leave test files in the user's repo. They were agreed before they were written, so nothing arrives as a surprise, but close the loop: say what now exists and confirm it stays, "Tested it thoroughly; keeping these tests in
<path>as coverage unless you'd rather I remove them." Match the project: if it already has a suite, add to it; if it has none, don't impose one: the files are the user's call, even though the testing wasn't optional.
The evidence and the edge cases exercised first, then the kernel's verdict with its not checked:
line naming any gap you couldn't cover (and why). If tests were written: note what they cover and confirm they stay, never write
or persist a test suite the user didn't agree to first. If the project's
cycle-report preference is on (.mastermind/prefs.md), also follow the report skill to save a
durable write-up; default off, so by default the verdict stays in chat.
The optional quiz. Offer it once, as a line under Suggested (not done): three questions to check what was tested. When the user asks for it, ask three whose answers are in your report: what was exercised, what would have failed without the change, and what is still unchecked. Give the answers after the user replies. Never ask them unprompted, and never offer twice in a session.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mehrad-dm/mastermind --plugin mastermind33 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`)./blueprintUse when a written feature spec needs its technical plan: "plan this spec", "how should we build this spec?", "make the technical plan for this feature", a spec in specs/ with no plan.md yet, or a plan that a spec or constitution change has made stale. Not for a feature with no spec (`specify`, or `build` for a small one), not for one design question outside any feature (the `architect` agent)./breakdownUse when a feature with a spec and a plan needs its ordered task list: "break this into tasks", "make the task list", "what are the steps to build this?", a feature folder with plan.md and no tasks.md, or a task list made stale by a spec or plan change. Not for a feature with no plan (`blueprint`), not for one session's to-do list./buildUse when implementing any feature, change or fix whose scope is clear enough to start: "build me X", "add this feature", "implement this", "make this work", "can you create". Small features included: they still need verifying before "done". Not for a literal one-line edit, an ask whose scope is unsettled (`interview`), or a bug with no known cause (`debug`)./checklistUse when a feature's requirements need testing for one concern before planning or building: "make a security checklist for this spec", "are the UX requirements complete?", "what did the spec forget about accessibility?", "does our spec cover abuse or partial failure?", a spec that looks thin on security, access rules or error recovery, or a sensitive feature heading into `blueprint` or `build`. Not for testing code (`qa`), not for whole documents against each other (`analyze`).Other plugins' skills for the same job