Test And Fix — Testing skill for Claude Code
Run tests and fix any failures.
How to install Test And Fix
Installs to ~/.claude/commands/0xquinto-bcherny-claude-test-and-fix.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/0xquinto/bcherny-claude/HEAD/.claude/commands/test-and-fix.md -o ~/.claude/commands/0xquinto-bcherny-claude-test-and-fix.md Restart Claude Code, or start a new session, for it to be picked up.
What Test And Fix does
description: "Run tests and fix any failures"
- Run the test suite:
npm test(or appropriate test command for the project) - If all tests pass, report success
- If tests fail:
- Analyze each failure carefully
- Identify the root cause (is it the test or the implementation?)
- Fix the issue
- Re-run tests to verify the fix
- Repeat until all tests pass
Be methodical: fix one test at a time and verify before moving to the next.
Alternatives in Testing
- Fix Issue — by metabase - Addresses GitHub issues by taking issue number as parameter, analyzing context, implementing sol 46.5k ★
- Test Runner — Run Python tests with pytest, unittest, or other testing frameworks 23.4k ★
- Skill Debug — Debug issues methodically — use when stuck on errors, test failures, or unexpected behavior 2.8k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Flutter Test
Run Flutter/Dart tests, report failures, and incrementally fix test issues. Covers unit, widget, golden, and i
Flaky Test
Diagnose a flaky test by running it N times. Delegates to flaky-test-isolator subagent — N runs, signature-gro
i18n Check
Run the i18n locale parity test (en/sk/es) and report or fix any failures
Fix Failures
Systematically identify, categorize, and fix test/linter failures using appropriate tools and agents
CI Gate
Run the full local CI gate (typecheck, lint, test, build) and fix any failures until it passes green.
Parallel Fix
Use when facing 3+ independent test failures or broken subsystems with different root causes. Dispatches one a
Related Agents
IDE Test Runner
Test runner agent that uses IDE bridge tools to run tests, analyze failures, fix broken tests, and ensure code
Ark Build Manager
Triage and fix CI/CD build failures in Ark. Use when builds are failing, CI checks are red, tests are broken,
Flutter Tester
Use after any feature implementation, bug fix, or refactor. Writes and runs unit tests, bloc_tests, and widget