debate
Skill148 starsChanged 4 months agoMITView on GitHub
LLMs propose and critique approaches, agent moderates the debate and synthesizes the best solution, then implements.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- Lu1sDV/skillsmdtheir own version, first seen Nov 4, 2026
- yoshibtc/multi-model-debate-skilltheir own version, first seen Oct 15, 2026
- phant0um/claude-skillstheir own version, first seen Oct 15, 2026
- helderberto/agent-skillstheir own version, first seen Oct 13, 2026
- rahulrajaram/rahulskillstheir own version, first seen Oct 13, 2026
- agent-sh/debatetheir own version, first seen Oct 13, 2026
Used with
Projects with it also use handoff, commit and 2 more.
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.
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 5 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
GoogleSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 3 projects that use this
SentrySkillskill-creator
Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- wolverin0/claude-skills★ 41same name
- helderberto/agent-skills★ 19same name
- ggombee/code-forge★ 18same name
- STRML/cc-debate★ 10same name
- bordenet/superpowers-plus★ 8same name
- Magnus-Gille/claude-skills★ 5same name
- agent-sh/debate★ 4same name
- HartreeWorks/research-skills★ 4same name
- ryancproduct/product-ai-toolkit★ 4same name
- Yafan-Yang/ai-trading★ 4same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- collabSkill
- collab-vsSkill
- consult-llmSkill
- consultSkill
- debate-vsSkill
- implementSkill
- panelSkill
- phased-implementSkill
- review-panelSkill
- reviewSkill
- workshopSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 19 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
19
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Check the arguments for flags:
- Distinctive: line 41
Explore the codebase: - use Glob, Grep, Read to understand:
- Distinctive: line 48
Do not stop at the first plausible file, definition, setting, or example.
- Distinctive: line 51
If the task depends on an external product, CLI, API, protocol, file format, or ecosystem convention, verify the relevant behavior using …
- Distinctive: line 53
Do not create a separate research artifact unless the evidence materially changes the plan.
- Distinctive: line 55
Make evidence-backed assumptions: - do NOT ask clarifying questions
- Distinctive: line 56
Use best judgment based on codebase and external context
- Distinctive: line 57
Prefer simpler solutions when ambiguous
- Distinctive: line 58
Follow existing patterns in the codebase
- Distinctive: line 60
Prepare context summary: - create a brief summary of:
- Distinctive: line 146
Prefer simpler solutions when arguments are equally strong
- Distinctive: line 190
Exact file paths: - never "somewhere in src/"
- Distinctive: line 193
DRY, YAGNI: - only what's needed
- Distinctive: line 204
Commit after each logical unit: - keep commits small and focused
- Distinctive: line 211
Test changes when possible
- Distinctive: line 212
Keep commits atomic and well-documented
- Distinctive: line 213
Use commit messages that explain the "why"
- Distinctive: line 234
Apply fixes: if multiple reviewers identify the same issue, or if one raises a clearly valid concern:
- Distinctive: line 236
Commit each fix separately with clear messages
“Common” is measured: kept by at least 6 in 10 of the 19 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.
Files
Have multiple LLMs debate the best approach, then synthesize and implement.
Load the consult-llm skill before proceeding — it defines the invocation contract (stdin heredoc, flags, output format, multi-turn). Do not call the CLI without loading it first.
Available models
Selectors resolvable in this environment (depends on configured API keys):
!`consult-llm models`Phase 0: Load consult-llm Skill
Load it now. Follow its invocation contract for all CLI calls in this workflow.
Configuration
Arguments: $ARGUMENTS
Check the arguments for flags:
Model flags: any --<selector> from the Models block above selects a debater (e.g. --gemini, --openai, --deepseek). Repeat for multiple. Need at least two debaters. Translate model flags and defaults according to the loaded consult-llm skill's model-selection rules.
Mode flags:
--dry-run→ debate and plan only, skip implementation--skip-final→ skip the final review phase--rounds N→ number of debate rounds (default: 2, max: 3)
Strip all flags from arguments to get the task description.
Throughout this skill, references to "each LLM"/"each debater" mean every selected model. Use the selector name (gemini, openai, etc.) as the label when presenting per-model output.
Phase 1: Understand the Task (No Questions)
Explore the codebase - use Glob, Grep, Read to understand:
- Relevant files and their structure
- Existing patterns and conventions
- Dependencies and interfaces
Before planning or consulting, do enough research to understand how the requested behavior actually works. Before starting, think about what resources would be useful to obtain first: relevant source files, tests, logs, generated files, config, examples, command output, external docs, or authoritative upstream source. Gather the cheapest useful evidence before forming a plan.
Do not stop at the first plausible file, definition, setting, or example. Follow references, callers, related tests, and runtime usage until you can explain the current behavior and the likely impact of changing it.
- Ground external semantics before planning - understand the requested behavior in the real system, not just this repo
- If the task depends on an external product, CLI, API, protocol, file format, or ecosystem convention, verify the relevant behavior using the cheapest authoritative evidence available: local binaries/flags, generated files, official docs, public source, package/library code, or web search.
- Capture only decision-relevant facts that affect scope, acceptance criteria, compatibility, or implementation constraints.
- Do not create a separate research artifact unless the evidence materially changes the plan.
- Make evidence-backed assumptions - do NOT ask clarifying questions
- Use best judgment based on codebase and external context
- Prefer simpler solutions when ambiguous
- Follow existing patterns in the codebase
- Prepare context summary - create a brief summary of:
- The task to be implemented
- Relevant files discovered
- Key patterns and conventions in the codebase
- Any constraints or considerations
Phase 2: Opening Arguments
Have both LLMs propose their approach independently (in parallel).
Opening prompt:
I need to implement the following task:
[Task description]
Here's what I found in the codebase:
[Context summary - relevant files, patterns, conventions]
Propose your implementation approach:
1. **Approach**: Describe your recommended approach in 2-3 sentences
2. **Key decisions**: List the main architectural/design decisions
3. **Files**: What files to create or modify
4. **Steps**: High-level implementation steps
5. **Trade-offs**: What are the pros and cons of this approach?
Be specific and opinionated. Defend your choices.Invoke consult-llm with -f <path> for each relevant source file, sending the opening prompt per the consult-llm invocation contract. If explicit debater flags were supplied, pass one -m <selector> per debater. Otherwise omit -m so consult-llm applies configured defaults. All models are queried in parallel in a single call.
Extract per-model thread IDs from the response — needed for Phase 3 since each model receives the others' rebuttals.
Phase 3: Debate Rounds
For each round (default 2, configurable with --rounds N, max 3):
Have each LLM critique the others' latest arguments (in parallel). Pass each LLM's thread ID via -t <id> to continue its conversation — they already have full context of the task and their own prior arguments, so you only need to send the opponents' latest responses.
Round 1 rebuttal prompt (same template for each debater; embed every other debater's opening argument, labeled by selector):
Your opponent(s) proposed these alternative approaches:
[Opponents' opening arguments, each labeled with the selector name]
Provide a rebuttal:
1. **Critique**: What are the weaknesses in each opponent's approach?
2. **Defense**: Address any weaknesses in your own approach
3. **Concessions**: Are there any good ideas worth adopting?
4. **Updated position**: State your refined recommendation
Be constructive but thorough in your critique.Subsequent round prompt (same template; embed every other debater's latest rebuttal):
Your opponent(s) have responded to your critique:
[Opponents' latest rebuttals, each labeled with the selector name]
Continue the debate:
1. **Critique**: What weaknesses remain in their updated positions?
2. **Defense**: Address any new points raised against your approach
3. **Concessions**: Any new ideas worth adopting?
4. **Updated position**: State your refined recommendation
Focus on unresolved disagreements. Don't repeat settled points.Each model receives every other model's latest response. Invoke consult-llm once with one --run per debater, continuing each model's thread.
Present both responses to the user after each round.
Phase 4: Moderator's Verdict
As the moderator, analyze the debate and synthesize the best approach:
- Score the arguments:
- Which approach is simpler?
- Which approach better fits existing patterns?
- Which critiques were valid?
- What concessions were made?
- Identify consensus: Where did all the debaters agree?
- Resolve disagreements: For each point of contention:
- Evaluate the arguments from each side
- Pick the strongest position or find a middle ground
- Prefer simpler solutions when arguments are equally strong
- Write the verdict as part of the plan:
# [Feature Name] Implementation Plan
**Goal:** [One sentence describing what this builds]
## Debate Summary
**Positions** (one bullet per debater, labeled with the selector name):
- **<selector>:** [1-2 sentence summary]
**Points of agreement:**
- [Consensus point 1]
- [Consensus point 2]
**Resolved disagreements:**
- [Issue]: <selector-A> said X, <selector-B> said Y → **Verdict:** [Your decision and why]
**Verdict:** [2-3 sentences on the final synthesized approach]
---
### Task 1: [Short description]
**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py` (lines 123-145)
**Steps:**
1. [Specific action]
2. [Specific action]
**Code:**
```language
// Include actual code, not placeholders
```
---Guidelines:
- Exact file paths - never "somewhere in src/"
- Complete code - show the actual code
- Small tasks - 2-5 minutes of work each
- DRY, YAGNI - only what's needed
Save the plan to history/plan-<feature-name>.md.
Phase 5: Implement
If --dry-run: Skip to Phase 7 (Summary) - report the debate and plan without implementing.
Implement the plan without further interaction:
- Follow the plan exactly - implement each task in order
- Commit after each logical unit - keep commits small and focused
- If something is unclear - make a reasonable decision and note it in the commit message
- If a task fails - attempt to fix it before moving on
- Only stop if there's a blocking error that cannot be resolved
Implementation rules:
- Work through tasks sequentially
- Test changes when possible
- Keep commits atomic and well-documented
- Use commit messages that explain the "why"
Phase 6: Final Review
If --skip-final: Skip to Phase 7 (Summary).
After implementation, have every debater LLM review the result (in parallel). Pass each LLM's thread ID via -t <id> to continue its conversation — they already have full context of the task and the debate, so you only need to send the review prompt and the diff.
Final review prompt:
Forget which side you argued during the debate. Review the implementation purely on its merits:
- Any obvious bugs or edge cases missed?
- Code quality issues (error handling, naming, structure)?
- Deviations from best practices?
- Security concerns?
Be concise. Only flag issues worth fixing.Invoke consult-llm --task review once with one --run per debater, passing --diff-files and --diff-base as shared context, continuing each model's thread.
Apply fixes if multiple reviewers identify the same issue, or if one raises a clearly valid concern:
- Fix bugs and edge cases
- Commit each fix separately with clear messages
Skip minor style suggestions or conflicting opinions.
Phase 7: Summary
Present a final summary to the user:
## Summary
**Implemented:** [One sentence describing what was built]
**Debate outcome:**
- One bullet per debater, labeled with the selector: `<selector>` advocated: [key position]
- Final verdict: [synthesized approach]
**Key decisions from debate:**
- [Decision 1 and why]
- [Decision 2 and why]
**Post-implementation fixes:**
- [Fix applied after final review, if any]
**Commits:**
- `abc1234` - [commit message]
- `def5678` - [commit message]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
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.

