How to use: Do these in order. Each one produces something you paste into the next. If you don't know an answer, say so—the prompt will ask up to 3 clarifying questions, then proceed with labeled assumptions.


1) Scale or Fix First?

What it's for: Find out if you should add agents or fix your current loop. No measurement required.

You are my multi-agent scaling advisor. I need a fast diagnosis: should I scale, or fix what I have first?

MY SITUATION:
Describe your current agent setup in plain language. Include:
- What task are agents doing?
- A recent run that went well (what happened, roughly how long)
- A recent run that went poorly (what broke, where it stalled)

If you don't know something, say "not sure" — I'll work with what you give me.

YOUR JOB:

Based on what I described:

1. PATTERN MATCH
   Which failure pattern sounds closest?
   - Agents waiting on each other
   - Agents duplicating or undoing each other's work
   - Agents drifting off-task or losing coherence
   - Single agent works fine, multiple agents make it worse
   - Single agent already fails, more agents won't help

2. SCALE DECISION
   - SCALE NOW: Your single-agent loop is solid. More agents = more throughput.
   - FIX FIRST: Your loop has problems that will multiply with scale.
   - UNCLEAR: Ask up to 3 questions, then proceed with labeled assumptions.

3. FIRST BOTTLENECK
   Name the single biggest thing to fix or design for before scaling.

OUTPUT FORMAT:
PATTERN: [Which failure pattern]
DECISION: [Scale now / Fix first / Unclear + questions]
FIRST BOTTLENECK: [One specific thing]
NEXT STEP: [One concrete action, not advice. Examples: "remove shared scratchpad" / "add judge gates" / "timebox workers to 30 min"]


2) Coordination Choke Points

What it's for: Find where agents wait, duplicate, or fight. No detailed measurement needed.

You are my coordination overhead auditor. I need to find where my agents are burning time on coordination instead of work.

MY SETUP:
[Paste your Scale Decision output from Prompt 1]

Plus, answer what you can:
- What do your agents share? (files, memory, tools, task queues, environment — list what you know)
- Where do agents seem to wait or get stuck?
- Any examples of agents undoing each other's work?

If you're not sure, say "not sure" — I'll ask up to 3 clarifying questions, then proceed with labeled assumptions.

YOUR JOB:

1. SHARED RESOURCES INVENTORY
   List everything that multiple agents touch. For each:
   - What is it?
   - Contention risk: Low / Medium / High
   - (If I said "not sure," make reasonable assumptions and flag them)

2. WAIT POINTS
   Where does one agent's work block another?
   - Locks or exclusive access
   - Reading something another agent is writing
   - Waiting for approval or handoff
   - Merge conflicts
   - Tool/API rate limits

3. TOP 3 CHOKE POINTS
   Rank the three worst, by how much parallelism they kill.

   For the #1 choke point: If available, include one specific example that shows the problem (a moment where an agent waited, duplicated, or conflicted).

4. ONE REMOVAL RECOMMENDATION
   Which single choke point should I eliminate first, and how?

OUTPUT FORMAT:
SHARED RESOURCES:
- [Resource]: [Contention: Low/Med/High] [ASSUMED if I guessed]
- ...

WAIT POINTS:
- [Type]: [Where it happens]
- ...

TOP 3 CHOKE POINTS:
1. [Worst] — Example: [specific moment if available]
2. [Second]
3. [Third]

FIX FIRST: [Specific choke point] — [How to remove it]


3) Two-Tier Architecture Templates

What it's for: Replace "agent team" with Planner / Worker / Judge. Get copy-paste templates.

You are my multi-agent architect. I'm converting to a two-tier hierarchy. Give me templates I can drop into system prompts.

MY SETUP:
[Paste your Choke Points output from Prompt 2]

What do your agents currently do? (Describe the task in plain language)

If you're not sure about something, say so — I'll ask up to 3 clarifying questions, then proceed with labeled assumptions.

YOUR JOB:

Design three roles and give me a usable template for each:

1. PLANNER TEMPLATE
   The planner breaks work into tasks and assigns them. It never executes.

2. WORKER TEMPLATE
   The worker executes exactly one task. It doesn't know about other workers or the big picture.

3. JUDGE TEMPLATE
   The judge evaluates completed work. Accept, reject, or retry with feedback.

For each template, include:
- Role description (2-3 sentences)
- What it receives (input format)
- What it outputs (output format)
- What it must NEVER do (forbidden actions)

OUTPUT FORMAT:

---
PLANNER SYSTEM PROMPT TEMPLATE

You are a task planner. Your job is to [specific responsibility].

YOU RECEIVE:
[Input format]

YOU OUTPUT:
[Task assignment format — include a sample structure]

YOU NEVER:
- Execute tasks yourself
- [Other forbidden actions]
---

---
WORKER SYSTEM PROMPT TEMPLATE

You are a task worker. Your job is to [specific responsibility].

YOU RECEIVE:
[Task ticket format — include sample structure]

YOU OUTPUT:
[Completion format — include sample structure]

YOU NEVER:
- Coordinate with other workers
- Act outside your assigned task scope
- [Other forbidden actions]
---

---
JUDGE SYSTEM PROMPT TEMPLATE

You are a task judge. Your job is to [specific responsibility].

YOU RECEIVE:
[Completed work format]

YOU OUTPUT one of:
- ACCEPT: [What this triggers]
- RETRY: [Feedback format]
- REJECT: [What this triggers]

YOU NEVER:
- Do the work yourself
- [Other forbidden actions]
---

Then tell me: What's the one thing most likely to break in this setup?


4) Worker Boundaries

What it's for: Define what a worker can and can't touch. Prevent scope creep.

You are my worker isolation specialist. I need hard boundaries so workers can't accidentally coordinate or scope-creep.

MY SETUP:
[Paste your Worker Template from Prompt 3]

What kind of output do workers produce? (code, content, data transformation, etc.)

If you're not sure about something, say so — I'll ask up to 3 clarifying questions, then proceed with labeled assumptions.

YOUR JOB:

Define three boundary documents:

1. MAX TASK SIZE RULE
   - Time limit: [Default: 20-30 minutes of work. Adjust if needed.]
   - Scope boundary test: "A task is too big if..." [finish this sentence]
   - If too big: Task goes back to Planner for decomposition. Worker never decomposes.

2. ALLOWED ACTIONS (whitelist)
   What CAN a worker do? Be specific:
   - Files/paths it can touch
   - Tools it can call
   - Outputs it can produce

3. FORBIDDEN ACTIONS (blacklist)
   What triggers automatic rejection?
   - Touching files outside scope
   - Calling tools not assigned
   - Asking about other workers or overall project status
   - [Add task-specific forbidden actions]

OUTPUT FORMAT:

---
WORKER BOUNDARIES

MAX TASK SIZE:
- Time: [X minutes]
- Scope test: "Too big if [condition]"
- If exceeded: Return to Planner

ALLOWED:
- [Action 1]
- [Action 2]
- ...

FORBIDDEN (auto-reject if violated):
- [Forbidden 1]
- [Forbidden 2]
- ...
---

Then tell me: What's the most common way workers will accidentally violate these boundaries?


5) Tool Diet

What it's for: Shrink tool sprawl. Small menus = better selection = less contention.