# Adversarial Code Review And Fix

> Systematic pattern for catching design flaws in already-passing code through adversarial review, then fixing them with TDD confirmation.

- Skill: `vamseeachanta/adversarial-code-review-and-fix` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/adversarial-code-review-and-fix`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/adversarial-code-review-and-fix/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/adversarial-code-review-and-fix

---


# Adversarial Code Review and Fix

When code passes all tests but may have design issues: (1) Run tests to establish baseline. (2) Perform adversarial review looking for sentinel value conflicts, overly strict bounds, and API design problems. (3) Document findings as MAJOR/MINOR. (4) Fix findings one at a time, adding new tests for previously-invalid cases. (5) Rerun full suite to confirm no regressions. (6) Commit fixes separately from implementation. This catches issues that functional testing alone misses.
