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

Fix Tests

  • 918 installs
  • 1.3k repo stars
  • Updated August 3, 2026
  • neolabhq/context-engineering-kit

fix-tests is a context-engineering-kit skill that orchestrates a structured repair of all failing tests after refactors or dependency updates while preserving current business logic and product behavior.

About

fix-tests is a context-engineering-kit command skill that systematically repairs failing tests after business-logic changes, refactors, or dependency upgrades. The skill accepts optional module or test focus arguments and otherwise targets the full failing suite, coordinating specialized agents to align assertions and fixtures with current implementation. Developers reach for fix-tests when CI turns red after intentional code changes but production behavior should remain unchanged. Important constraints keep the pass focused on test repair rather than silent product-logic rewrites, making it suitable post-refactor stabilization. The workflow orchestrates automated fixing across failing cases until the suite matches present business rules and implementation details.

  • Discovers test commands from README and package.json (or equivalent project config)
  • Fix tests to match current business logic—avoid drive-by production changes unless unavoidable
  • Complexity gate: 2+ changed files or complex logic → orchestrate agents; single simple file → may fix directly
  • Optional integration with sadd skill for agent orchestration best practices
  • Accepts `$ARGUMENTS` to scope modules or suites when not fixing everything

Fix Tests by the numbers

  • 918 all-time installs (skills.sh)
  • +28 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #549 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/neolabhq/context-engineering-kit --skill fix-tests

Add your badge

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

Listed on Skillselion
Installs918
repo stars1.3k
Security audit3 / 3 scanners passed
Last updatedAugust 3, 2026
Repositoryneolabhq/context-engineering-kit

How do you fix failing tests after a refactor?

Orchestrate a structured pass to repair failing tests after refactors or dependency updates without silently rewriting product logic.

Who is it for?

Development teams with failing CI after refactors or dependency bumps who need tests updated without changing intended product behavior.

Skip if: Greenfield test authoring from scratch, rewriting product logic to satisfy outdated tests, or skipping root-cause analysis on systemic design failures.

When should I use this skill?

Tests fail after business-logic changes, refactoring, or dependency updates and the developer wants an orchestrated fix pass focused on the test suite.

What you get

A green test suite with updated assertions and fixtures matching current business logic and implementation.

  • passing test suite
  • updated test assertions

Files

SKILL.mdMarkdownGitHub ↗

Fix Tests

User Arguments

User can provide to focus on specific tests or modules:

$ARGUMENTS

If nothing is provided, focus on all tests.

Context

After business logic changes, refactoring, or dependency updates, tests may fail because they no longer match the current behavior or implementation. This command orchestrates automated fixing of all failing tests using specialized agents.

Goal

Fix all failing tests to match current business logic and implementation.

Important Constraints

  • Focus on fixing tests - avoid changing business logic unless absolutely necessary
  • Preserve test intent - ensure tests still validate the expected behavior
  • "Analyse complexity of changes" -
  • if there 2 or more changed files, or one file with complex logic, then Do not write tests yourself - only orchestrate agents!
  • if there is only one changed file, and it's a simple change, then you can write tests yourself.

Workflow Steps

Preparation

1. Read sadd skill if available

  • If available, read the sadd skill to understand best practices for managing agents

2. Discover test infrastructure

  • Read @README.md and package.json (or equivalent project config)
  • Identify commands to run tests and coverage reports
  • Understand project structure and testing conventions

3. Run all tests

  • Execute full test suite to establish baseline

4. Identify all failing test files

  • Parse test output to get list of failing test files
  • Group by file for parallel agent execution

Analysis

5. Verify single test execution

  • Choose any test file
  • Launch haiku agent with instructions to find proper command to run this only test file
  • Ask him to iterate until you can reliably run individual tests
  • After he complete try running a specific test file if it exists
  • This ensures agents can run tests in isolation

Test Fixing

6. Launch `developer` agents (parallel)

  • Launch one agent per failing test file
  • Provide each agent with clear instructions:
  • Context: Why this test needs fixing (business logic changed)
  • Target: Which specific file to fix
  • Guidance: Read TDD skill (if available) for best practices how to write tests.
  • Resources: Read README and relevant documentation
  • Command: How to run this specific test file
  • Goal: Iterate until test passes
  • Constraint: Fix test, not business logic (unless clearly broken)

7. Verify all fixes

  • After all agents complete, run full test suite again
  • Verify all tests pass

8. Iterate if needed

  • If any tests still fail: Return to step 5
  • Launch new agents only for remaining failures
  • Continue until 100% pass rate

Success Criteria

  • All tests pass ✅
  • Test coverage maintained
  • Test intent preserved
  • Business logic unchanged (unless bugs found)

Agent Instructions Template

When launching agents, use this template:

The business logic has changed and test file {FILE_PATH} is now failing.

Your task:
1. Read the test file and understand what it's testing
2. Read TDD skill (if available) for best practices on writing tests.
3. Read @README.md for project context
4. Run the test: {TEST_COMMAND}
5. Analyze the failure - is it:
   - Test expectations outdated? → Fix test assertions
   - Test setup broken? → Fix test setup/mocks
   - Business logic bug? → Fix logic (rare case)
6. Fix the test and verify it passes
7. Iterate until test passes

Related skills

FAQ

Does fix-tests change production business logic?

fix-tests focuses on repairing failing tests to match current business logic and implementation. The skill explicitly constrains work to test fixes rather than silently rewriting product behavior.

Can fix-tests target specific modules?

fix-tests accepts optional arguments to focus on specific tests or modules. When no arguments are provided, the skill targets all failing tests in the suite.

Is Fix Tests 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 & QAtestingintegrations

This week in AI coding

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

unsubscribe anytime.