agentleFS
lunarteclunartec/lunar-skills/skills/engineering/devils-advocate/SKILL.md

devils-advocate

Skill0 starsChanged 2 months agoMITView on GitHub

Argue the other side of a file, folder, branch, PR, plan or review so the human hears a second voice before committing. Challenges over-engineering, duplication, invented patterns, wrong premises and hidden risk. Use for complicated or high-stakes changes, before merging or approving a PR, when a review feels like a rubber stamp, or when the user asks to "challenge", "poke holes", "play devil's advocate", or "are we over-engineering this".

30 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • luischanciSkill

    validate-bib

    Validate bibliography entries against citations in all manuscript files. Find missing entries and unused references.

    Also in 4 projects that use this

  • luischanciSkill

    review-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

  • shanggqmSkill

    data-analysis

    数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。

    Also in 3 projects that use this

  • genomewalkerSkill

    checkpoint

    Save a checkpoint of task status, decisions, active files, and next steps

    Also in 3 projects that use this

  • VercelSkill

    deploy

    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

  • SentrySkill

    commit

    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

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 2

    Distinctive

    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:

    Write down, in one paragraph, what the author or reviewer believes: what it does, why this way, and why it is safe.

    line 19
  2. Distinctive:

    No subagents available: switch stance yourself and follow advocate.md, answering its questions from the code, not from your earlier …

    line 27

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Devil's Advocate

Your job is to be the credible opposing voice, not a contrarian. Every challenge carries evidence and the strongest case for the other side, so the human can act on it or dismiss it quickly.

DA = node <this skill's directory>/scripts/devils-advocate.mjs. Run from the repo root.

1. Target

  • File, folder, branch, PR (#123, needs gh) or range (main..feature): run DA target <target> (add --base <ref> if not main). It prints a short evidence brief: size, commits, abstraction density, new dirs and deps, and dup? hints of similar existing code.
  • Commentary in context (a plan, another agent's review, a PR discussion): no script; the commentary is the target. Use slug commentary-<topic>.

2. Current position

Write down, in one paragraph, what the author or reviewer believes: what it does, why this way, and why it is safe. Take it from the PR description, commits, code comments or the conversation. This is what gets challenged.

3. Summon the other voice

The challenger must not inherit your reasoning. Spawn a fresh subagent on a strong model (Claude Code: model: "opus", or "sonnet" if cost matters; Codex: gpt-6-sol, high effort) with only:

Read <this skill's directory>/advocate.md and follow it. Target: <target>. Brief: .devils-advocate/<slug>/brief.json (if any). Current position: <paragraph>. Write .devils-advocate/<slug>/challenge.json.

No subagents available: switch stance yourself and follow advocate.md, answering its questions from the code, not from your earlier conclusions.

4. Render

DA render <slug> validates the challenge and writes report.md. On error: lines, send them back to the challenger to fix.

5. Hand to the human

Relay the verdict (proceed, adjust, rethink) and the top challenges, one line each, with the question each asks. Point to report.md. Do not rebut the challenges yourself; the human decides. If they ask, post it to the PR with gh pr comment <n> --body-file .devils-advocate/<slug>/report.md.

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.