yuga-hashimoto/open-test-pilot/repair-tests
Claude Code and agent skill by yuga-hashimoto/open-test-pilot
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install yuga-hashimoto/open-test-pilot/repair-testsSKILL.md
Repair tests
Fix a test whose failure was classified as test-side (see analyze-failure). Repair is Manifest-only, evidence-backed, and bounded — it is not a license to make a run pass by any means.
Scope
Repair changes the Manifest (and, transitively, the regenerated code) — never the application/product source. If a fix requires changing product behavior, that isn't a repair; it's a product change, and it goes through the normal product development process, not this skill.
Allowed changes (each must be justified by evidence from analyze-failure)
- Replace a broken locator with a more stable one, following the same preference order as
analyze-repository(data-testid/role+name/label over brittle CSS). - Add or adjust an explicit wait condition —
control.waitUntilwith a realcondition, boundedmaxAttemptsandpollMs— to fix a genuine race (WAIT_CONDITION_ERROR). - Correct test data: fix
setup/variables/secretsreferences, or add missingcleanupso state doesn't leak between runs (TEST_DATA_ERROR). - Fix a genuinely wrong Manifest construct (wrong action type, wrong
expectedStatus, misordered steps) when evidence shows the Manifest itself was the bug (TEST_IMPLEMENTATION_ERROR).
Forbidden changes (these make a red test look green without fixing anything)
- Deleting or loosening an assertion (
web.expectVisible→ nothing,expectedStatus: 200→ wildcard, removing anexpectText/responseSchemacheck) without hard evidence the expectation itself was wrong. - Skipping or removing an action to route around a failure.
- Wrapping a flaky step in a broad
control.try/catch that swallows the error instead of fixing the cause. - Adding a fixed, long sleep (a raw delay Action) instead of an explicit, bounded
control.waitUntilcondition. - Weakening an expectation "just to be safe" without evidence backing the change — every repair must cite the specific failure evidence that motivated it.
Process
- Confirm the failure category from
analyze-failureand the exact evidence (structured error, source-mapped Action ID, DOM/network/trace as relevant). - Make the smallest Manifest edit that addresses the root cause.
- Re-validate (
testpilot manifest validate <file> --jsonormanifest_validate) and regenerate (generate-code). - Re-run the smallest relevant scope first if possible, then the full Manifest, to confirm the fix —
testpilot run <file> --json. - If the run still fails with the same classified cause, do not repeat the same edit — stop and escalate (see below) rather than trying variations blindly.
Stopping conditions — escalate instead of continuing
- The repaired test fails again with the identical failure category and root cause after one repair attempt.
- The project/session-defined attempt limit for this test is reached (track attempts; do not loop indefinitely).
- The evidence is ambiguous between a test bug and a product bug (
SPECIFICATION_MISMATCH) — this was never repairable in the first place; hand off toanalyze-failure's escalation path.
When stopping, hand off with full evidence: the failure category, the Manifest diff already attempted, the run's failures[]/report, and a plain statement that automated repair did not resolve it — via change_request_create (team mode) or a PR/issue comment (local mode), per publish-tests.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/claude-code-plugin/skills/repair-tests/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yuga-hashimoto/open-test-pilot/repair-tests)