/adversarial-implementation:adversarial-implementation [task, or empty to take the next TODO.md subsection]from adversarial-implementation
Implements TODO.md items via isolated subagents with adversarial verification. Drives a phased loop: plan, implement, lint/test/review, human verify, commit per subsection.
Ships in adversarial-implementation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Task: $ARGUMENTS
(If no task is provided, read TODO.md, if it exists. Implement the next incomplete
subsection. If there is no TODO.md file, prompt the user for instructions.)
When implementing from TODO.md:
Example TODO structure:
### 3.1 OAuth Setup
#### 3.1.1 Configure provider
- [ ] Add client ID
- [ ] Add client secret
#### 3.1.2 Implement callback
- [ ] Handle redirect
Here, 3.1.1 and 3.1.2 are completion units (each is a subsection directly containing checkboxes).
3.1 OAuth Setup is NOT a completion unit -- it's a parent grouping.
A completion unit is complete only when ALL its checkboxes are checked -- including any that require human verification.
Whenever this guide says to invoke an isolated subagent, fall back to a general agent if the isolated subagent doesn't exist. In either case, use model 'opus' and effort 'low' for subagents unless otherwise instructed by the user.
For the next incomplete Phase subsection:
For each automatable checkbox:
Task: [specific checkbox item]
Context files: TODO.md, any other relevant specs or instructions (OMIT code
files; the subagent can find these on its own)
Constraints: [project rules, style guide refs]
Acceptance criteria: [the specific checkbox, explicitly stated]
Output: Implement and report a concise summary of what you changed.
After the implementation subagent from Phase 2 completes, do steps 1 and 2 below in parallel:
For linting, formatting, and testing, remind subagents of any particular rules for how to do such actions (e.g., Makefile or other build system targets).
After 1 and 2 complete, do steps 3 and 4 below in parallel:
If verification fails:
NOTE: Max 3 iterations per item, then escalate to human.
If iteration was required, after verification succeeds, reflect on why the initial attempt failed. Decide whether amending guidelines (in the TODO.md file or CLAUDE.md file) might have prevented the failure. If so, propose the changes to the user.
After item passes verification:
IMPORTANT: Do NOT commit yet -- defer until Phase 7.
Do NOT proceed to Phase 6 unless all tests pass.
After ALL automatable items in the subsection pass verification:
make dev, open http://localhost:5175")Do NOT proceed to Phase 7 while ANY unchecked items remain in the subsection.
If and only if ALL checkboxes in the subsection are now checked:
Ensure that commits happen only after ALL verification (automated AND manual) succeeds and only after ALL corresponding checkboxes are checked.
Stop and ask the human when any of these occur. Present your findings, what you've tried, and await guidance before proceeding:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xdg/xdg-claude --plugin adversarial-implementationOther plugins' skills for the same job