Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
sickn33 avatar

Test Fixing

  • 655 installs
  • 44k repo stars
  • Updated July 27, 2026
  • sickn33/antigravity-awesome-skills

test-fixing is an agent skill that systematically triages and repairs failing tests using grouped root-cause analysis for developers whose test suite broke after implementation or CI failures.

About

test-fixing is a sickn33/antigravity-awesome-skills community skill marked safe-risk that guides agents to identify and repair all failing tests through smart grouping strategies instead of one-off patches. It activates when developers explicitly ask to fix tests, report a broken suite, or finish implementation and need green CI. The workflow clusters failures by shared root cause so agents fix underlying issues rather than silencing individual assertions. Developers reach for test-fixing after refactors, dependency upgrades, or flaky CI runs that leave multiple red tests. It complements TDD authoring skills by focusing on diagnosis and repair of an already failing suite.

  • Explicit triggers: fix tests, make tests pass, broken suite, post-implementation cleanup, CI failures
  • Initial run via `make test` with totals, error types, and affected modules
  • Smart grouping by error type, file/module, and root cause (deps, API drift, refactors)
  • Priority order: highest blast radius first, infrastructure fixes before behavioral assertions
  • Uses `git diff` alongside code reads to tie failures to recent changes

Test Fixing by the numbers

  • 655 all-time installs (skills.sh)
  • +32 installs in the week ending Jul 6, 2026 (Skillselion tracking)
  • Ranked #576 of 2,184 Testing & QA skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill test-fixing

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs655
repo stars44k
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositorysickn33/antigravity-awesome-skills

How do you fix a broken test suite systematically?

Systematically triage and repair a broken test suite after implementation or CI failures using grouped root-cause analysis.

Who is it for?

Developers facing multiple related test failures after a feature merge, refactor, or CI regression who want grouped triage instead of ad hoc fixes.

Skip if: Greenfield test authoring from scratch or projects with no failing tests that only need new coverage.

When should I use this skill?

The user says fix these tests, tests are failing, make tests pass, or the test suite is broken after implementation.

What you get

A passing test suite with grouped root-cause fixes applied across related failing specs or cases.

  • passing test suite
  • grouped failure diagnosis notes

Files

SKILL.mdMarkdownGitHub ↗

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

  • Use Edit tool for code changes
  • Follow project conventions (see CLAUDE.md)
  • Make minimal, focused changes

3. Verify fix

  • Run subset of tests for this group
  • Use pytest markers or file patterns:
     uv run pytest tests/path/to/test_file.py -v
     uv run pytest -k "pattern" -v
  • Ensure group passes before moving on

4. Move to next group

4. Fix Order Strategy

Infrastructure first:

  • Import errors
  • Missing dependencies
  • Configuration issues

Then API changes:

  • Function signature changes
  • Module reorganization
  • Renamed variables/functions

Finally, logic issues:

  • Assertion failures
  • Business logic bugs
  • Edge case handling

5. Final Verification

After all groups fixed:

  • Run complete test suite: make test
  • Verify no regressions
  • Check test coverage remains intact

Best Practices

  • Fix one group at a time
  • Run focused tests after each fix
  • Use git diff to understand recent changes
  • Look for patterns in failures
  • Don't move to next group until current passes
  • Keep changes minimal and focused

Example Workflow

User: "The tests are failing after my refactor"

1. Run make test → 15 failures identified 2. Group errors:

  • 8 ImportErrors (module renamed)
  • 5 AttributeErrors (function signature changed)
  • 2 AssertionErrors (logic bugs)

3. Fix ImportErrors first → Run subset → Verify 4. Fix AttributeErrors → Run subset → Verify 5. Fix AssertionErrors → Run subset → Verify 6. Run full suite → All pass ✓

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Related skills

FAQ

When should test-fixing run?

test-fixing runs when a developer explicitly asks to fix tests, reports test failures or a broken suite, or completes implementation and needs all tests passing before merge.

How does test-fixing approach failures?

test-fixing uses smart grouping strategies to cluster failing tests by shared root cause, then applies targeted repairs so agents fix underlying issues instead of isolated assertion tweaks.

Is Test Fixing safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Testing & QAtestingdevops

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.