Build
⚗️ Experimental — A genius-builder brain for your AI coding tools: sharp defaults, real judgment, and the discipline to check their own work. For Claude Code, Codex, Cursor & Copilot. Just markdown; it improves itself over time.
npx -y skills add mehrad-dm/mastermind --skill buildAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 29 days oldThe repository was created 29 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 13 stars13 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when implementing any non-trivial feature, change, or fix — "build me X", "add this feature", "implement this", "make this work", "can you create". Covers new functionality, meaningful changes to existing code, and anything where quality matters. Not for a one-line diff — just do that.
SKILL.md
4.8 KB, as published. Nobody here has run it
MasterMind — Build
The single "do it the genius way, end to end" workflow. It runs the loop from ~/.mastermind/engineering/core/agent-loop.md,
pulling in the specialist agents and the field pack at each phase. Task: $ARGUMENTS.
Scale effort to the task (~/.mastermind/engineering/core/principles.md): a trivial change skips straight to implement+verify;
a foundation gets the full loop. Don't perform ceremony the task doesn't warrant.
The loop
-
Understand — restate the real problem and its scope/lifespan; do the asked task and nothing more (
~/.mastermind/engineering/core/rigor.md→ Stay in scope). Read the relevant existing code and conventions first (delegate wide reading to a subagent to protect context); learn the stack if unfamiliar (~/.mastermind/engineering/core/agent-loop.md→ Learn the stack first). Match the codebase. -
Design (non-trivial only) — invoke the
architectagent to produce the blueprint: module/component boundaries + interfaces, state model, data flow, key types, edge-case list. For a multi-file or unfamiliar change, write the design/spec down before coding. Skip for a clear one-file fix. -
Decide the stack — apply the active field's
stack-defaults.md. Choose the simplest thing that fully works; deviate only for a stated reason. Consultmentors.mdif a call is contested.
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" — do not start editing yet. Present a concise plan from steps 1–3: the goal, the approach, the files you'll touch, the steps, and any risk/decision worth a look.The bar: clear enough for an enthusiastic junior engineer with poor taste, no judgement, no project context, and an aversion to testing 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. If a step needs you to already know something the plan doesn't say, it isn't written yet. Then stop and wait for the user's go-ahead (this overrides the usual "decide and do" for this project — they opted in). If they adjust it, fold that in and re-show. On approval, announce
🧠 MasterMind ▸ implementing the planwith└ build · implement → verify → reviewbeneath it, then proceed to step 4. Skip the gate entirely for a trivial one-liner (match effort to stakes) — it's for changes worth reviewing first.
-
Implement to rigor (
~/.mastermind/engineering/core/rigor.md) — build against the design. Handle the unhappy paths (null/empty/loading/error/zero/one/many/offline/unauthorized/malformed). Types honest, no lazy placeholders, no dead code. Single-purpose units. Style like the surrounding code. -
Verify — close the loop (
~/.mastermind/engineering/core/agent-loop.md; theqaskill) — prove it works by driving the real thing: typecheck + lint + build, run the project's existing tests, and for UI exercise the actual flow / screenshot. Show the evidence; never assert success. If you can't verify it, it isn't done. Fix root causes. Don't add tests or a test framework unprompted — once it works, offer: "Built and verified — want me to add tests / do this test-first?" -
Adversarial review — invoke the
code-revieweragent on the diff in a fresh context. Fix real must-fix findings (correctness/security/a11y); treat gap-hunting nits as optional to avoid over-engineering. Re-verify after fixes. -
Capture & report — run the
levelupskill (capture) to fold any durable lesson or correction into the active field'slessons.md. Report honestly in a few lines: what shipped, the evidence it works, and anything deferred. Commit / open a PR only if asked. If the project'scycle-reportpreference is on (.mastermind/prefs.md:markdown/html, orask→ offer once), also run thereportskill to write a durable file — default is off, so most cycles just get this in-chat verdict. Skip it entirely for a one-line change.
Non-negotiables
Correctness, security, accessibility are never traded for speed. Speed is the reward for rigor. If an
approach is wrong or unsafe, say so once with the better option (~/.mastermind/engineering/core/rigor.md refuse-list), then proceed.