Skip to content

Systematic test-fixing workflow that groups failures by error type, module, and root cause before repairing them.

CCM score
52 of 100
skills.sh installs
389
GitHub stars
697
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full loop: an initial make test run, failure grouping, ordered fixes, and a final full-suite verification
  • Orders fixes as infrastructure first (imports, dependencies, configuration), then API changes, then logic and assertion failures
  • Enforces one group at a time, with focused pytest runs per group and no advancing until the current group passes
  • Designed for refactors, CI/CD breakages, and requests to make a failing test suite pass

Install

$ npx -y skills add mhattingpete/claude-skills-marketplace --skill test-fixing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

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

Questions

What does the test-fixing skill do?

The test-fixing skill runs your test suite and systematically fixes all failing tests. It groups similar failures by error type, module, or root cause, then fixes the highest-impact groups first. Each group is verified with focused test runs before moving on.

When should I use the test-fixing skill?

Use it when you ask to fix failing tests, make tests pass, or report that a test suite is broken. It also fits when CI/CD fails because of tests after you finish an implementation. The skill triggers automatically from these kinds of requests.

How do I install the test-fixing skill?

Run npx -y skills add mhattingpete/claude-skills-marketplace --skill test-fixing -y in your project. The skill then lets the agent run make test, group failures, and apply minimal, focused fixes. It is listed under the Testing & QA category.

Does test-fixing require a specific test runner?

The skill's examples use make test for the full suite and uv run pytest for focused runs. It also refers to CLAUDE.md for project conventions. Your project therefore needs a make test target and pytest for the commands shown to work.

More from mhattingpete/claude-skills-marketplace

All 18

Similar to Test Fixing

More Testing & QA