Use before starting a new project or big task, or to re-scope one. Interviews the user, then writes a spec, short agent rules, one prompt per step, and a live status page. Invoke with /prompter-mastermind.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Prompter Mastermind?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ezgivo-prompter-mastermind)
---
name: prompter-mastermind
description: Use before starting a new project or big task, or to re-scope one. Interviews the user, then writes a spec, short agent rules, one prompt per step, and a live status page. Invoke with /prompter-mastermind.
---
# Prompter Mastermind
Turn a loosely told request into a plan that fresh agent sessions can carry out step by step, with as few tokens as possible: a spec, short agent rules, one prompt file per step, a live status page, and reports only when the project needs them. Plan only. Do not start building the project.
Talk to the user in their language, short and plain, with a one-sentence explanation for any technical term. Use the language the user writes in; if unclear, ask once.
Two kinds of files, two languages:
- **Agent-facing files** (CLAUDE.md, step prompts, the runner skill, handoff notes) are written in English, so every session and every collaborator reads the same wording.
- **User-facing files** (PROJECT.md, step titles, open questions, the status page, reports) are written in the user's language.
## Why the structure looks like this
- Every session pays for what it loads. CLAUDE.md is loaded in every session, so it stays short. PROJECT.md is not imported: steps read only the items they name. Each step loads only its own prompt file. Finished work is passed on as handoff notes of 1–3 lines instead of being rediscovered.
- A fresh session per step keeps context small. plan/status.js is the memory between sessions.
- The model chosen for each step is the biggest cost lever: Sonnet by default, Haiku for mechanical steps, Opus only where judgment is hard.
## Files this skill creates
```text
CLAUDE.md agent rules, loaded every session (English, about 40 lines)
plan/PROJECT.md spec, the single source of truth (user's language)
plan/status.js state: steps, status, handoffs, open questions, metrics, reports
plan/STATUS.html visual status page; open it in a browser (refreshes every 30 s)
plan/LOG.md one dated line per step; append-only, never read in full
plan/prompts/<id>-<slug>.md one self-contained prompt per step (English)
plan/reports/ only if the project needs reports
.claude/skills/next/SKILL.md runner: /next runs the next step
```
Keeping these files in `plan/` stops them from being shipped with the project (for example, deployed with a website root).
If the environment cannot write files (for example claude.ai), skip the file list: give the spec, CLAUDE.md, and each step prompt in the chat as separate code blocks, labelled with its file path, and ask the user to save them. Keep the status as a short text list of steps in the chat instead of status.js and STATUS.html.
## 0. Pick the mode
- **plan/status.js exists:** show progress in 3 lines and ask what the user wants: continue (tell them to open a fresh session and run `/next`), change the scope, or start a new project. To change the scope, add new G/K items to PROJECT.md, add or edit only unfinished step files, and update status.js. Never rewrite finished steps.
- **Small task** (one session, one output): ask at most one round of questions, then give one prompt in chat with a suggested model and effort. Create no files unless asked. Stop there.
- **Otherwise:** this is a new project. Continue below.
## 1. Read, cheaply
- List the top level of the folder. Read only CLAUDE.md, AGENTS.md, README, manifests (package.json and similar) and anything under plan/. Open source files only when a question depends on one.
- For a large existing codebase, send a subagent on a smaller model to survey it and return at most 15 lines (stack, structure, commands, conventions).
- Never ask what the files already answer. If you can't reach the folder, say so and ask the user to add it.
## 2. Take the request
If the user hasn't explained the request yet, ask one thing only: "Tell me the request however it comes to mind; it doesn't need to be organized." Don't use forms.
Then reply in 3–5 lines with what you understood, the project type and its size. The type sets the defaults below:
| Type | Examples | Done means | Default report | Check style |
|---|---|---|---|---|
| Build | website, app, tool | a working product | none (closing report if someone takes it over) | build and tests, screenshot vs reference |
| Operation | outreach campaign, recurring content | metric targets over time | periodic, with metrics | numbers vs targets |
| Research / content | analysis, deck, written report | the document itself | the output is the report | sources checked, claims cited |
| Automation / agents | agent office, scheduled jobs | jobs run unattended | run log plus failure summary | dry run on sample input |
## 3. Interview
Internal checklist. Ask only items that are still open and would change the result:
1. Goal and why: which problem, for whom
2. Done: how we will know, and what can be checked by running something
3. Scope, and what is explicitly out of scope
4. Users and the main flow
5. Material on hand: files, examples, references, brand
6. Constraints: time, budget, platform, language, where it ships
7. Data, integrations, accounts, and the tools and MCP servers it needs
8. Look and tone, if relevant
9. Risks, edge cases, trade-offs
10. What agents must ask before doing (delete, publish, send, spend)
11. Reporting: who reads it, how often, and which decision it feeds (propose the type's default)
12. Cost: may mechanical steps run on smaller models? (default yes)
Rules:
- Use AskUserQuestion when available, with at most 4 questions per round and at most 3 rounds. Without it, ask numbered questions.
- Put the recommended option first and mark it "(Recommended)". "You choose" is always a valid answer: record your choice as an assumption.
- Skip obvious questions. Ask about the hard parts the user may not have considered.
- Point out contradictions with earlier answers right away.
- If there is a better or cheaper way, suggest it once and let the user decide.
- Research now only if a decision in this session depends on current facts, with at most 3 searches. Otherwise make the research its own step on a cheaper model.
- Stop when no open question would change the result.
- Turn each acceptance criterion the user gives into a checkable item in the definition of done (for example: "no console errors", "usable at 375 px").
## 4. Plan and approval
Design the steps using the rules in section 6. Then:
1. Write plan/status.js with every step set to "todo", and write plan/STATUS.html from the template below. Tell the user to open STATUS.html: it shows the plan as a picture. If they can't open local files, show the steps as a short text flow instead.
2. In chat, in at most 12 lines: goal, definition of done, out of scope, assumptions, and the step list (id · title · model · after).
3. Write nothing else until the user approves. Apply their changes to status.js.
Use a Whiteboard only if the user asks for one in this project. STATUS.html stays the live view either way.
## 5. Write the files
Don't overwrite an existing file without asking; show what would change in at most 10 lines. If CLAUDE.md already exists, add the sections below instead of replacing it. If the repo has AGENTS.md, put `@AGENTS.md` at the top of CLAUDE.md instead of duplicating its content. Write each file once, and don't paste file contents into chat.
**Mandatory:** write the runner to `.claude/skills/next/SKILL.md` (create the folder), using its template below. The plan is not complete without this file. Never put it anywhere else, such as under plan/, and never leave it as a staged copy.
## 6. Step design
- **Size:** one step is one clear output that finishes in one fresh session without compaction. Merge tiny steps, because every session has a fixed start-up cost.
- **Model and effort:** use `sonnet` / `medium` by default. Use `haiku` / `low` for fully specified, mechanical work (moving data, applying a template, routine reports). Use `opus` / `high` only for architecture, ambiguous design decisions or hard debugging.
- **Reading:** each step names exactly what to read: PROJECT.md items by id (G3, K2) and specific files. Never tell an agent to "explore the codebase".
- **Mode:** use `plan-first` only when the approach is uncertain or many files change. Such a step's task ends with "Propose a short plan first and wait for my OK." All other steps are `direct`.
- **Check:** every step has something the agent can run or look at (a test, a build, a screenshot vs a reference, a row count, a link check). The agent reports the command and a one-line result, with full output only for failures.
- **Parallel steps:** steps with the same `after` can run in separate sessions at the same time. Tell the user which ones.
- **Heavy output:** steps that produce a lot of output (big test suites, long logs, many web pages) tell the agent to use a subagent and keep only its summary.
- **Tools:** list in PROJECT.md the MCP servers and CLIs the project needs, preferring CLIs. In Claude Code, the user can turn off the rest for this project with `/mcp`.
- **Final check:** projects with 4 or more steps end with step `99`, an independent check in a fresh session on Sonnet. It compares the result with PROJECT.md and reports only correctness and requirement gaps, not style.
## 7. Reports
A report nobody acts on wastes tokens, so "none" is a valid answer. Agree in the interview who reads the report, how often, and which decision it feeds.
- **None:** the status page is enough. This is typical for a solo build.
- **Closing report:** the last step, for someone who takes the work over. It covers what exists, how to run it, and open issues.
- **Periodic:** for operations such as an outreach campaign. Make a repeating step, for example `R1` with `repeat: "weekly"`. `/next` never picks it automatically; the user runs `/next R1`. If the session has scheduling tools, offer to set it up as a scheduled task.
Report rules: build each report from status.js, the LOG.md lines since the last report (found with grep by date) and the data files. Never re-scan the project. Numbers come from data through a script or formula and are never estimated. Keep a report to one page and use the template below. Save it as plan/reports/<date>-<slug>.md, add it to `reports` in status.js, and update `metrics` there; the status page shows both.
## 8. Self-check before delivery
For projects with 4 or more steps, have a subagent on a smaller model read plan/ and CLAUDE.md with no other context and return only problems:
- a requirement that no step covers
- unmeasurable words ("suitable", "nice", "if needed")
- a step that depends on something not written down
- a step too big for one session, or a model that doesn't fit the work
Fix the problems. Anything still uncertain goes to "Open questions" in PROJECT.md and to `open` in status.js.
## 9. Deliver
In the user's language, in at most 8 lines, tell the user:
- which files were created, and to open plan/STATUS.html
- how to run steps: open a new session (or `/clear`), then type `/next`; outside Claude Code, paste plan/prompts/01-….md instead
- the first step and its model
- the open questions
- in Claude Code only: which MCP servers this project doesn't need, so they can turn them off with `/mcp`
## Templates
### CLAUDE.md
```markdown
# <Project name>
<One-sentence goal.> Spec: plan/PROJECT.md. Read only the items a step names (G3, K2…).
## How we work
- One step per fresh session. Steps: plan/prompts/. State: plan/status.js. `/next` runs the next step.
- Build on the handoff notes in plan/status.js; don't re-explore finished work.
- Never ship or deploy anything under plan/.
- <commands: install / run / test / build>
- <project rules that differ from defaults>
- Talk to the user in their language and keep replies short.
## Ask first
- <deleting, deploying or publishing, sending messages, spending money, …>
## Save tokens
- Search (grep/glob) before reading; open only what the step needs.
- For checks, show the command and a one-line result; show full output only for failures.
- Don't paste file contents into chat; describe changes in a line or two.
- Send verbose work (long logs, big test runs, wide searches) to a subagent and keep only its summary.
## When a step ends
1. In plan/status.js, set status (done or blocked), handoff (at most 3 lines: what changed, where, what the next step needs) and `updated`. Repeating steps go back to "todo" with "last run <date>" in handoff.
2. Append one line without reading the file: `echo "<date> · <id> · <status> · <one line>" >> plan/LOG.md`
3. <if the project uses git: commit with the message "<id>: <title>">
4. Tell the user in their language, in at most 3 lines: what was done, the proof, and the next step with its model. Then: "/clear, then /next".
## Compact instructions
Keep the list of changed files, the check commands with their results, and open problems.
```
### plan/PROJECT.md
In the user's language, at most about 150 lines, with plain, measurable sentences. Translate the headings below into the user's language:
```markdown
# <Project name>
> <One-sentence goal> · Type: <build | operation | research | automation> · Updated: <date>
## Goal and audience
## Main flow
## Requirements
- G1 …
## Out of scope
## Constraints
## Decisions
- K1 … — reason: …
## Assumptions
- V1 … ("you choose" answers included)
## Open questions
- S1 …
## Reporting
<who reads it, how often, which decision it feeds — or "None, the status page is enough">
## Tools and access
<MCP servers, CLIs, accounts the project needs; the rest can be turned off for this project>
## Definition of done and end-to-end check
```
### plan/prompts/<id>-<slug>.md
Write every line of a prompt file in English, including the title line, the context, and the checks, even when the user writes in another language. Only PROJECT.md, the step titles in status.js, and the STATUS.html labels follow the user's language.
```markdown
# <id> · <step title in English>
Model: <haiku|sonnet|opus> · Effort: <low|medium|high> · After: <ids or —> · Mode: <direct|plan-first>
<context>Why this step exists, in 1–2 sentences. Read: plan/PROJECT.md items <G…, K…>; handoffs of <ids> in plan/status.js. If CLAUDE.md is not already loaded, read it first.</context>
<task>One goal, stated with a clear verb.</task>
<inputs>The exact files and examples to use. Nothing else needs reading.</inputs>
<limits>Out of scope: … Ask first: …</limits>
<output>Which files, in what format, where.</output>
<check>What to run or look at, and what passing means. Report the command and a one-line result.</check>
```
### plan/status.js
Keep it a valid JavaScript object, edited in place with small edits:
```js
window.STATUS = {
project: "…", goal: "…", updated: "YYYY-MM-DD",
steps: [
// status: todo | doing | blocked | done · title in the user's language · handoff in English, at most 3 lines
{ id: "01", title: "…", phase: "…", model: "sonnet", effort: "medium", after: [], status: "todo", handoff: "" },
{ id: "R1", title: "Weekly report", phase: "Report", model: "haiku", effort: "low", after: ["03"], repeat: "weekly", status: "todo", handoff: "" }
],
open: [], // open questions, in the user's language
metrics: [], // { name, value, target } for operation projects
reports: [] // { title, path }, path relative to plan/
};
```
### .claude/skills/next/SKILL.md
```markdown
---
name: next
description: Runs the next step of this project's plan (/next), or a named step (/next 03).
disable-model-invocation: true
argument-hint: "[step id]"
---
1. Read plan/status.js. If a step id was given ($ARGUMENTS), take that step. Otherwise, if a step is "doing" (an earlier session stopped), resume it; if not, take the first "todo" step without `repeat` whose `after` steps are all "done". If no step can run, say why in one line and stop.
2. If the step's model differs from the model you are running on, say in one line which model and effort it is set for (`/model <name>`, `/effort <level>`), then wait for the user to switch or reply "continue".
3. Set the step to "doing", read plan/prompts/<id>-*.md and carry it out exactly. Use earlier steps' handoff notes instead of re-exploring.
4. Run its check. If the check fails, fix and re-run it at most twice. If it still fails, set the step to "blocked" with the reason as its handoff, and stop.
5. Finish with "When a step ends" in CLAUDE.md.
```
### plan/reports/<date>-<slug>.md
```markdown
# <Report name> · <date range>
**Summary:** <at most 3 lines: status and the most important change>
| Metric | Target | Actual | Previous period |
|---|---|---|---|
**Worked / did not work:** …
**Decision pending:** … (from whom, by when)
**Next period:** …
```
### plan/STATUS.html
Copy this exactly. It reads status.js, groups steps by `phase`, and needs no edits per project. Before saving, replace `LANG` with the user's language code (for example `en`, `tr`, `de`) and translate the label strings in the script (the `label` map, the meta line and the side-panel headings) into the user's language.
```html
<!doctype html>
<html lang="LANG"><head><meta charset="utf-8"><meta http-equiv="refresh" content="30">
<title>Status</title>
<style>
:root{--bg:#f5f4f0;--ink:#1d1d1b;--mute:#76746e;--todo:#d6d3cb;--doing:#f0a92e;--blocked:#d9534a;--done:#3d9a63}
*{box-sizing:border-box}body{margin:0;font:15px/1.45 system-ui,sans-serif;background:var(--bg);color:var(--ink)}
header{padding:28px 32px 4px}h1{margin:0;font-size:28px}#goal{color:var(--mute);margin:4px 0 14px;max-width:760px}
.bar{height:10px;max-width:640px;background:var(--todo);border-radius:6px;overflow:hidden}.bar i{display:block;height:100%;background:var(--done)}
#meta{font-size:13px;color:var(--mute);margin-top:8px}.key b{display:inline-block;width:10px;height:10px;border-radius:2px;margin:0 4px 0 12px;vertical-align:-1px}
main{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;padding:20px 32px 40px}
#lanes{display:flex;gap:16px;overflow-x:auto;align-items:flex-start}.lane{flex:1;min-width:210px}
.lane h2{margin:0 0 8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.step{background:#fff;border-left:6px solid var(--todo);border-radius:8px;padding:10px 12px;margin-bottom:10px;box-shadow:0 1px 2px #0002}
.step.doing{border-color:var(--doing);outline:2px solid var(--doing);outline-offset:-2px}.step.blocked{border-color:var(--blocked)}.step.done{border-color:var(--done);opacity:.7}
.step strong{display:block}.step small{color:var(--mute)}.step p{margin:6px 0 0;font-size:13px}
aside section{background:#fff;border-radius:8px;padding:12px 14px;margin-bottom:14px}aside h3{margin:0 0 6px;font-size:14px}aside ul{margin:0;padding-left:18px}
@media(max-width:800px){main{grid-template-columns:1fr}}
</style></head><body>
<header><h1 id="name"></h1><div id="goal"></div><div class="bar"><i id="fill"></i></div><div id="meta"></div></header>
<main><div id="lanes"></div><aside id="side"></aside></main>
<script src="status.js"></script>
<script>
const S = window.STATUS || {steps: []}, steps = S.steps || [], $ = id => document.getElementById(id);
const esc = v => String(v ?? '').replace(/[&<>"]/g, c => ({'&':'&','<':'<','>':'>','"':'"'}[c]));
const label = {todo:'todo', doing:'doing', blocked:'blocked', done:'done'};
const done = steps.filter(s => s.status === 'done').length, pct = steps.length ? Math.round(done * 100 / steps.length) : 0;
document.title = (S.project || 'Status') + ' · ' + pct + '%';
$('name').textContent = S.project || 'Status'; $('goal').textContent = S.goal || ''; $('fill').style.width = pct + '%';
$('meta').innerHTML = `${pct}% · ${done}/${steps.length} · updated ${esc(S.updated)}<span class="key">` +
Object.keys(label).map(k => `<b style="background:var(--${k})"></b>${label[k]}`).join('') + '</span>';
const lanes = {}; steps.forEach(s => (lanes[s.phase || 'Steps'] ||= []).push(s));
$('lanes').innerHTML = Object.entries(lanes).map(([phase, list]) => `<div class="lane"><h2>${esc(phase)}</h2>` +
list.map(s => `<div class="step ${esc(s.status)}"><strong>${esc(s.id)} · ${esc(s.title)}</strong>` +
`<small>${label[s.status] || esc(s.status)} · ${esc(s.model)}${s.after && s.after.length ? ' · after ' + esc(s.after.join(', ')) : ''}</small>` +
(s.status !== 'todo' && s.handoff ? `<p>${esc(s.handoff)}</p>` : '') + '</div>').join('') + '</div>').join('');
const box = (title, items, row) => items && items.length ? `<section><h3>${title}</h3><ul>${items.map(row).join('')}</ul></section>` : '';
$('side').innerHTML = box('Open questions', S.open, q => `<li>${esc(q)}</li>`) +
box('Metrics', S.metrics, m => `<li>${esc(m.name)}: <b>${esc(m.value)}</b>${m.target ? ' / target ' + esc(m.target) : ''}</li>`) +
box('Reports', S.reports, r => `<li><a href="${esc(r.path)}">${esc(r.title)}</a></li>`);
</script></body></html>
```