This takes a methodical approach to fixing broken test suites by grouping failures intelligently before diving in. Instead of fixing tests one by one, it categorizes them by error type, affected modules, and root cause, then tackles the highest impact groups first. Infrastructure issues like imports get fixed before API changes, which get fixed before logic bugs. After each group, it runs a focused subset of tests to verify the fix before moving on. The systematic grouping is the smart part here. When you've got 15 failures after a refactor and they're all tangled up, having a process that says "these 8 are all the same import issue" prevents you from thrashing around fixing symptoms instead of causes.

skills.sh installs
386
GitHub stars
693
last updated
Aug 21, 2026

Install

$ npx -y skills add mhattingpete/claude-skills-marketplace --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 failures
  • 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

Sponsors

Details

Repository
github.com/mhattingpete/claude-skills-marketplace
Categories
Testing & QA, Debugging
License
Apache-2.0
First seen
Jun 3, 2026

More from mhattingpete/claude-skills-marketplace

All 18
1levnikolaevich avatarln-404-test-executorlevnikolaevich/claude-code-skillsExecutes test tasks (label 'tests') through Todo to To Review with risk-based limits. Use for test task execution. Not for implementation tasks.378skills.sh installs
2levnikolaevich avatarln-635-test-isolation-auditorlevnikolaevich/claude-code-skillsAudits whether test results can be trusted: flakiness, isolation, real external dependencies, time/random/order dependency, and shared state. Use when auditing 376skills.sh installs
3levnikolaevich avatarln-633-test-value-auditorlevnikolaevich/claude-code-skillsScores each test by portfolio value and returns KEEP/DELETE/MERGE/REWRITE. Use when pruning test-suite cost.372skills.sh installs
4levnikolaevich avatarln-521-test-researcherlevnikolaevich/claude-code-skillsResearches real-world problems, competitor solutions, and customer complaints for a feature domain. Use before test planning to ground tests in actual user pain356skills.sh installs
5sickn33 avataraws-penetration-testingsickn33/antigravity-awesome-skillsaws penetration testing353skills.sh installs
6cinience avataralicloud-ai-audio-tts-voice-clone-testcinience/alicloud-skillsMinimal voice cloning TTS smoke test for Model Studio Qwen TTS VC.304skills.sh installs