tdd:fix-tests▌
neolabhq/context-engineering-kit · updated Apr 8, 2026
User can provide to focus on specific tests or modules:
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
-
Read sadd skill if available
- If available, read the sadd skill to understand best practices for managing agents
-
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
-
Run all tests
- Execute full test suite to establish baseline
-
Identify all failing test files
- Parse test output to get list of failing test files
- Group by file for parallel agent execution
Analysis
- 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
-
Launch
developeragents (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)
-
Verify all fixes
- After all agents complete, run full test suite again
- Verify all tests pass
-
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
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
tdd:fix-tests is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Piyush G· Sep 9, 2024
Keeps context tight: tdd:fix-tests is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Registry listing for tdd:fix-tests matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Sakshi Patil· Jul 7, 2024
tdd:fix-tests reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend tdd:fix-tests for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Oshnikdeep· May 5, 2024
Useful defaults in tdd:fix-tests — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Dhruvi Jain· Apr 4, 2024
tdd:fix-tests has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Rahul Santra· Mar 3, 2024
Solid pick for teams standardizing on skills: tdd:fix-tests is focused, and the summary matches what you get after install.
- ★★★★★Pratham Ware· Feb 2, 2024
We added tdd:fix-tests from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Yash Thakker· Jan 1, 2024
tdd:fix-tests fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.