vd-devils-advocate

vd-devils-advocate is a command for Claude Code from 4pixeltechBR/VibeDev. It costs 0 tokens per session (1,686 once invoked), scanned A, original, MIT.

A pre-mortem command that examines a planned software decision before it is broken into tasks. A pre-mortem asks what could go wrong before work begins.

In plain words
What is it for?
Use it inside a planning workflow to review the top risks, compare the plan with the project state, and identify one overlooked angle before proceeding.
Why use it?
It exposes major risks, contradictions, and overlooked issues early, when changing the plan is still easier.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it inside a planning workflow to review the top risks, compare the plan with the project state, and identify one overlooked angle before proceeding.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/4pixeltechbr/vibedev/vd-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.

Clone the repo
git clone --depth 1 https://github.com/4pixeltechBR/VibeDev

Made for: Claude Code.

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 vd-devils-advocate

README.md
[![agentmods](https://agentmods.dev/badge/commands/4pixeltechbr/vibedev/vd-devils-advocate/github.svg)](https://agentmods.dev/commands/4pixeltechbr/vibedev/vd-devils-advocate)
Your own site
<a href="https://agentmods.dev/commands/4pixeltechbr/vibedev/vd-devils-advocate"><img src="https://agentmods.dev/badge/commands/4pixeltechbr/vibedev/vd-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 vd-devils-advocate

Your own site · 80×15
<a href="https://agentmods.dev/commands/4pixeltechbr/vibedev/vd-devils-advocate"><img src="https://agentmods.dev/badge/commands/4pixeltechbr/vibedev/vd-devils-advocate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,686 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.00000 $0.01686
Opus 5.5 $0.00000 $0.00674
Sonnet 5.5 $0.00000 $0.00337
Haiku 4.5 $0.00000 $0.00169

Measured 1mo ago against content hash a072bd92a4b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vd-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 1mo 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.

vibedev/commands/vd-devils-advocate.md · 137 lines

How it starts

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

/vd-devils-advocate

Protocolo vigente está no SKILL.md. Este arquivo é o formato longo. Se divergir, SKILL.md vence.

Rode só numa decisão de risco (login, pagamento, dado pessoal, publicar, banco que já tem dados, apagar sem volta). Você escreve 3 riscos, 1 contradição e 1 ângulo cego. A pessoa responde "aceito" ou "para". Não bloqueie em cinco checkboxes. Decisão reversível não passa por aqui.

🇧🇷 PT-BR · 🇺🇸 EN follows

Sub-comando do /vd-plan. Roda um pré-mortem na decisão ANTES de quebrar em sub-tarefas. Força o agente (e o usuário) a enxergar o que pode dar errado.

🇧🇷 O que faz

Ativado automaticamente como gate dentro do /vd-plan (opt-out via flag --skip-devils-advocate).

Lê o estado atual (PROJECT_STATE.md + ARCH_MAP.md se existir + a decisão que vai ser tomada) e gera 3 entregas obrigatórias:

  1. Top 3 riscos da decisão (probabilidade × impacto, com explicação)
  2. 1 contradição interna que o agente detectou entre o que o usuário quer e o que o estado do projeto diz
  3. 1 ângulo cego — uma coisa que ninguém (nem o agente, nem o usuário) mencionou, mas que pode implodir o plano

O agente NÃO pode prosseguir sem que o usuário responda explicitamente a cada item (aceitar, mitigar ou descartar).

🇺🇸 What it does

Auto-activated as a gate inside /vd-plan (opt-out via --skip-devils-advocate flag).

Reads current state (PROJECT_STATE.md + ARCH_MAP.md if exists + the decision about to be made) and produces 3 mandatory outputs:

  1. Top 3 risks of the decision (probability × impact, with explanation)
  2. 1 internal contradiction the agent detected between what the user wants and what project state says
  3. 1 blind angle — something nobody (not the agent, not the user) mentioned that could implode the plan

Agent CANNOT proceed without user explicitly responding to each item (accept, mitigate, or discard).


📋 Output format (append no PROJECT_STATE.md)

## Devils Advocate — AAAA-MM-DD HH:MM
<!-- Gerado por /vd-plan como gate. Não prosseguir sem resposta do usuário. -->

### Top 3 riscos
1. **[Risco]** — prob: [baixa|média|alta] · impacto: [baixo|médio|alto] · por quê: [explicação]
2. **[Risco]** — prob: [...] · impacto: [...] · por quê: [...]
3. **[Risco]** — prob: [...] · impacto: [...] · por quê: [...]

### Contradição interna detectada
- **Tensão:** [o que o usuário disse em X vs o que PROJECT_STATE diz em Y]
- **Resolução proposta:** [sugestão do agente]

### Ângulo cego
- **[Cenário que ninguém pensou]:** [descrição curta]
- **Por que pode ser foda:** [explicação]

### Resposta do usuário
<!-- Obrigatório para /vd-plan prosseguir. -->
- [ ] Risco 1: [aceito|mitigo|descarto] — [comentário]
- [ ] Risco 2: [aceito|mitigo|descarto] — [comentário]
- [ ] Risco 3: [aceito|mitigo|descarto] — [comentário]
- [ ] Contradição: [resolução escolhida]
- [ ] Ângulo cego: [incorporo|descarto] — [comentário]

Read the full file on GitHub · 137 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. 1mo ago Changed · +5 lines a072bd92a4b8
  2. 3mo ago First seen · 132 lines · 0 tokens per session scan A c0ca82acb765

Subscribe to this mod's changes

vd-devils-advocate is a command published in the GitHub repository 4pixeltechBR/VibeDev (17 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,686 tokens. 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

vd-devils-advocate compared with commands from other repositories

vd-devils-advocate next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vd-devils-advocate4pixeltechBR/VibeDevCommand171mo agoMITA0Claude Code
plan-featureHoangNguyen0403/agent-skills-standardCommand597yesterdayMITA0Claude Code
retro-learnHoangNguyen0403/agent-skills-standardCommand597yesterdayMITA0Claude Code
versionFlorianBruniaux/claude-code-ultimate-guideCommand7.5kyesterdayCC-BY-SA-4.0A9Claude Code
diff-docsFlorianBruniaux/claude-code-ultimate-guideCommand7.5kyesterdayCC-BY-SA-4.0A15Claude Code
shipmarcusgoll/Spec-FlowCommand972mo agoMITA13Claude Code
clarifymarcusgoll/Spec-FlowCommand972mo agoMITA24Claude Code