test-preservation
Installation
SKILL.md
Skill: Test Preservation
Goal
Keep test coverage intact by fixing code or updating expectations instead of deleting tests.
Use This Skill When
- A test fails and you are tempted to remove or skip it.
- You think a test is outdated but the behavior still matters.
Do Not Use This Skill When
- You are intentionally replacing a test with a new one that covers the same behavior.
Steps
- Read the Failure: Identify expected vs actual.
- Fix Code First: Try to fix the implementation.
- Validate Test: If behavior changed intentionally, update the test.
- Preserve Coverage: If a test must be removed, replace it with an equivalent check.