adversarial-implementation
БесплатноБез исполняемых скриптовНе проверенImplement TODO.md items via isolated subagents, then adversarially verify correctness. Drives a phased loop that implements one checkbox at a time, runs…
от xdg★ 20 звёзд на GitHubОб этом скилле
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.)
Adversarial Implementation Protocol
When implementing from TODO.md:
- Implementation unit: Individual checkboxes (keeps subagent sessions manageable)
- Completion unit (aka "subsection"): The immediate parent heading of a group of checkboxes -- i.e., the most specific heading that directly contains them, not any ancestor.
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.
Isolated subagents
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.
Phase 1: Plan the Subsection
For the next incomplete Phase subsection:
- Read ALL checkboxes within the subsection
- Categorize each checkbox:
- Automatable: Code changes, automated tests
- Human-required: Browser interactions, visual verification, manual testing
- Process automatable items one at a time (or in small logical batches) through Phases 2-4 before moving to the next item
- Track which items are complete within the subsection
- If subsection has NO automatable items, skip directly to Phase 6
Phase 2: Implement Single Item via Subagent
For each automatable checkbox:
- Spawn an isolated task subagent (if one exists, or a general subagent otherwise) with this prompt structure:
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.
- Do NOT provide the full codebase -- give minimal necessary context so you minimize use of the main context. Include: TODO.md, relevant specs, file paths to modify. Exclude: file contents the subagent can read itself, unrelated modules.
Phase 3: Verify Single Item
After the implementation subagent from Phase 2 completes, do steps 1 and 2 below in parallel:
- Have a fresh subagent run linter/formatter checks according to CLAUDE.md or other instructions and report on failures
- Have a fresh subagent run tests according to CLAUDE.md or other instructions and report on failures
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:
- Have a fresh subagent review the diff against acceptance criteria.
- Have a fresh subagent review the diff for code smells, such as:
- Unintended side effects (files changed that shouldn't be)
- Rule violations (check CLAUDE.md for rules)
- Incomplete implementation (partial work presented as done)
- Faked tests (hardcoded to pass)
- Hardcoded function return values
- New TODO comments left behind
- Any other notable code smells (ignoring small style nits)
Phase 4: Iterate or Continue
If verification fails:
- Document specific failures
- Spawn NEW subagent (don't reuse) with:
- Original task
- What was attempted
- Specific failures to fix
- Stricter constraints based on what went wrong
- Repeat Phase 3 to re-verify
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:
- Mark that checkbox complete in TODO.md
- If more automatable items remain in the subsection, return to Phase 2
- If all automatable items are done, proceed to Phase 5
IMPORTANT: Do NOT commit yet -- defer until Phase 7.
Phase 5: Code Review
- Run the code review subagent (or a general subagent if unavailable) to review new files and the changed files diff.
- If the review does not report any significant or major issues, proceed to Phase 6.
- Spawn an isolated subagent to fix the issues.
- After fixes are complete, spawn another isolated subagent to ensure that tests still pass.
- If tests do not pass, return to Step 3 of this phase to fix them.
Do NOT proceed to Phase 6 unless all tests pass.
P
Установить adversarial-implementation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл adversarial-implementation?
Implement TODO.md items via isolated subagents, then adversarially verify correctness. Drives a phased loop that implements one checkbox at a time, runs independent lint/test/review subagents, handles human verification, and commits per subsection. Use when the user asks to implement, execute, or work through a TODO.md plan or its next subsection, or asks for adversarial or verified implementation of a planned task. Not for one-off edits outside a plan.
Как установить скилл adversarial-implementation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adversarial-implementation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic