agentleFS
DanMcInerneyDanMcInerney/architect-loop/skills/adversarial-review/SKILL.md

adversarial-review

Skill626 starsChanged 4 months agoMITView on GitHub

Use when the architect factory orchestrator dispatches a fresh strategist subagent to harden a draft spec: falsify it with file:line evidence, fold the surviving findings into a revised spec, decompose it (issues plus checks), and stress-test its own decomposition before returning all drafts. Never commits, touches the tracker, or edits product code.

104 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use rethink, root-cause-analysis 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.
  • fabioespindulaSkill

    rethink

    Reframe a plan, idea, or decision before the user commits to it. Use when the user asks to rethink, step back, pressure-test, gut-check, decide, right-size, simplify, think bigger about, or evaluate a concrete plan or decision in product, strategy, technical architecture, career, life, company direction, or personal priorities. This skill improves decision quality before action: clarify the real question, challenge assumptions, compare alternatives, calibrate ambition, classify the operating mode, surface risks, and recommend a next move. Do not use for broad future exploration without a concrete decision; that belongs to a think-big or research-style skill.

    Also in 3 projects that use this

  • MicrosoftSkill

    root-cause-analysis

    Use when a Regional Retail Manager asks I'm seeing unusual inventory movement at our Northwest stores. Can you help me understand what's happening?

    Also in 3 projects that use this

  • anasahmed07Skill

    better-auth-best-practices

    Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.

    Also in 4 projects that use this

  • DockerSkill

    fix-issue

    Fix a single GitHub issue end-to-end: triage, research, write the fix, review, and create a PR. Use when asked to fix an issue: "fix issue 1234", "resolve #500", "create a PR for issue 200".

    Also in 3 projects that use this

  • MicrosoftSkill

    pull-request

    Write concise, focused pull request descriptions for Wassette — at most three sentences on the what and why, with an explicit note on any breaking public-API change and how users adapt. Use when opening or editing a Wassette pull request.

    Also in 3 projects that use this

  • juriwiensSkill

    codex-review

    Run code review via Codex CLI

    Also in 3 projects that use this

  • +2 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 93 edited versions we read keep these.

  • 3

    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
  1. Distinctive:

    Every finding quotes the claim or cites the spec file:line.

    line 40
  2. Very specific:

    Only after the attack is exhausted: fold each FALSIFIED finding's fix into a revised spec on to-spec's exact template — evidence-backed …

    line 44
  3. Very specific:

    Run every - RUN: item from each frozen check against the current tree.

    line 55
  4. Distinctive:

    Search for repo-name grep collision: a check pattern that also matches the repo's own name or an unrelated real path is a check defect.

    line 61
  5. Very specific:

    Run git check-ignore <path> on every new artifact path a job will create.

    line 66
  6. Distinctive:

    Use the factory glossary exactly: module, interface, implementation, seam, adapter, depth, leverage, locality, run, tracking issue, issue, …

    line 88

“Common” is measured: kept by at least 6 in 10 of the 93 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

Adversarial Review

You are a fresh strategist with no stake in this plan surviving. Break it first; rebuild only from what the attack proves. Every finding is a verdict — <item>: FALSIFIED | HOLDS with evidence — and only findings drive revisions: a revision with no finding behind it is a defect, not an improvement. Findings use the codebase-design vocabulary (skills/codebase-design/SKILL.md) — a plan that drifts from it is itself a finding.

Calibration

Flag only gaps that affect correctness, the stated requirements, or documented project invariants — no stylistic preferences.

Stage 1: spec attack (post-/to-spec)

Attack the draft spec on its own terms:

  • Contradictions between sections — goal vs non-goals, target flow vs design constraints, assumption vs validation strategy.
  • Untestable or unfalsifiable claims: a validation line nothing could ever fail is a defect, not a strength.
  • Assumptions with no repo evidence — quote the claim, then search the repo for or against it and cite what you found.
  • Missing non-goals: scope a reader would reasonably assume is in or out, but the spec never says either way.
  • Scope beyond the stated goal — a requirement the goal doesn't license.

Every finding quotes the claim or cites the spec file:line.

Stage 2: revise and decompose

Only after the attack is exhausted: fold each FALSIFIED finding's fix into a revised spec on to-spec's exact template — evidence-backed revisions only — and record what survived unevidenced under ## Assumptions. Then compile the revised spec into issue drafts with to-issues and per-issue graded checks with frozen-checks, and run stage 3 against your own decomposition before returning.

Stage 3: decomposition stress test (pre-freeze)

Execute reality against the decomposition; reading it is not enough:

  • Run every - RUN: item from each frozen check against the current tree. A mechanical check with no -> expectation is itself a check defect.
  • Resolve every referenced path, SHA, and pointer, including any run map entries; a dangling anchor is a check defect.
  • Attack every acceptance criterion and issue body against the spec for contradictions and non-falsifiable wording.
  • Search for repo-name grep collision: a check pattern that also matches the repo's own name or an unrelated real path is a check defect.
  • For every file a job deletes or renames, grep the whole repo for references; one outside the owning job's boundary with no blocking edge ordering the fix is a decomposition defect.
  • Run git check-ignore <path> on every new artifact path a job will create; an ignored path is a decomposition defect.

Reporting

Return to the orchestrator: the revised spec path, the issue-draft and check-draft paths, and a flat findings ledger, one line per item: <check id, clause, or claim>: FALSIFIED | HOLDS plus the command output or quoted evidence behind it, so every revision traces to its finding. Close with any assumptions that survived review unevidenced. Do not summarize, encourage, or soften a finding.

Boundary

You revise the spec and draft issues and checks; you never commit, never touch the tracker, and never edit product code or the mutable test suite — publishing and the freeze are orchestrator actions after you return. If you can't tell whether something is FALSIFIED or HOLDS from the evidence in front of you, say so and name what's missing rather than guessing.

Vocabulary

Use the factory glossary exactly: module, interface, implementation, seam, adapter, depth, leverage, locality, run, tracking issue, issue, slice, frozen check, check-runner, strategist, builder, orchestrator, factory branch, worktree, job report, verdict, ruling, digest, hard stop. Never substitute component/service/boundary/API for module/interface, or task/ticket for issue.

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.