devils-advocate
Skill2 starsChanged 5 months agoMITView on GitHub
Get an outside-Anthropic second opinion on any piece of work by sending it to Google Gemini with an adversarial critique prompt. Use when the user wants to pressure-test a decision, plan, assumption, blog draft, landing page, positioning statement, campaign, or chunk of code with a non-Claude model. Trigger when the user says 'devil's advocate,' 'play devil's advocate,' 'poke holes,' 'stress test this,' 'second opinion,' 'outside perspective,' 'non-Anthropic read,' 'sanity check from another model,' 'challenge this,' 'critique this from outside,' or '/devils-advocate.' This is explicitly a cross-model sanity check — do NOT substitute your own critique; the whole point is to surface blind spots Claude might share.
- Reads credentials
30 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- t0ddharris/compound-marketingedited, first seen Oct 5, 2026
- gilsmt/skillstheir own version, first seen Oct 4, 2026
- jonhill90/skillstheir own version, first seen Sep 30, 2026
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Sep 27, 2026
- cofin/flowtheir own version, first seen Sep 26, 2026
- lunartec/lunar-skillstheir own version, first seen Sep 22, 2026
Used with
Projects with it also use validate-bib, review-r and 10 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.
luischanciSkillvalidate-bib
Validate bibliography entries against citations in all manuscript files. Find missing entries and unused references.
Also in 4 projects that use this
luischanciSkillreview-r
Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.
Also in 3 projects that use this
shanggqmSkilldata-analysis
数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。
Also in 3 projects that use this
genomewalkerSkillcheckpoint
Save a checkpoint of task status, decisions, active files, and next steps
Also in 3 projects that use this
VercelSkilldeploy
Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".
Also in 3 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 4 projects that use this
- +5 more from luischanci
Other versions30 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- t0ddharris/compound-marketing★ 175% same
Wrote their own version · 29
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- OneWave-AI/claude-skills★ 321same name
- Cold-IQ/ColdIQ-s-GTM-Skills★ 293same name
- maxwell2732/paper-replicate-agent-demo★ 136same name
- maxwell2732/my-submission-formatting-agent★ 111same name
- notmanas/claude-code-skills★ 94same name
- jpcaparas/skills★ 54same name
- gsarig/skills★ 27same name
- codebygarv/Ai-skills★ 26same name
- dungnotnull/hybrid-harness-chaos-process-prm★ 19same name
19 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 repository10 other files it gives its agents.
- briefSkill
- devils-advocateSkill
- reflectSkill
- skill-auditSkill
- startSkill
- briefSkill
- reflectSkill
- skill-auditSkill
- startSkill
- sync-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 13 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Never substitute your own critique for this tool: If you find yourself about to write "here's what I think the weak points are" without …
- Distinctive: line 17
Use it when the user explicitly asks for a second opinion, a devil's advocate read, or to poke holes in something.
- Distinctive: line 24
Do NOT reach for this skill for quick copy edits, tactical wordsmithing, or requests the user clearly wants done inside Claude.
- Distinctive: line 33
If the key is missing, the script will exit with a clear error and a link to create one.
- Distinctive: line 83
Add a positioning/messaging file for any marketing or comms content — it keeps the critic inside your actual audience and message pillars.
- Distinctive: line 84
Add a source-of-truth / product-facts file when the work makes product claims, so the critic can flag invented facts.
- Distinctive: line 85
Add a voice/tone or audience-language file when voice is part of the critique.
- Distinctive: line 87
Don't dump every context file you have.
- Very specific: line 98
Default location for saved critiques: reviews/<target-name>-devils-advocate.md.
- Very specific: line 102
Default is gemini-3.1-pro-preview.
- Distinctive: line 146
Do not silently accept every point the critic makes.
- Distinctive: line 148
Read the critique end to end: Don't skim.
- Distinctive: line 150
Ask the user which ones they want to act on: before editing. Some critiques come from a model that doesn't know the project as deeply as …
- Distinctive: line 151
When the user says go, make the specific changes: Don't rewrite from scratch unless the critique says REWORK and the user agrees.
- Distinctive: line 153
If the critic returns SHIP, that's a useful signal — but still read the weaknesses section.
- Very specific: line 197
Critique that doesn't know the project: Add your positioning and source-of-truth files to --context-files and re-run.
“Common” is measured: kept by at least 6 in 10 of the 25 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
Devil's Advocate
Get a critique from an outside model (Google Gemini 3.1 Pro by default) to pressure-test work before it ships. The whole reason this skill exists is that Claude and the user may share the same blind spots after working on a piece of content together. Sending the work to a model in a different lineage surfaces weaknesses that neither of you will catch alone.
Never substitute your own critique for this tool. If you find yourself about to write "here's what I think the weak points are" without running the script, stop — you are defeating the entire purpose of the skill.
When to use this skill
Use it when the user explicitly asks for a second opinion, a devil's advocate read, or to poke holes in something. Also proactively suggest it when:
- The user is about to ship high-stakes work (a public launch plan, executive-level messaging, a pricing decision, a bet-the-quarter initiative).
- You and the user have been iterating for a while and the work feels "done" — fresh eyes matter most when confirmation bias is strongest.
- The user is weighing a decision with several defensible answers (a strategy shift, a channel bet, an org change).
- A plan makes a claim that would be expensive to get wrong (projected revenue, headcount, conversion lift).
Do NOT reach for this skill for quick copy edits, tactical wordsmithing, or requests the user clearly wants done inside Claude. This is a heavier tool meant for moments where an outside critique has real value.
Prerequisites
GOOGLE_AI_STUDIO_API_KEYmust be available as an environment variable or in a.envfile at your project root.- The script uses only the Python standard library. No installs required.
If the key is missing, the script will exit with a clear error and a link to create one.
How to run it
The script lives at .claude/skills/devils-advocate/scripts/challenge.py (relative to your project root, once the skill is installed in .claude/skills/).
1. Critique files
Most common case. Pass one or more files you want challenged:
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--files docs/plan.mdMultiple files are fine — the critic reads them together and judges them as one body of work:
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--files landing/hero.html landing/proof.html2. Critique an inline statement, decision, or assumption
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--statement "We should move our posting cadence from 3x/week to daily because engagement rose 18% in Q1."3. Critique content piped in
cat draft.md | python3 .claude/skills/devils-advocate/scripts/challenge.py --stdin4. Give the critic supporting context
This is where the skill gets sharp. The critic produces much better work when it knows the positioning, the audience, and the brief. Pass the relevant context files so the critique is judged against your actual strategy and audience:
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--files docs/newsletter-plan.md \
--context-files context/positioning.md context/audience.md \
--note "Audience: technical practitioners at mid-to-large companies. Goal: newsletter signups as top-of-funnel. Cadence: monthly."Rules of thumb for --context-files:
- Add a positioning/messaging file for any marketing or comms content — it keeps the critic inside your actual audience and message pillars.
- Add a source-of-truth / product-facts file when the work makes product claims, so the critic can flag invented facts.
- Add a voice/tone or audience-language file when voice is part of the critique.
- For plans, also add the matching strategy file if the target work should tie into it.
- Don't dump every context file you have. Pick the ones that actually apply.
5. Save the critique to a file
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--files docs/newsletter-plan.md \
--context-files context/positioning.md \
--out reviews/newsletter-plan-devils-advocate.mdDefault location for saved critiques: reviews/<target-name>-devils-advocate.md.
6. Override the model
Default is gemini-3.1-pro-preview. Other text-capable models on the same key include gemini-3-pro-preview, gemini-2.5-pro, gemini-pro-latest. Use a different model only if the user asks, or if the default times out / fails.
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--files plan.md --model gemini-2.5-proPicking the target type
The script auto-detects a target-type hint from the file extensions and paths, but you can set it explicitly with --target-type:
| Value | When to use |
content | Blog posts, landing pages, emails, social posts, case studies, datasheets |
code | Email HTML templates, HTML/CSS/JS, scripts |
plan | Strategy docs, campaign plans, roadmaps, launch plans |
assumption | A belief the team is acting on ("channel X is our best channel") |
decision | A choice the team is about to make ("We should kill the free tier") |
statement | A one-line claim, hypothesis, or framing |
Set this explicitly when the default guess would be wrong. For example, if you pass an .html file that you want judged as rendered content (not code), pass --target-type content.
What the output looks like
The critic always returns Markdown with these sections, in order:
- Steelman — the strongest honest case FOR the work.
- What the work is actually claiming — a literal restatement, to prevent strawmanning.
- Specific weaknesses — numbered list with Location, Problem, Why it matters, Fix or test.
- Counter-evidence and missing evidence — what would weaken the argument, what should be cited.
- Alternative framings — one or two different angles, with tradeoffs.
- Risks and failure modes — realistic ways it backfires, ranked.
- Bottom line — one of SHIP, SHIP WITH FIXES, REWORK, KILL, plus one sentence of reasoning.
The top of the file is a comment tag identifying which model produced the critique and what target type was assumed, so reviews stay traceable.
After you get a critique
Do not silently accept every point the critic makes. It is an outside voice, not an oracle. Your job after running it is:
- Read the critique end to end. Don't skim.
- Flag which specific items you agree with, disagree with, and want the user to decide. Being concrete is the whole value — "the Q1 engagement lift isn't enough evidence for a 3x cadence change" is useful; "it raises good points" is useless.
- Ask the user which ones they want to act on before editing. Some critiques come from a model that doesn't know the project as deeply as you do; others expose real problems you missed.
- When the user says go, make the specific changes. Don't rewrite from scratch unless the critique says REWORK and the user agrees.
If the critic returns SHIP, that's a useful signal — but still read the weaknesses section. Good critiques say SHIP with caveats; bad critiques either rubber-stamp or gratuitously complain. Treat suspicious uniformity (all SHIP, all KILL) as a signal to re-run with different context.
Example invocations
A blog draft:
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--files blog/2026-04-monitoring-is-dead.md \
--context-files context/positioning.md context/audience.md \
--note "Author: executive voice. Goal: drive inbound demo requests from technical buyers."A positioning statement (inline):
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--statement "We are the only platform that detects the problem in real time without instrumenting the target system." \
--context-files context/positioning.md context/truth.md \
--target-type statementAn email HTML template:
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--files templates/newsletter-email.html \
--target-type code \
--note "Must render in Outlook 2019, dark mode iOS Mail, and Gmail web."A campaign plan with full context:
python3 .claude/skills/devils-advocate/scripts/challenge.py \
--files docs/pipeline-growth-strategy.md \
--context-files context/positioning.md context/customer-journey.md \
--out reviews/pipeline-growth-strategy-devils-advocate.mdFailure modes to watch for
- API timeout or 5xx. Retry once. If it keeps failing, try
--model gemini-2.5-proas a fallback. - Critique that reads like a rewrite request. The critic sometimes slips into copy-editing mode. Re-run with
--note "do NOT rewrite prose; challenge logic, evidence, and risk only." - Critique that doesn't know the project. Add your positioning and source-of-truth files to
--context-filesand re-run. - Critique that contradicts something in your source-of-truth files. Trust your own verified facts; flag the disagreement to the user rather than editing to match the critic.
Learnings
<!-- Updated by /reflect. Promote stable patterns to the main skill body. -->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.

