What problem does it solve?
This skill resolves the common issue where test suites drift from the actual implementation, leading to false positives, outdated assertions, or brittle tests that fail due to minor refactors.
Core Features & Use Cases
- Implementation-First Discovery: Automatically traces call chains and I/O to ensure tests reflect current code behavior rather than stale assumptions.
- Contract-Based Rewriting: Generates a clear checklist of observable behaviors before modifying any test code.
- Use Case: When a legacy module has tests that are failing or confusing, use this skill to map the current implementation logic to a new, clean set of test cases that accurately verify the module's contract.
Quick Start
Invoke the test-helper skill to analyze the current directory and rewrite the test cases to match the implementation.