Test Fixing
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
Own this skill? Claim it
What it does
- Covers the full loop: an initial
make testrun, 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
pytestruns 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 -yInstalls 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):
- 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- Code Auditor345
- Dashboard Creator339
- Timeline Creator339
- Code Refactor306
- Feature Planning298
- Code Execution295
- Review Implementing257
- Conversation Analyzer251
- Technical Doc Creator222
- Ensemble Solving219
- Project Bootstrapper213
- Code Transfer174
- Flowchart Creator767
- Codebase Documenter597
- Architecture Diagram Creator547
- File Operations419
- Git Pushing413
Similar to Test Fixing
More Testing & QAtddSkillcursor/plugins4.5K installsTest-first bug fixing that writes a focused regression test to fail before the fix and pass after.
fixSkillalirezarezvani/claude-skills1.7K installsSystematic diagnosis and repair of failing or intermittently passing Playwright tests, sorted into four failure categories.
test-driven-developmentSkilladdyosmani/agent-skills80.2K installsStructured red-green-refactor workflow that writes a failing test before any code change, including bug fixes.
test-reporting-triage-skillSkillpatricio0312rev/skills258 installsAutomatic failure triage that categorizes test errors, assigns suggested owners, and builds reports with fix checklists.
systematic-debuggingSkillobra/superpowers346.5K installsStructured four-phase process that forbids proposing fixes until root cause is established.
test-results-analyzerPluginrohitg00/awesome-claude-code-toolkit2.9K starsAnalyze test failures, identify patterns, and suggest targeted fixes