devils-advocate

devils-advocate is a skill for Claude Code, Codex from griffinwork40/agent-afk. It costs 165 tokens per session (2,446 once invoked), scanned A, original, Apache-2.0.

A structured way to challenge a proposed plan or solution by asking several independent critics to suggest alternatives. The critics examine the cheapest option, the safest option, and whether the proposal is at the right level.

In plain words
What is it for?
Use it to review implementation plans, fixes, architecture choices, scope decisions, or recommendations before editing files or committing changes.
Why use it?
A proposal can seem convincing because its original reasoning is persuasive or incomplete. Independent alternatives reveal over-engineering, hidden risks, and simpler approaches before work begins.

Skill for Claude CodeCodex

Part of the awa-bundled plugin — 18 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/griffinwork40/agent-afk/devils-advocate
Any agent
npx skills add griffinwork40/agent-afk --skill devils-advocate
Clone the repo
git clone --depth 1 https://github.com/griffinwork40/agent-afk

Made for: Claude Code, Codex.

Or install awa-bundled, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for devils-advocate

README.md
[![agentmods](https://agentmods.dev/badge/skills/griffinwork40/agent-afk/devils-advocate.svg)](https://agentmods.dev/skills/griffinwork40/agent-afk/devils-advocate)
Your own site
<a href="https://agentmods.dev/skills/griffinwork40/agent-afk/devils-advocate"><img src="https://agentmods.dev/badge/skills/griffinwork40/agent-afk/devils-advocate.svg" alt="Measured on agentmods" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00165 $0.02446
Opus 5 $0.00082 $0.01223
Sonnet 5 $0.00033 $0.00489
Haiku 4.5 $0.00016 $0.00245

Measured 5d ago against content hash ae6f17e553e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

devils-advocate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

src/bundled-plugins/awa-bundled/skills/devils-advocate/SKILL.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sub-agent contract

/contract

When a proposal — a plan, fix, decomposition, scoping, or named recommendation — will drive user decisions, file edits, or commits, do NOT act on it as-given. Run a devils-advocate critique wave before acting, and use the recommendation as input to the decision.

Wave 2 — Parallel critics (3 fixed lenses + 1 conditional, independent):

  1. Extract the proposal (the approach being critiqued) and the goal (what the proposal is trying to accomplish). Both should be plain prose. Do NOT include the original proposer's reasoning or evidence — critics must invent alternatives without anchoring on the chosen path.
  2. Dispatch 3 critics in parallel. Default subagent_type: "research-agent" (mechanically locked to Read/Grep/Glob/WebFetch/WebSearch — cannot Edit/Write/commit). Each critic receives ONLY the proposal + goal + ONE lens:
    • pragmatist — cheapest-path. "What is the cheapest approach that solves the goal? Argue why the proposal may be over-engineered."
    • paranoid — safest-path. "What could go wrong with the proposal? Propose a safer alternative with narrower blast radius."
    • architect — right-level. "Is the proposal addressing the right abstraction level? Propose an alternative one level up (systemic fix) or down (targeted fix)."
  3. Each critic returns {lens, alternative, tradeoff, strength} where strength ∈ {weak, medium, strong} reflects the critic's confidence that its alternative beats the original.
  4. Conditional 4th critic — steelman. Fires only when the proposal is externally-authored: an inherited plan, someone else's PR, an external review, or third-party text the user pasted in. It does not fire on a proposal the agent authored itself this session — there the proposer's reasoning is already in main context and strengthening is a no-op that taxes the hottest call path. When it fires, dispatch it in the same parallel wave as the other three (never before them), on the same research-agent base, receiving ONLY the proposal + goal + the steelman lens — the closed input set of step 2 is unchanged, and no critic ever sees another critic's output.
    • steelman — strongest-version. "Restate this proposal as its strongest defensible version. Fill in assumptions its author left implicit, supply the evidence that would best support it, and drop claims too weak to defend. Do not critique it and do not propose an alternative."
  5. The steelman returns {strengthened_original, gaps_filled, weak_claims_dropped} — deliberately not the {lens, alternative, tradeoff, strength} shape. It is an annotation on the original, never a competing option, so it does not enter the ranking as a 5th candidate and does not carry a strength score.

Invariant (why steelman sits inside Wave 2, not before it): a steelman is by construction the proposer's reasoning and evidence, reconstructed and amplified — the single most anchoring artifact obtainable. Routing it upstream of the other critics would hand them a hardened target and violate step 1's prohibition, converting invention into rebuttal. Keeping it a peer in the parallel wave preserves critic independence, which is what makes convergence (Wave 3.5) and dissent (Wave 3) informative at all. Never promote it to a pre-wave.

Wave 3 — Synthesis (sequential, single agent):

  1. Dispatch one synthesis agent (same research-agent base). Input: original proposal + goal + all 3 critic outputs, plus the steelman annotation when Wave 2 produced one.
  2. Rank all 4 options (original + 3 alternatives) along: cost (implementation + ongoing), risk (blast radius + reversibility), scope-fit (how cleanly it solves the stated goal, no more), goal-fit (how well it addresses the underlying intent, not just the surface goal). When a steelman annotation is present, score the original at its strengthened form — the point is to beat the proposal at its best, not to win against a version its author would disown. The candidate count stays 4: the annotation upgrades how original is judged, it does not add an option.
  3. Recommend ONE top choice with a one-paragraph rationale.
  4. Flag dissent = true when ≥2 critics returned strong alternatives disagreeing with the recommendation — signals the synthesizer is overruling well-argued dissent, so confidence is low. Include a dissent_note summarizing the strongest counter-argument.

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 68 lines · 165 tokens per session scan A ae6f17e553e8

Subscribe to this mod's changes

devils-advocate is a skill published in the GitHub repository griffinwork40/agent-afk (54 stars, last pushed today), licensed Apache-2.0. It adds 165 tokens to every session and 2,446 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ian-xiaohei-illustrations

生成 Ian 风格的中文正文配图。用于用户要求为中文文章、帖子、博客、Notion 文档、工作流文档、方法论、流程、结构、状态、隐喻或观点生成“怪诞”“小黑”“手绘”“正文配图”“文章插图”“配图建议”“shot list”“去标题/改图”等任务;默认使用小黑 IP、纯白手绘、少量红橙蓝批注、简洁清爽但天马行空的视觉风格。.

chaitanyagiri/munder-difflin · 122 tokens

capabilities

Your capability catalog — read this at boot. Lists the temporal date-range skills and the external integrations (reached via the loopback broker) available to you as a spawned worker, and exactly how to call each. Read-only. Consult it whenever you're unsure what tools/integrations you have or how to invoke them.

chaitanyagiri/munder-difflin · 69 tokens

temporal

Resolve ANY named time window — today, yesterday, thisWeek, lastWeek, last7Days, last30Days, last90Days, thisMonth, lastMonth, thisQuarter, lastQuarter, thisYear, lastYear, last12Months — or an arbitrary range (lastNdays / lastNweeks / lastNmonths) to a concrete ISO date range relative to your run time. Read-only: no…

chaitanyagiri/munder-difflin · 114 tokens

last30Days

Resolve "last30Days" to a concrete ISO date range relative to your run time — a rolling 30-day window ending today. Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a "last 30 days" / trailing-month task…

chaitanyagiri/munder-difflin · 83 tokens

md-audit

Read-only code quality audit — scan the current working directory for common issues (bugs, dead code, security hotspots, missing error handling) and return a prioritised findings report. No files are edited. Use when asked to "audit the code", "quick audit", "find issues", "code scan", or "what's wrong with this…

chaitanyagiri/munder-difflin · 85 tokens

thisQuarter

Resolve "thisQuarter" to a concrete ISO date range relative to your run time — this quarter so far (quarter start → today). Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a quarter-to-date task (QTD…

chaitanyagiri/munder-difflin · 78 tokens