agentleFS
aws-solutionsaws-solutions/konductor/skills/adversarial-design-review/SKILL.md

adversarial-design-review

Skill11 starsChanged 50 days agoApache-2.0View on GitHub

Takes an adversarial stance against a design document''s decisions, trade-offs, and architectural choices, classifying findings as CRITICAL/IMPORTANT/MINOR. Operates on design doc sections — not code diffs. Trigger phrases: "adversarial design review", "challenge my design", "devil''s advocate on design doc", "review design decisions".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use argumentation-reference skill during this review to identify logical fallacies in decision justifications.

    line 14
  2. Very specific:

    If the user opts in, proceed to Step 3 with consent_confirmed=true.

    line 100

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 Design Review

Overview

Takes an adversarial stance against every major design decision, trade-off, and architectural choice in a design document. Unlike adversarial-code-review (which operates on code diffs), this skill operates on design doc sections.

Use argumentation-reference skill during this review to identify logical fallacies in decision justifications.

When to Use

  • k-design-doc-creation.sop.md Phase 4 (adversarial review loop)
  • k-principal-engineer-design-review.sop.md Step 3 (adversarial review loop)
  • Engineer explicitly requests adversarial review of a design doc

Core Concepts

Classification

CRITICAL — architectural:

  • Wrong architecture choice for the stated requirements (e.g., synchronous design for a stated async requirement)
  • Missing security boundary (no auth, no encryption at rest/transit where PII is involved)
  • Fundamental scalability flaw (design cannot meet stated NFRs at stated load)
  • Single point of failure with no stated mitigation

CRITICAL — factual:

  • Incorrect technical claim about a service or technology (e.g., wrong service limit, nonexistent feature)
  • Contradictory requirements (two requirements that cannot both be satisfied)

IMPORTANT:

  • Weak or missing justification for a significant decision (no alternatives considered, no trade-off)
  • Missing alternative in a decision that has obvious alternatives
  • Incomplete trade-off (dimensions missing: cost, latency, complexity, scalability, operability)
  • Logical fallacy in a decision justification (use argumentation-reference to identify)
  • Unstated assumption that materially affects the design

MINOR:

  • Style or clarity issue in a decision section
  • Minor omission (e.g., missing consequence in an ADR)
  • Weak rebuttal acknowledgment

Fallacy Checking

For each decision justification, load argumentation-reference and check:

  • Is the warrant explicit? (Does the evidence actually support the claim?)
  • Is there a false dichotomy? (Are only two options presented when more exist?)
  • Is there circular reasoning? (Does the justification restate the claim?)
  • Is there an appeal to authority without evidence?

Flag any identified fallacy as IMPORTANT with the fallacy name and the affected section.

Review Checklist

Architecture Choices

  • Each major choice has at least two alternatives considered
  • The chosen option is justified against stated requirements (not just preference)
  • Security boundaries are explicit (auth, encryption, network isolation)
  • Scalability path is stated for 10× current load

Trade-offs

  • Each decision includes a trade-off across ≥3 dimensions
  • Cost implications are addressed
  • Operational complexity is addressed

Assumptions

  • All load/traffic assumptions are stated and sourced
  • All external dependency assumptions are stated
  • Failure modes are identified for each external dependency

Logical Soundness

  • No circular reasoning in justifications
  • No false dichotomies in option selection
  • No unsupported quantitative claims

Steps

  1. Parse sections — Identify all design decision sections, ADRs, trade-off tables, and architecture choice paragraphs.
  2. Deliberation Panel Confirmation Gate — Before invoking the panel, present the cost estimate and obtain explicit user opt-in. Per the deliberation-panel skill's consent contract, the caller (this skill) is responsible for setting consent_confirmed explicitly — the panel will not infer consent on its own.

    Panel-enhanced adversarial review is available for this document: axes derived from this document's own decisions and tradeoffs each challenge every parsed decision in adversarial stance, followed by an anonymous cross-examination round and an arbiter synthesis. Cost: roughly 2–3 minutes, scaling with the number of derived axes (typically 3–6).

    1. Convene the deliberation panel (recommended for high-stakes designs)
    2. Proceed without the panel — apply the Classification and Fallacy Checking sections above directly, single-voice
    • If the user opts in, proceed to Step 3 with consent_confirmed=true.
    • If the user declines or gives no confirmation, skip the panel entirely: apply the Classification and Fallacy Checking sections (above) directly to each decision from Step 1 — evaluate each justification against the Toulmin model, flag fallacies via argumentation-reference, and classify findings directly using the Classification table (CRITICAL architectural/factual, IMPORTANT, MINOR). Then skip to Step 6 (Architecture stress test).
  3. Adversarial Panel — Axis-Derived Challenge (panel path only, per Step 2) — Invoke the deliberation-panel skill with decision_domain=design, stance=adversarial, consent_confirmed=true. Pass the parsed design decisions and tradeoffs as the subject. The panel derives 3–6 axes specific to this document's decisions (Phase 0), then runs the adversarial challenge per axis (Phase 1 — each axis argues why the currently-favored option fails on that axis), the anonymous cross-examination round (Phase 2), and the arbiter synthesis (Phase 3).

    Each axis applies the Toulmin model (claim → data → warrant); the argumentation-reference skill is available to identify fallacies in decision justifications within each axis's analysis.

  4. Anonymous Cross-Examination (panel path only) — Handled internally by the deliberation-panel skill's Phase 2. Each axis-advocate reviews every other axis's challenges for logical soundness and blind spots without knowing which axis produced each finding, and must produce a weakness-or-corroboration pair per argument reviewed.
  5. Arbiter Mapping (panel path only) — Map the panel's axis-weighted confidence output to the severity classification below.

    Confidence is the deliberation-panel skill's own Axis-Weighted Convergence output (stance=adversarial) — this skill does not define a separate scale, only reinterprets what convergence means in the adversarial stance: "the same option" that axes converge on is agreement that the currently-favored option fails. See deliberation-panel's Axis-Weighted Convergence table for the HIGH/MEDIUM/LOW thresholds themselves.

    Severity mapping (panel path only — the single-voice path classifies via the Classification table in Step 2, not this mapping):

    • HIGH-confidence architectural flaw → CRITICAL (architectural)
    • HIGH-confidence factual claim error → CRITICAL (factual)
    • MEDIUM-confidence architectural or factual flaw → IMPORTANT (not yet corroborated enough for CRITICAL, but too load-bearing to leave unclassified)
    • HIGH or MEDIUM-confidence justification gap or logical fallacy → IMPORTANT
    • LOW-confidence or stylistic observation → MINOR
  6. Architecture stress test — For the overall design:
    • Does it meet every stated NFR at stated load?
    • Are all security boundaries present?
    • Is there a single point of failure without mitigation?
  7. Output findings — For each finding:

    [SEVERITY] Section — {heading}
    Challenge: {the adversarial challenge}
    Axis/axes: {which derived axis/axes surfaced this — or "single-voice" if the panel was declined in Step 2}
    Confidence: HIGH | MEDIUM | LOW — corroboration strength, not a severity gate (single-voice: MEDIUM for a clear Toulmin warrant, LOW for a weak/speculative warrant — HIGH requires multi-axis corroboration and is unavailable when the panel is declined)
    Rebuttal needed: {what the author must address}
    Fallacy (if any): {fallacy name from argumentation-reference}
  8. Summary — Report: N CRITICAL (architectural), N CRITICAL (factual), N IMPORTANT, N MINOR. Include axis attribution for all CRITICAL findings (or note "single-voice review — panel declined" if applicable).

Quality Gate

CRITICAL findings require immediate resolution — the document does not advance to PE review with any CRITICAL finding present.

Exit condition for pe-review loop: 0 CRITICAL + 0 IMPORTANT + fewer than 3 MINOR findings.

Present findings as: CRITICAL (architectural) → CRITICAL (factual) → IMPORTANT → MINOR.

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.