Mastermind execute

From monoes/monomind · View interactive version

Mastermind execute is an AI agent skill from the GitHub repository monoes/monomind. Load a written implementation plan, review it critically, execute all tasks step by step, and hand off to mastermind:review when complete.

How to use this skill

Skill file

Mastermind Execute

Load plan, review critically, execute all tasks, report when complete.

Announce at start: "I'm using the mastermind:execute skill to implement this plan."

Note: This skill works best with subagent support (Claude Code). When subagents are available, dispatch one subagent per independent task in a single message.


Inputs


The Process

Step 1: Load and Review Plan

  1. Read the plan file at plan_path
  2. Review critically — identify any questions or concerns:
  1. If concerns exist: raise them with the user before starting
  2. If no concerns: create a TodoWrite with each task and proceed

Step 2: Execute Tasks

For each task in the plan:

  1. Mark as in_progress
  2. Follow each step exactly — the plan has bite-sized steps; do not skip or reorder
  3. Run verifications as specified in the plan
  4. Mark as completed

Dispatching subagents (when available): when independent tasks can run in parallel, dispatch one subagent per task in a single message via the Task tool. Each subagent starts with no memory of this session — embed the plan step and the brain_context received in Inputs directly in its prompt so it has the same grounding this skill was given.

CRITICAL — variable substitution required: before constructing the Task prompt, replace ${brain_context} and ${project_name} below with their actual literal values (the BRAIN CONTEXT block from Inputs, and the project name) — an unsubstituted ${brain_context} placeholder means the subagent executes blind to prior decisions and constraints. This is the same substitution discipline mastermind-idea/SKILL.md uses for its Task prompts.

Task({
  subagent_type: "coder", // the plan's agent recommendation if installed, else the [PICK] line, else mcp__monomind__pick({task: "<task title>", kind: "agents", top: 1}).agents.ranked[0].name (no MCP: mmpick from mastermind-agent-select), else "coder"
  description: "<task title from plan>",
  run_in_background: false, // true only when running independently alongside other parallel tasks
  prompt: `You are executing one task from an implementation plan for project "${project_name}".

BRAIN CONTEXT:
${brain_context}

TASK: <task title>
STEPS:
<verbatim bite-sized steps for this task from the plan>

VERIFICATION:
<verification command(s) from the plan>

Follow the steps exactly — do not skip, reorder, or invent steps not listed. Run the verification before reporting done.`
})

When the plan references skills:

Step 3: Complete Development

After all tasks complete and are verified:


When to Stop and Ask for Help

STOP executing immediately when:

Ask for clarification rather than guessing. Never invent steps not in the plan.

Required stop-report format. When any condition above fires, report using this exact structure — never just "I'm stuck" or a bare "please advise":

STOP — <one-line description of what blocked>

Task:      <the specific plan task/step that stopped, e.g. "Task 3: Add rate limiter">
Tried:     <what was actually attempted — commands run, files checked, approaches tried — not just "it failed">
Result:    <the actual error, output, or contradiction observed>
Need:      <the exact decision or input required to unblock — a choice between named options,
           a missing value, or explicit permission for a specific next step>

Example:

STOP — verification fails repeatedly on Task 3

Task:      Task 3: Add rate limiter to /api/upload
Tried:     Ran `npm test -- rate-limiter.test.ts` 3x after adding express-rate-limit
           middleware per plan step 3.2. Confirmed middleware order matches the plan.
           Checked for port conflicts (none). Re-read plan steps 3.1-3.4 — no gap found.
Result:    Test "blocks after 100 requests/min" fails every run: expected 429, got 200.
           express-rate-limit v7's `max` option appears to be silently ignored — same
           failure with max:1.
Need:      Decide between (a) pin express-rate-limit to v6 (last version where `max`
           worked as documented) or (b) switch to a different limiter library — the plan
           doesn't specify a version. Confirm which, or provide the correct v7 config.

The report must let the user act without re-deriving the investigation themselves — never a vague "please advise" with no Task/Tried/Result/Need detail.


When to Revisit Earlier Steps

Return to Step 1 (Review) when:

Do not force through blockers. Stop and ask.


Rules


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.