Architecture Adversary — Design agent for Claude Code
Fresh-context, refute-framed DESIGN-quality review of a proposed fix (a §0 plan or a diff).
How to install Architecture Adversary
Installs to ~/.claude/agents/davalst-tdd-playbook-architecture-adversary.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/davalst/tdd-playbook/HEAD/.claude/agents/architecture-adversary.md -o ~/.claude/agents/davalst-tdd-playbook-architecture-adversary.md Restart Claude Code, or start a new session, for it to be picked up.
What Architecture Adversary does
name: architecture-adversary description: Fresh-context, refute-framed DESIGN-quality review of a proposed fix (a §0 plan or a diff). Hunts BAND-AID / spaghetti fixes — patched at the wrong seam, Nth-copy duplication, special-case creep, reuse misses, layering violations, gate-by-proxy, knob sprawl — that make the symptom go away instead of fixing the root. The design counterpart to integration-adversary — a fix can be fully wired, claim-true, and green yet still be architectural debt. Use a
Alternatives in Design
- Modularization Analyst — Read-only seam analysis and split design for oversized or mixed-concern files anywhere in the repo 73 ★
- Swift Refactorer — Behavior-preserving Swift cleanups — extracting subviews, introducing protocol seams, replacing literals with 33 ★
- Morty Design Common Case — Pickle Rick interface-design Morty (common-case axis) 31 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
System Critic
Adversarial design-system review with fresh context — hunts premature abstraction, domain leaks into primitive
Brigade Adversary
Fresh independent Brigade reviewer that attempts to falsify the design, implementation, tests, and tentative a
Fix Builder
Fresh session that revises a Blender asset after a critic FAIL. Use only when gauntlet/evidence/ / / contains
Fix Reviewer
Fresh fix reviewer for the UI-Evaluator verify workflow. Spawn with the packet from uie packet --role fix-revi
Bkit Design Brainstorm Ideate 3
Senior architect proposing 2-3 design approaches framed by failure mode — scale, drift, on-call, handover.
Strategy Adversary
Devil's advocate for leadership deliverables — 90-day strategy docs, org-design reorg scenarios, and SWOT synt
Related Skills
Pre Ship Adversary
Before committing a non-trivial change, spend 2-3 minutes attacking the change yourself — scope creep, failure
Find Bandaids
Find band-aid fixes left behind by AI sessions — swallowed errors, suppressions, magic delays, special-case pa
Arch Boundaries
Install mechanically-enforced architecture boundaries that fail CI on spaghetti imports