Fix tests

From NeoLabHQ/context-engineering-kit · View interactive version

Fix tests is an AI agent skill from the GitHub repository NeoLabHQ/context-engineering-kit. Systematically fix all failing tests after business logic changes or refactoring

How to use this skill

Skill file

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

Workflow Steps

Preparation

  1. Read sadd skill if available
  1. Discover test infrastructure
  1. Run all tests
  1. Identify all failing test files

Analysis

  1. Verify single test execution

Test Fixing

  1. Launch developer agents (parallel)
  1. Verify all fixes
  1. Iterate if needed

Success Criteria

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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.