From claude-code-toolkit
Diagnoses failing tests, parses output, categorizes causes, reads code, applies targeted fixes, verifies with re-runs, and reports table of results with pass count.
How this command is triggered — by the user, by Claude, or both
Slash command
/claude-code-toolkit:test-fixtesting/The summary Claude sees in its command listing — used to decide when to auto-load this command
Diagnose and fix failing tests in the project. ## Steps 1. Run the test suite and capture output: detect the test runner from project config. 2. Parse the failure output to extract: - Test name and file location. - Expected vs actual values. - Stack trace and error message. 3. For each failing test, determine the root cause category: - **Stale snapshot**: Output changed intentionally; update snapshot. - **Logic change**: Source code changed but test was not updated. - **Environment issue**: Missing env var, port conflict, timing issue. - **Flaky test**: Race condition...
Diagnose and fix failing tests in the project.
<runner> --testPathPattern <file>.Failing tests: <N>
| Test | File | Cause | Fix |
|------|------|-------|-----|
| test name | path | category | what was done |
Result: <N>/<N> now passing
npx claudepluginhub rohitg00/awesome-claude-code-toolkit2plugins reuse this command
First indexed Feb 7, 2026
/fix-failing-testDiagnose and fix a failing test by classifying its failure type, tracing the root cause, applying the minimal patch, and confirming no regressions.
/analyze-failuresRuns full test suite, analyzes failures to identify root causes and patterns, categorizes into groups, and suggests prioritized fixes.
/test-and-fixRuns tests and iteratively fixes failures until all tests pass, with support for scoping to a specific file or pattern.
/diagnose-flakyDiagnoses flaky tests via decision tree, identifying root causes like interdependence, timing, environment differences before fixes. Uses pytest, grep, bash diagnostics.
/run-testsRuns a focused subset of the user's test suite via the mk-qa-master runner, surfaces failures with stack traces, and offers actionable next steps.
/flaky-fixAnalyzes flaky test failures, diagnoses root causes (timing, state, ordering, etc.), applies fixes, and validates stability across multiple runs.