Mastermind design

From monoes/monomind · View interactive version

Mastermind design is an AI agent skill from the GitHub repository monoes/monomind. MUST use before creative work (features, components, behavior changes): explores intent, requirements and design with the user before implementation.

How to use this skill

Skill file

Mastermind Design

Help turn ideas into fully formed designs and specs through natural collaborative dialogue.

Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.

<HARD-GATE>

Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY request regardless of perceived simplicity.

</HARD-GATE>


Anti-Pattern: "This Is Too Simple To Need A Design"

Every feature goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" tasks are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple requests), but you MUST present it and get approval.


Inputs


Checklist

Complete these items in order:

  1. Explore project context — check files, docs, recent commits
  2. Offer the visual companion just-in-time — NOT upfront. The first time a question would genuinely be clearer shown than described, offer it then (its own message, not combined with a clarifying question). If no visual question ever arises, never offer it. See the Visual Companion section below.
  3. Ask clarifying questions — one at a time; understand purpose, constraints, success criteria
  4. Propose 2-3 approaches — with trade-offs and your recommendation
  5. Present design — in sections scaled to their complexity; get user approval after each section
  6. Write design doc — save to docs/mastermind/specs/YYYY-MM-DD-<topic>-design.md
  7. Spec self-review — inline check for placeholders, contradictions, ambiguity, scope (see below)
  8. User reviews written spec — ask user to review before proceeding
  9. Transition to planning — invoke Skill("mastermind-plan") to create the implementation plan

Process Flow

Explore project context
        ↓
Ask clarifying questions (one at a time)
    (a question is clearer shown than described?
     → offer Visual Companion just-in-time — own message, no other content)
        ↓
Propose 2-3 approaches
        ↓
Present design sections → User approves? → no: revise → loop
        ↓ yes
Write design doc
        ↓
Spec self-review (fix inline)
        ↓
User reviews spec? → changes requested → Write design doc
        ↓ approved
Invoke Skill("mastermind-plan")  ← TERMINAL STATE

The terminal state is invoking Skill("mastermind-plan"). Do NOT invoke mastermind:build or any other implementation skill directly. The ONLY next step after design is plan.


The Process

Understanding the idea

Exploring approaches

Presenting the design

Design for isolation and clarity

Working in existing codebases


After the Design

Documentation

Spec Self-Review

After writing the spec document, review it with fresh eyes:

  1. Placeholder scan: Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
  2. Internal consistency: Do any sections contradict each other? Does the architecture match the feature descriptions?
  3. Scope check: Is this focused enough for a single implementation plan, or does it need decomposition?
  4. Ambiguity check: Could any requirement be interpreted two different ways? If so, pick one and make it explicit.

Fix any issues inline. No need to re-review — just fix and move on.

User Review Gate

In confirm mode (default): Ask the user to review the written spec before proceeding:

"Spec written and committed to <path>. Please review it and let me know if you want any changes before we start writing the implementation plan."

Wait for the user's response. If they request changes, make them and re-run the spec self-review. Only proceed once the user approves.

In auto mode: Skip the wait. Proceed directly to Skill("mastermind-plan").

Transition to Planning


Key Principles


Visual Companion

A browser-based companion for showing mockups, diagrams, and visual options during design sessions. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.

Offering the companion (just-in-time): Do NOT offer it upfront. Wait until a question would genuinely be clearer shown than told — a real mockup / layout / diagram question, not merely a UI topic. The first time that happens, offer it then, as its own message:

"This next part might be easier if I show you — I can put together mockups, diagrams, and comparisons in a browser tab as we go. It's still new and can be token-intensive. Want me to? I'll open it for you."

This offer MUST be its own message. Only the offer — no clarifying question, summary, or other content. Wait for the user's response. If they decline, continue text-only and don't offer again unless they raise it.

Per-question decision: Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal. The test: would the user understand this better by seeing it than reading it?

A question about a UI topic is not automatically a visual question. "What does personality mean in this context?" is a conceptual question — use the terminal. "Which wizard layout works better?" is a visual question — use the browser.

If they agree to the companion, use Skill("mastermind-worktree") to set up an isolated workspace, then invoke Skill("agent-browser-testing") to open the browser.


Integration

Skills used by this skill:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.