with one click
test-cleaner
Multi-phase test suite optimization with adversarial review
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Multi-phase test suite optimization with adversarial review
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | Test Cleaner |
| description | Multi-phase test suite optimization with adversarial review |
| phase | review |
Analyze, optimize, and clean a project's test suite through a multi-phase workflow with adversarial review. Produces machine-readable output and feeds findings into compound-agent memory.
Spawn multiple analysis subagents in parallel:
Synthesize analysis results into a refined optimization plan:
This is THE KEY PHASE -- the most important phase in the entire workflow. NEVER skip, NEVER rush, NEVER settle for "good enough."
Expose the plan to two neutral reviewer subagents:
Both reviewers challenge assumptions, identify risks, and suggest improvements.
Mandatory iteration loop: After each reviewer pass, if ANY issues, concerns, or suggestions remain from EITHER reviewer, revise the plan and re-submit to BOTH reviewers. Repeat until BOTH reviewers explicitly approve with ZERO reservations. Do not proceed to Phase 4 until unanimous, unconditional approval is reached.
This is the critical quality gate. Loop as many times as needed. The test suite must be bulletproof before execution begins.
Apply the agreed changes:
ERROR [file:line] type: descriptionREMEDIATION suggestions and SEE references{{QUALITY_GATE_TEST}} with module/path filters){{QUALITY_GATE_TEST}}) and linter ({{QUALITY_GATE_LINT}}) after changesca learnAdapt test commands to the project's stack:
{{QUALITY_GATE_TEST}} with path filter){{QUALITY_GATE_TEST}} for complete validationca search "test optimization" before startingca learnDecompose a large system specification into cook-it-ready epic beads via DDD bounded contexts
Reference for configuring, launching, and monitoring infinity loops and polish loops
Decompose a large system specification into cook-it-ready epic beads via DDD bounded contexts
Reflect on the cycle and capture high-quality lessons for future sessions
Full-cycle orchestrator chaining all five phases with gates and controls
Decompose work into small testable tasks with clear dependencies