Adversarial review

From event4u-app/agent-config · View interactive version

Adversarial review is an AI agent skill from the GitHub repository event4u-app/agent-config. Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review-lens.

How to use this skill

Skill file

Adversarial Review

When to use

Use this skill when:

Do NOT use when:

Inbound delegation: CODE0

§ Weighted-matrix mode delegates a scoped attack here after the weighted

sums ("attack the winner, using the losing options' strongest criteria")

— treat the matrix + sensitivity block as the artifact under review.

Procedure: Adversarial review

  1. Inspect the artifact — Read the plan, diff, or draft you are about to critique; note its scope, assumptions, and the explicit asks before attacking.
  2. Attack — Run Step 1 below as the grumpy senior engineer.
  3. Defend — Run Step 2 as the balanced engineer; classify each criticism as must-fix / defer / reject.
  4. Revise — Run Step 3 to fold valid fixes back in, then report every criticism with its disposition. Deciding which trade-offs matter is the user's pass, not this step's.

Step 1: Attack (Grumpy Senior Engineer)

Assume your plan/fix is flawed. Ask yourself:

Step 2: Defend (Balanced Engineer)

Counter the criticism fairly:

Step 3: Revise

Debate internally, report completely. The user sees the improved result

rather than the blow-by-blow — but every criticism raised reaches the report

with its disposition (must-fix / deferred / rejected, each with one line of

reason). Do not decide on the user's behalf which concerns were worth their

attention.

This clause used to read *"surface only the trade-offs that need the user's

input"*, and that is the pre-filter defect: an instruction to report a subset is

followed literally — the review finds the defects, then withholds the ones it

judged unimportant, and the loss is invisible because the withheld set leaves no

trace. It matters here more than anywhere: self_review_gate.ts loads this file

as the system prompt for the package's own CI self-review, so a suppression

clause here suppresses findings on every pull request.

Context-specific attack questions

Feature plans / Architecture

Bug fixes

Code changes / Refactoring

Database migrations

API design

Security-sensitive changes

Integration with other skills

RDP: fresh-context verifier as the default gate (structural)

Within the Reasoning Discipline Protocol the fresh-context verifier subagent is

the default final gate — but, because it is a full extra inference pass, it

fires only on the structural-complexity signal: ≥ 2 of {branching/conditional

logic, ≥ 3 explicit must/must-not constraints, stateful operations,

irreversibility} and estimated work ≥ ~1k tokens. Token length alone never

triggers it. See CODE0 (L12).

Validate

Output format

  1. Improved plan/code incorporating adversarial findings
  2. Every criticism raised, each with severity and disposition (must-fix /

deferred / rejected) and one line of reason. Not "top concerns" — a summary

that keeps only the highlights is the pre-filter defect wearing an

editor's hat.

  1. Remaining open risks (if any) with severity rating

Gotcha

Do NOT

References

Deliberate problem-solving by exploring multiple reasoning branches.

This skill adapts ToT by pitting a grumpy engineer against a

balanced engineer — the branching happens between roles, not

between thought-tree nodes.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.