Source profileQuality 94/100

event4u-app/agent-config/src/skills/adversarial-review/SKILL.md

adversarial-review

ONLY on a request for adversarial review, devil's advocate, stress-test, or honest critique ('poke holes', 'be brutal', 'was hältst du davon') — NOT routine code/design review.

Source repository stars
7
Declared platforms
0
Static risk flags
0
Last source update
2026-07-28
Source checked
2026-07-28

Decision brief

What it does—and where it fits

ONLY on a request for adversarial review, devil's advocate, stress-test, or honest critique ('poke holes', 'be brutal', 'was hältst du davon') — NOT routine code/design review.

Best for

  • You've completed a plan, design, or proposed fix and are about to present it.
  • The change is non-trivial (affects multiple files, changes behavior, touches critical paths).
  • You're about to recommend an architecture or design decision.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/adversarial-review"
Safe inspection promptEditorial

Inspect the Agent Skill "adversarial-review" from https://github.com/event4u-app/agent-config/blob/0adf49a8ae84b0ff6e2de8759eea43257e020eff/src/skills/adversarial-review/SKILL.md at commit 0adf49a8ae84b0ff6e2de8759eea43257e020eff. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    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 crit…

    Inspect the artifact — Read the plan, diff, or draft you are about to critique; note its scope, assumptions, and the explicit asks before attacking.Attack — Run Step 1 below as the grumpy senior engineer.Defend — Run Step 2 as the balanced engineer; classify each criticism as must-fix / defer / reject.
  2. 02

    Step 1: Attack (Grumpy Senior Engineer)

    Assume your plan/fix is flawed. Ask yourself:

    What's the weakest assumption?Where will this break under load, at scale, or with edge cases?What did I ignore or hand-wave?
  3. 03

    Step 2: Defend (Balanced Engineer)

    Counter the criticism fairly:

    Which criticisms are valid and must be addressed now?Which are theoretical and can be deferred?What's the pragmatic middle ground?
  4. 04

    Step 3: Revise

    Do this internally — the user sees the improved result, not the raw debate. Only surface trade-offs or concerns that need the user's input.

    Fix the valid issues in your plan/fix.Move deferred concerns to "Open Questions" or "Known Limitations".Present the improved version to the user.
  5. 05

    When to use

    Use this skill when: - You've completed a plan, design, or proposed fix and are about to present it. - The change is non-trivial (affects multiple files, changes behavior, touches critical paths). - You're about to recommend an architecture or design decision. - The user submits…

    You've completed a plan, design, or proposed fix and are about to present it.The change is non-trivial (affects multiple files, changes behavior, touches critical paths).You're about to recommend an architecture or design decision.

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score94/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars7SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
event4u-app/agent-config
Skill path
src/skills/adversarial-review/SKILL.md
Commit
0adf49a8ae84b0ff6e2de8759eea43257e020eff
License
MIT
Collected
2026-07-28
Default branch
main
View the original SKILL.md

Adversarial Review

When to use

Use this skill when:

  • You've completed a plan, design, or proposed fix and are about to present it.
  • The change is non-trivial (affects multiple files, changes behavior, touches critical paths).
  • You're about to recommend an architecture or design decision.
  • The user submits finished work (draft, post, naming decision, design proposal) and asks for an honest critical take — "what do you actually think?", "be brutal", "was hältst du wirklich davon". The flow is the same Attack-Defend-Revise loop, but on the user's artifact rather than the agent's plan.

Do NOT use when:

  • The task is trivial (renaming, formatting, simple config change).
  • The user explicitly asked for a quick/rough draft.
  • You're exploring options, not committing to one yet.

Inbound delegation: decision-record § 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 and surface only the trade-offs the user needs to decide.

Step 1: Attack (Grumpy Senior Engineer)

Assume your plan/fix is flawed. Ask yourself:

  • What's the weakest assumption?
  • Where will this break under load, at scale, or with edge cases?
  • What did I ignore or hand-wave?
  • Is this over-engineered for the actual problem?
  • Would a simpler approach work just as well?
  • What will the next developer curse me for?

Step 2: Defend (Balanced Engineer)

Counter the criticism fairly:

  • Which criticisms are valid and must be addressed now?
  • Which are theoretical and can be deferred?
  • What's the pragmatic middle ground?

Step 3: Revise

  • Fix the valid issues in your plan/fix.
  • Move deferred concerns to "Open Questions" or "Known Limitations".
  • Present the improved version to the user.

Do this internally — the user sees the improved result, not the raw debate. Only surface trade-offs or concerns that need the user's input.

Context-specific attack questions

Feature plans / Architecture

  • Is this the simplest solution that works?
  • What happens when requirements change (and they will)?
  • Are there hidden dependencies or coupling?
  • Does this respect existing patterns or introduce a new one unnecessarily?
  • What's the migration/rollback story?

Bug fixes

  • Is this the root cause or just a symptom?
  • Will this fix break something else?
  • Does the fix handle the edge case that caused the bug?
  • Is there a regression test that proves the fix works?
  • Are there other places with the same bug pattern?

Code changes / Refactoring

  • Would I understand this code in 6 months without context?
  • Did I check all callers and downstream effects?
  • Are the tests actually testing the right behavior?
  • Did I introduce a new pattern where an existing one would work?

Database migrations

  • Can this destroy or corrupt data?
  • Is rollback possible?
  • What happens to running queries during migration?
  • Did I check the table size (large table ALTER can lock)?

API design

  • Is this a breaking change?
  • Is it consistent with existing endpoints?
  • Are error responses clear and actionable?
  • Did I consider pagination, filtering, versioning?

Security-sensitive changes

  • Where is the attack surface I'm not seeing?
  • Am I trusting user input anywhere?
  • Are there authorization gaps?
  • Would this pass a security review?

Integration with other skills

  • feature-planning — adversarial review after Understanding Lock, before presenting the plan.
  • bug-analyzer — review the proposed fix before implementing.
  • code-review — self-review before creating a PR.
  • laravel-migration (or framework-native equivalent) — review migration for data safety.
  • api-design — review API design for consistency and breaking changes.
  • security — review security-sensitive changes for attack surface.

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 rdp-gate (L12).

Auto-trigger keywords

  • adversarial review
  • self-review
  • challenge plan
  • review my approach
  • sanity check

Validate

  • Confirm each identified risk has a concrete mitigation or explicit acceptance.
  • Verify the review produced at least one actionable finding (or explicit "no issues found").
  • Check that the review did not just restate the plan — it must challenge assumptions.

Output format

  1. Improved plan/code incorporating adversarial findings
  2. Risk summary — top concerns discovered and how they were addressed
  3. Remaining open risks (if any) with severity rating

Gotcha

  • Don't use this on trivial changes — it adds overhead without value on simple renames or config tweaks.
  • The model tends to invent risks that don't exist. Ground every concern in actual code, not hypotheticals.
  • Don't challenge the user's explicit requirements — challenge the implementation, not the goal.

Do NOT

  • Do NOT present the raw adversarial debate to the user — only the improved result.
  • Do NOT use this as an excuse to delay work — the review should take seconds, not minutes.
  • Do NOT apply this to trivial changes — it adds overhead without value.
  • Do NOT let the "grumpy engineer" kill good ideas — the balanced engineer must counter.
  • Do NOT skip Step 3 (Revise) — attacking without improving is just complaining.

References

  • Tree-of-Thoughts (ToT)arxiv.org/abs/2305.10601 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.

Alternatives

Compare before choosing