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
Audit and set up a codebase for agentic AI development using the 16-principle manifesto
Reviews code for architectural compliance and design integrity
Injects mistake-derived test requirements into the TDD pipeline
Clusters similar lessons and synthesizes testable patterns
Reviews UI code for design quality against the build-great-things quality checklist. Conditional — only activates when the Verification Contract includes design_craft_check evidence.
Analyzes repository structure, conventions, and patterns
| 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 referencespnpm test with module/path filters)pnpm test) and linter (pnpm lint) after changesca learnAdapt test commands to the project's stack:
pnpm test with path filter)pnpm test for complete validationca search "test optimization" before startingca learn