agentleFS
justnau1020justnau1020/claude-os/skills/workflow/debate/SKILL.md

debate

Skill3 starsChanged 8 months agoApache-2.0View on GitHub

Adversarial 5-agent debate to evaluate what you have. Critics attack, defenders respond, moderator writes verdict. Produces a readiness report -- feed into /plan-features to act on findings.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use handoff.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this when you don't know if what you have is good enough.

    line 11
  2. Distinctive:

    Before spawning agents, main MUST:

    line 28
  3. Distinctive:

    Read the verdict line only (1 line, not the full report)

    line 115
  4. Very specific:

    Phase 1: Only Agent/TeamCreate/SendMessage.

    line 130
  5. Distinctive:

    Phase 2: Read one line from the report (the verdict).

    line 131

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Debate

Adversarial evaluation of the current state of a feature, system, or codebase area. Five agents argue from different angles, a moderator synthesizes a verdict. The output is a readiness report -- not a plan, not code.

Use this when you don't know if what you have is good enough.

Invocation

/debate [topic] [--scope "focus areas"] [--constraints "known constraints"]

Examples:

  • /debate "API security posture"
  • /debate "onboarding experience" --scope "auth, setup, first use"
  • /debate "launch readiness" --constraints "feature X is gated behind flag"

Pipeline

Phase 0: Constraints Gathering (Main + User)

Before spawning agents, main MUST:

  1. Ask the user for known constraints:
    • What's in scope for this review?
    • Any decisions already made that agents should respect?
    • Known limitations or trade-offs to evaluate against?
  2. Check memory for relevant project constraints
  3. Compile a constraints block:
CONSTRAINTS (non-negotiable):
- [constraint 1]
- [constraint 2]
DO NOT propose solutions that violate these constraints.

This prevents the #1 failure mode: agents recommending something already ruled out.

Phase 1: Debate (Parallel Agents)

Spawn 5 agents. The 4 debaters run in parallel. Moderator waits for all 4.

AgentRoleMethod
arch-criticCode auditor -- finds gaps, bugs, half-baked featuresReads source code, tests, architecture docs
comp-criticCompetitive benchmarker -- holds us to industry barWeb search for competitors, best practices
code-defenderArgues readiness from actual code evidenceReads source code, test coverage, recent commits
industry-defenderArgues competitive positioning from market contextWeb search for market context, user expectations
moderatorSynthesizes all 4 reports into a verdictReceives reports via SendMessage, writes report

Agent prompt template for debaters:

You are [ROLE] in an adversarial debate about: [TOPIC]
Scope: [SCOPE]

CONSTRAINTS:
[constraints block]

Your job: [ATTACK gaps / DEFEND readiness] with EVIDENCE.
- Read the actual code, don't guess
- Cite specific files, functions, line numbers
- Compare against [competitors / best practices]
- Be brutal -- no hedging, no "it depends"

Send your report (max 50 lines) to the moderator agent when done.
Format:
## [Your Role] Report
### Key Findings (numbered, max 10)
### Verdict: [READY / NOT READY / CONDITIONAL]
### Evidence: [file:line citations]

Moderator prompt:

You are the moderator. Wait for all 4 debate reports.

Once you have all 4, write the readiness report to:
docs/brainstorms/{TOPIC}_READINESS_REPORT.md

Report format:
# [Topic] -- Readiness Report
> Generated: [date] | Debate agents: 4 | Moderator synthesis

## Verdict: [READY / NOT READY / CONDITIONAL]
[2-3 sentence summary]

## Consensus Points (both sides agree)
- [point]

## Contested Points (sides disagree)
| Point | Critics Say | Defenders Say | Moderator Assessment |
|-------|------------|---------------|---------------------|

## Critical Issues (must fix before launch)
1. [issue] -- [evidence] -- [severity]

## Improvement Opportunities (nice to have)
1. [opportunity] -- [effort estimate]

## Raw Reports
[Append all 4 reports for reference]

Phase 2: Handoff (Main)

Once the moderator writes the report:

  1. Read the verdict line only (1 line, not the full report)
  2. Report to user:
    Debate complete. Verdict: [VERDICT]
    Report: docs/brainstorms/{TOPIC}_READINESS_REPORT.md
    
    To act on findings: /plan-features --doc docs/brainstorms/{TOPIC}_READINESS_REPORT.md
  3. Clean up the team

That's it. Debate produces a report. Planning and execution are separate skills.

Main Context Discipline

  • Phase 0: Conversation only. No tools except memory check.
  • Phase 1: Only Agent/TeamCreate/SendMessage. Main does NOT read code, grep, or search.
  • Phase 2: Read one line from the report (the verdict). Summarize to user.

Main's total context growth: ~30 lines. The entire debate happens outside main's context.

Anti-Patterns

  1. Main reading the full report. The report can be 200+ lines. Main reads the verdict line, tells the user where the file is. The user or /plan-features reads the rest.
  2. Debaters being polite. The whole point is adversarial tension. Critics should be harsh. Defenders should push back hard. Moderate positions produce useless reports.
  3. Skipping Phase 0. Without constraints, agents will recommend prohibited libraries, impossible timelines, or solutions that violate business rules.
  4. Bundling planning/execution. This skill produces a REPORT. If you want to act on it, run /plan-features. Separation keeps each skill focused and composable.
  5. Moderator taking sides. The moderator synthesizes, doesn't advocate. If critics found 8 issues and defenders addressed 3, the moderator says "5 unresolved issues remain" -- not "defenders made a strong case."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.