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-code

Installs 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):

  1. Identify root cause

    • Read relevant code
    • Check recent changes with git diff
    • Understand the error pattern
  2. 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
1sickn33 avatarperformance-testing-review-ai-reviewsickn33/antigravity-awesome-skillsperformance testing review ai review244skills.sh installs
2sickn33 avatarssh-penetration-testingsickn33/antigravity-awesome-skillsssh penetration testing242skills.sh installs
3cinience avataralicloud-platform-openclaw-setup-testcinience/alicloud-skillsMinimal smoke test for OpenClaw setup skill. Validate official channel discovery workflow, DingTalk/Feishu integrations, Discord token configuration, and gatewa219skills.sh installs
4levnikolaevich avatarln-514-test-log-analyzerlevnikolaevich/claude-code-skillsAnalyzes application logs: classifies errors, checks log quality, maps stack traces to source. Use when logs need review after test runs or during development.216skills.sh installs
5charleswiltgen avataraxiom-ui-testingcharleswiltgen/axiomUse when writing UI tests, recording interactions, tests have race conditions, timing dependencies, inconsistent pass/fail behavior, or XCTest UI tests are flak199skills.sh installs
6levnikolaevich avatarln-636-manual-test-auditorlevnikolaevich/claude-code-skillsAudits manual test evidence quality: reproducibility, fail-fast behavior, expected evidence/golden files, idempotency, and documentation. Use when auditing manu198skills.sh installs