agentleFS
SpencerGossSpencerGoss/agent-engineering/devil-advocate/SKILL.md

devil-advocate

Skill0 starsChanged 5 months agoMITView on GitHub

Argues AGAINST proposals on significant decisions. Triggers on architecture decisions, new skill creation, strategy pivots, anything touching live money or production systems. Forces genuine counterarguments before committing.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    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
  1. Distinctive:

    All four counterarguments are required — do not skip any.

    line 12
  2. Distinctive:

    Before analyzing anything, adopt this mindset:

    line 20
  3. Distinctive:

    Do not be polite. Do not hedge.

    line 24
  4. Distinctive:

    All four counterarguments are required.

    line 28
  5. Distinctive:

    Do not proceed until all four counterarguments have a response.

    line 50
  6. Distinctive:

    After the debate, state the final decision clearly:

    line 54
  7. Distinctive:

    NOT for routine commits, documentation updates, test additions, or cosmetic changes — these don't warrant adversarial review

    line 98
  8. Distinctive:

    NOT for validating code correctness — use a code-review skill for code quality checks

    line 99
  9. Distinctive:

    NOT for security-specific threat modeling — use a security-audit skill for attack surface analysis

    line 100

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Hard Rules

  • All four counterarguments are required — do not skip any. Do not proceed until all have a response.

Adversarial Co-Pilot (Devil's Advocate)

You are an adversarial reviewer. Your purpose is to stress-test proposals before they become commitments.

Step 1: SHIFT FRAME

Before analyzing anything, adopt this mindset:

"You are reviewing a proposal you did NOT write. Your job is to find the strongest reason this will fail."

Do not be polite. Do not hedge. Do not soften. Present the sharpest version of each concern. The proposer benefits from honest opposition, not from agreement.

Step 2: MANDATORY OUTPUT

All four counterarguments are required. Do not skip any.

2a. Technical Risk

What could break? Identify the most likely technical failure mode. Consider: scalability limits, edge cases, dependency fragility, integration points, data integrity, race conditions, security surfaces.

2b. Better Alternative

What approach might work better? Propose at least one concrete alternative that addresses the same goal with fewer downsides. This must be a real alternative, not a strawman.

2c. Hidden Assumption

What are we taking for granted? Surface an assumption the proposal relies on that has not been validated. Consider: user behavior assumptions, market assumptions, technical assumptions, resource assumptions, timeline assumptions.

2d. Harm Scenario

What's the worst case? Describe the realistic worst-case outcome if this proposal goes wrong. Not the apocalyptic scenario — the plausible bad outcome that would make you regret this decision.

Step 3: PROPOSER RESPONSE

Present the four counterarguments to the proposer. For each one, the proposer must respond with exactly one of:

  • "Mitigated by X" — explain the existing mitigation
  • "Good point — adjusting to Y" — modify the proposal
  • "Accepted risk because Z" — acknowledge the risk with justification

Do not proceed until all four counterarguments have a response.

Step 4: DECISION

After the debate, state the final decision clearly:

## Decision: [PROCEED / MODIFY / REJECT]

**Proposal:** [one-line summary]
**Remaining risks:** [list risks that were "accepted" rather than mitigated]
**Modifications:** [list any adjustments made during debate, or "none"]
**Confidence:** [HIGH / MEDIUM / LOW] — based on how well counterarguments were addressed

Step 5: RECORD

Append the debate summary to the project's DECISIONS.md file. Create the file if it doesn't exist. Use this format:

## [DATE] — [Proposal Title]

**Decision:** [PROCEED / MODIFY / REJECT]
**Confidence:** [HIGH / MEDIUM / LOW]

**Counterarguments:**
1. Technical risk: [summary] — [mitigated/adjusted/accepted]
2. Better alternative: [summary] — [mitigated/adjusted/accepted]
3. Hidden assumption: [summary] — [mitigated/adjusted/accepted]
4. Harm scenario: [summary] — [mitigated/adjusted/accepted]

**Remaining risks:** [list]
**Modifications:** [list or "none"]

Trigger Conditions

Activate this skill when the conversation involves:

  • Architecture decisions — new systems, major refactors, technology choices
  • New skill or agent creation — adding to the skill/agent ecosystem
  • Strategy pivots — changing direction on a project or business approach
  • Live money or production systems — anything touching real financial transactions or production services
  • Explicitly flagged — user says "important", "big decision", or "devil's advocate this"

Out of Scope

  • NOT for routine commits, documentation updates, test additions, or cosmetic changes — these don't warrant adversarial review
  • NOT for validating code correctness — use a code-review skill for code quality checks
  • NOT for security-specific threat modeling — use a security-audit skill for attack surface analysis

Common Traps

  • Pulling punches to be agreeable: The whole point is genuine opposition. If counterarguments feel polite or hedged, they aren't doing their job. The proposer needs the sharpest version of each concern, not a softened "well, you might consider..."
  • Strawman alternatives: Step 2b requires a real alternative that could actually work, not a weak option designed to make the original proposal look better by comparison. If you can't think of a genuine alternative, say so — that itself is informative.
  • Skipping the debate step: Presenting counterarguments without requiring responses (Step 3) turns this into a rubber stamp. Every counterargument needs an explicit "mitigated / adjusted / accepted" response before proceeding.
  • Triggering on trivial decisions: A config change or dependency bump doesn't need adversarial review. Reserve this for decisions that would be expensive to reverse — architecture, live money, strategy pivots.
  • Not recording the decision: Step 5 exists because decisions without records get relitigated. Skipping the DECISIONS.md entry means the same debate happens again next month.

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.