codex/skills/adversarial-reviewer/SKILL.md
Challenge non-trivial code artifacts with authority-gated adversarial review. Surface only material, current, owned, witness-backed findings; separate candidate concern validity from material-finding eligibility; require no-finding countercases, soundness rows, authority clearance, verification paths, and change-agenda consistency before emitting a remediation agenda. Trigger for exhaustive review, fresh-eyes second pass, re-review after fixes, patch hardening, full-scope de novo challenge, or material fixed-point review. Not for trivial wording, implementation, or final readiness without a review question.
npx skillsauth add tkersey/dotfiles adversarial-reviewerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill is the primary falsifier. It does not implement fixes. It makes the next required changes explicit only after each finding clears evidence, scope, authority, no-finding, soundness, and verification gates.
Find material defects in the current artifact set without flooding downstream implementation with plausible-but-unowned, stale, low-value, overbroad, wrong-layer, or insufficiently witnessed findings.
A review finding is not valid because it is clever, severe-sounding, invariant-framed, or easy to patch. A finding becomes a material finding only when current artifacts prove a defect or verification gap that this review surface owns, the strongest no-finding countercase is defeated, the minimum acceptable fix or validation is known, and the authority gate clears it.
Use Authority-Gated v2 mode for real code, plan, or artifact review. It requires:
Operate in FULL-SCOPE, DE NOVO, ADVERSARIAL, MATERIAL, AUTHORITY-GATED, NO-FINDING-FIRST, WITNESS-BEARING, INVARIANT-GRADED, SOUNDNESS-LEDGERED, HAZARD-SEEKING, DIRECTION/OWNERSHIP-AWARE, VERIFICATION-PATHED, PARSIMONIOUS, STALE-PROOF, and FAIL-CLOSED mode.
Dense review language is not evidence. A candidate finding becomes useful only when a doctrine word becomes a row, gate, or proof obligation.
For every material finding, make the doctrine artifact explicit:
| Field | Meaning |
|---|---|
| doctrine_cue | invariant, canonical, unwitnessed-guarantee, illegal-inhabitant, partial-handler, fixed-point, traceable, etc. |
| executable_artifact | the ledger row, gate, witness, no-finding countercase, or proof path created by that doctrine cue |
| evidence_ref | concrete current artifact, command, test, line, diff, or packet |
| minimum_acceptable_fix | smallest change or validation that would close the artifact |
| demotion_case | why this would be ornamental if the artifact is missing |
Convert unwitnessed guarantee and illegal inhabitant into explicit review ledger rows with code/test evidence.
The Soundness Ledger must include rows for any material possibility of:
unwitnessed-guaranteeillegal-inhabitantpartial-handlernon-canonical-witnessbroken-preservationstuck-progressIf none exist, say none found and name the reviewed constructor/producer and eliminator/consumer surfaces that made the absence credible.
Use custom read-only Codex agents when available. If they are unavailable, emit root-equivalent authority packets using the same packet schema.
Recommended custom agents under codex/agents/:
adv_review_evidence_authorityadv_review_soundness_authorityadv_review_invariant_scope_authorityadv_review_hazard_footgun_authorityadv_review_complexity_remediation_authorityadv_review_verification_authorityadv_review_finding_skepticA candidate may appear in Material Findings only if all are true:
evidence_of_defect and evidence_of_remedy or validation_probe refs.If any item fails, route the candidate to Non-Finding Ledger, Verification Gaps, Residual Uncertainty, proof-only, validate-first, defer, or blocked instead of material finding.
For every candidate, construct the strongest no-finding case before accepting it.
A no-finding case may be:
Material Findings require the no-finding case to be defeated. A preserved no-finding case must appear in Non-Finding Ledger or Authority Veto Ledger.
soundness_ledger:
- id: "S1"
kind: unwitnessed-guarantee | illegal-inhabitant | partial-handler | non-canonical-witness | broken-preservation | stuck-progress | none-found
claim_or_guarantee: "..."
constructor_or_producer: "..."
eliminator_or_consumer: "..."
current_or_missing_witness: "..."
evidence_ref: "..."
minimum_acceptable_fix_or_validation: "..."
status: open | closed | downgraded | not-found
Each agenda row must include:
candidate_idrecommended_changeminimum_acceptable_fixevidence_of_defectevidence_of_remedy or validation_proberemediation_posture: validating-check-only | accretive-remediation | structural-remediationwhat_not_to_broaden_intoverification_pathUse tail-weighted sections:
Before producing a downstream handoff, answer:
candidate_count:
material_finding_count:
non_finding_count:
validation_item_count:
soundness_rows_open:
all_material_findings_have_witness: yes | no
all_material_findings_have_no_finding_countercase_defeated: yes | no
all_agenda_items_have_verification_path: yes | no
change_agenda_allowed: yes | no
Reviewer Bottom Line must be the final section and must list: Act Now, Validate First, No Finding, Blocked, and Exact Next Move.
testing
Use before local patching when bugs, regressions, malformed state, crashes, parser failures, migrations, cache drift, protocol problems, compatibility requests, tolerant readers, fallbacks, coercions, retries, catch-and-continue logic, or local workarounds may broaden accepted invalid state.
testing
Use for bug reports, PR/issue prose, reviewer comments, user diagnoses, generated summaries, memories, retrieved context, public tracker context, claimed root causes, proposed fixes, fake-minimal repro risk, or any investigation where natural-language context could anchor the implementation scope.
development
Use when non-trivial work needs Challenge Escalation, latent-intelligence activation, frame-market selection, doctrine operators, dominant-move selection, ablation/surface-tax judgment, reification, review comment law, negative capability, route receipts, or proof-bearing refusal to mutate.
development
Apply Algebra-Driven Design. Use for ADD, denotational design, combinator models, law-driven architecture, domain algebra, property tests, codebase modeling, event sourcing, workflow design, or agentic skill design. If the canonical bundle is unavailable, use this wrapper as the minimal ADD kernel and report the missing bundle path.