/mastermind:buildfrom mastermind
Implements features, changes, or fixes with clear scope. Follows spec-driven development, task lists, and verification steps. Use when you can state the ask precisely.
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.
Implement the task end to end and hand it back verified. Task: $ARGUMENTS.
Scale effort to the task (~/.mastermind/engineering/core/principles.md): a trivial change is
implement and verify; a foundation gets everything below.
Spec-first work. When the task qualifies for the full flow in
~/.mastermind/engineering/core/spec-driven.md, run its steps first: specify, then interview on
the spec, blueprint, breakdown, and analyze when it touches money, auth or data. Then build from
the task list below.
When the feature folder has a tasks.md, it is the plan. Implement and verify each task. Review runs
once per story, on that story's diff, at its checkpoint. The rules:
[P] may run together; everything else waits for the
task before it.specify or blueprint. A product answer the user gives lands in the spec's Clarifications.Ruling: <what> · <why> · <cost if wrong>. List all
of them in the final report. A product choice is never a ruling: it goes to the user.building at the first task. After the last task, run converge, and
treat the feature as done only when it reports converged. At each story checkpoint, run mastermind next and end with the step it names.These are outcomes, not a script. Reach each one in the order the task needs. A small change needs only the stated reading, the code and the proof.
A stated reading of the ask. Open with one line that says how you read it, so a misread surfaces
before the code exists: "Reading this as: a bulk-import screen for ops staff, optimised for recovering
from bad rows rather than for speed." Do the asked task and nothing more
(~/.mastermind/engineering/core/rigor.md → Stay in scope).
The existing code, read before you write. Match its conventions. Learn the stack first when it is
unfamiliar (~/.mastermind/engineering/core/agent-loop.md → Learn the stack before you build).
A design sized to the change. The kernel names when the architect agent is used: a decision that
crosses a module boundary, the data model or a public API. Below that, design it yourself. Either way:
~/.mastermind/skills/clarify/SKILL.md. One screen. A call tree is cheaper to correct than
the code under it.A stack choice with a reason. Apply the active field's stack-defaults.md when a field pack
exists. Choose the simplest thing that fully works; deviate only for a stated reason.
Plan-first gate (opt-in, off by default). If the project's
plan-firstpreference is on (.mastermind/prefs.md:plan-first: on): or the user asks to "plan first": plan first, then edit. Present a concise plan: the goal, the approach, the files you'll touch, the steps, and any risk/decision worth a look.The bar: clear enough for a capable engineer with no context on this project to follow without asking you anything. That means exact file paths, not "the auth module"; bite-sized steps, not "implement the feature"; and a stated way to tell each step worked. A plan records decisions, not code: a plan longer than the code it describes has written the code instead. Then stop and wait for the user's go-ahead (they opted in, so this overrides the usual "decide and do"). If they adjust it, fold that in and re-show. On approval, announce
🧠 MasterMind ▸ implementing the plan, then implement. Skip the gate for a trivial one-liner.
Code written to rigor (~/.mastermind/engineering/core/rigor.md). The unhappy paths are handled:
null, empty, loading, error, zero, one, many, offline, unauthorized, malformed. Types are honest. No
placeholders, no dead code. It reads like the surrounding code.
Proof that it works. Drive the real thing: typecheck, lint, build, the project's existing
tests, and for a UI the actual flow (the qa skill has the ladder). Show the evidence; never assert
success. A check that cannot run is handled by the rule in
~/.mastermind/engineering/core/rigor.md → After writing: the verdict is then Done, not fully
checked, never "not done". Fix root causes. Don't add tests or a test
framework unprompted. Tests that a task list or the constitution requires are not unprompted.
Otherwise, offer tests as one line under Suggested (not done).
A review, when the kernel's threshold requires one. The kernel states the threshold; it is not
restated here. When it applies, send the diff and the requirement to the code-reviewer agent in a
fresh context, never to a fork of this session. Below the threshold, self-check and say "self-checked"
in the closing line. For a reviewed change:
~/.mastermind/engineering/core/agent-loop.md → stop conditions). Two
consecutive rounds with no new finding end the loop early.A report. The evidence first, then the verdict with its not checked: and decided for you:
lines (the kernel has the form). Commit or open a PR only when asked. Run levelup (capture) only when
the work produced a durable lesson or a correction. If the project's cycle-report preference is
on (.mastermind/prefs.md: markdown/html, or ask → offer once), also follow the report skill.
The default is off.
You will pass broken windows on the way: a stale import, a misleading name, a function that wants
splitting. Fixing them buries the change you were asked for in a diff nobody can review. Collect them
in the kernel's Suggested (not done) list; ~/.mastermind/engineering/core/rigor.md → Stay in
scope has the format.
Correctness, security, accessibility are never traded for speed. If an approach is wrong or unsafe,
say so once with the better option (~/.mastermind/engineering/core/rigor.md refuse-list), then proceed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
feature-implementation, task-driven, spec-driven, verification
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`)./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./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`)./clarifyUse the moment the user signals your last answer did not land: "I did not follow that", "I don't understand", "say it simply", "you lost me", "what does that mean", "too long", "explain again", or a confused question repeating something you already answered. Re-pitch what you just said, in plain words or as a picture. Not for a new question, not for documenting a package (`explain`).npx claudepluginhub mehrad-dm/mastermind --plugin mastermindOther plugins' skills for the same job