
Test Fixing
When your test suite is broken and you're staring at dozens of failures, this runs the tests, groups errors by type and root cause, then fixes them systematically. It tackles infrastructure issues first (imports, dependencies), then API changes, then logic bugs. The smart part is it verifies each group before moving on, so you're not chasing cascading failures. Works well when you've just refactored something and need to clean up the mess methodically rather than bouncing around random test files. It's basically the disciplined approach you know you should take but often skip when you're rushing.
- skills.sh installs
- 247
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill test-fixing --agent claude-codeInstalls into .claude/skills of the current project.
Files
Test Fixing
Systematically identify and fix all failing tests using smart grouping strategies.
When to Use
- Explicitly asks to fix tests ("fix these tests", "make tests pass")
- Reports test failures ("tests are failing", "test suite is broken")
- Completes implementation and wants tests passing
- Mentions CI/CD failures due to tests
Systematic Approach
1. Initial Test Run
Run make test to identify all failing tests.
Analyze output for:
- Total number of failures
- Error types and patterns
- Affected modules/files
2. Smart Error Grouping
Group similar failures by:
- Error type: ImportError, AttributeError, AssertionError, etc.
- Module/file: Same file causing multiple test failure
- Root cause: Missing dependencies, API changes, refactoring impacts
Prioritize groups by:
- Number of affected tests (highest impact first)
- Dependency order (fix infrastructure before functionality)
3. Systematic Fixing Process
For each group (starting with highest impact):
-
Identify root cause
- Read relevant code
- Check recent changes with
git diff - Understand the error pattern
-
Implement fix
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Testing & QA, Debugging
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Dask246
- Denario246
- Ensembl Database246
- Security Best Practices246
- Doc Coauthoring245
- Graphql245
- Iterate Pr245
- Playwright E2e Builder245
- Adaptyv242
- Medchem241
- Personal Tool Builder241
- Zarr Python239
- Cobrapy238
- Pylabrobot238
- Qutip237
- Torchdrug237
- Template Skill236
- Deployment Procedures235
- Gcp Cloud Run235
- Gepetto234
- Qiskit234
- Pysam233
- Pufferlib232
- Web Quality Audit232