What problem does it solve?
Developers often implement production code without a clear, verifiable specification, resulting in regressions, ambiguous behavior, and manual debugging efforts; this Skill enforces a test-first workflow so behavior is specified, observed failing tests prove coverage, and fixes are validated automatically.
Core Features & Use Cases
- Red-Green-Refactor Workflow: Write a minimal failing test, implement the simplest code to pass, then refactor while keeping tests green.
- Verification Checklist: Emphasizes watching tests fail for the right reasons, confirming passing results, ensuring no new warnings or regressions, and avoiding test-only production APIs.
- Anti-Pattern Guidance: Provides rules for mocking, test completeness, and avoiding tests that assert mock behavior.
- Use Cases: Ideal for adding new features, fixing bugs, refactoring modules, and changing observable behavior in codebases with automated tests.
Quick Start
Write a focused failing test that specifies the desired behavior, run the test to confirm it fails, implement the minimal code to make it pass, and then refactor while keeping the test suite green.