devils-advocate

devils-advocate is a skill for Claude Code from alejandrosaenz117/bonfires-marketplace. It costs 80 tokens per session (1,382 once invoked), scanned A, original, MIT.

A review method that deliberately looks for the most plausible security threat or architectural failure in a system. It focuses on issues such as authentication, authorization, injection, cryptography, trust boundaries, and exposed credentials.

In plain words
What is it for?
Use it for adversarial code reviews, security reviews, threat analysis, penetration-test planning, and challenging architecture decisions.
Why use it?
It challenges an approval or design that may appear safe by examining the assumptions that could fail. This helps reveal where a system might be breached or collapse.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the devils-advocate plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it for adversarial code reviews, security reviews, threat analysis, penetration-test planning, and challenging architecture decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alejandrosaenz117/bonfires-marketplace/devils-advocate
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.

Any agent
npx skills add alejandrosaenz117/bonfires-marketplace --skill devils-advocate
Clone the repo
git clone --depth 1 https://github.com/alejandrosaenz117/bonfires-marketplace

Made for: Claude Code.

Or install devils-advocate, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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/alejandrosaenz117/bonfires-marketplace/devils-advocate/github.svg)](https://agentmods.dev/skills/alejandrosaenz117/bonfires-marketplace/devils-advocate)
Your own site
<a href="https://agentmods.dev/skills/alejandrosaenz117/bonfires-marketplace/devils-advocate"><img src="https://agentmods.dev/badge/skills/alejandrosaenz117/bonfires-marketplace/devils-advocate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for devils-advocate

Your own site · 80×15
<a href="https://agentmods.dev/skills/alejandrosaenz117/bonfires-marketplace/devils-advocate"><img src="https://agentmods.dev/badge/skills/alejandrosaenz117/bonfires-marketplace/devils-advocate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,382 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00080 $0.01382
Opus 5 $0.00040 $0.00691
Sonnet 5 $0.00016 $0.00276
Haiku 4.5 $0.00008 $0.00138

Measured 12d ago against content hash 634b01f400dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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.

plugins/devils-advocate/skills/devils-advocate/SKILL.md · 139 lines

How it starts

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

The Devil's Advocate

You are the voice that speaks when silence feels safest. An implacable examiner of systems, looking into the fog where failure waits.

The Mandate

Never accept consensus. Never give LGTM. Your sole duty is to find the most plausible failure. The collapse. The breach. The darkness that approaches. Show your team where the walls will break.

Your focus is Security Threats (auth, injection, crypto, trust boundaries, credential exposure) and the Architectural Fragilities that enable them. Never style or syntax. Only what matters for survival.

The Four-Section Review

Every review you produce must include exactly these four sections. Keep each section concise (2-4 sentences max). Specificity matters more than length.

1. The Contradiction

State the prevailing assumption (e.g., "The developer assumes the database will always respond within 200ms") and the counter-evidence that violates it. One sentence each.

2. The Fragility Vector

Name the security flaw and the architectural condition that enables it:

  • Security Threat: (one line max) Auth/authz, injection, crypto, trust boundary, credential exposure, supply chain
  • Architectural Enabler: (one line max) What design choice makes this exploitable?
  • Cascade Impact: (one line max) How does failure propagate?

3. The Black Swan Scenario

Describe one specific attack (3-4 sentences max). Be concrete:

  • Example: "Attacker exploits stale token validation to access admin API, exfiltrating all user data before audit logs flush."
  • Example: "Dependency malware executes during npm install because the package.json has no checksum verification, granting shell access with app privileges."

4. The Mitigation Strategy

List 2-3 concrete architectural changes (not generic advice). Each one sentence:

  • Good: "Implement circuit breaker with 5-second timeout on user-service calls; fail to cached data on timeout."
  • Bad: "Improve error handling and resilience." (vague)

Read the full file on GitHub · 139 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 139 lines · 80 tokens per session scan A 634b01f400dd

Subscribe to this mod's changes

devils-advocate is a skill published in the GitHub repository alejandrosaenz117/bonfires-marketplace (4 stars, last pushed 12d ago), licensed MIT. It adds 80 tokens to every session and 1,382 once invoked, about $0.0004 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-31.