What problem does it solve?
Teams often write tests after implementation, skip edge cases, or produce brittle tests coupled to internal details. This Skill enforces a disciplined test-first workflow so new features and bug fixes ship with meaningful, behavior-focused test coverage.
Core Features & Use Cases
- Mandatory TDD Cycle: Enforces the red-green-refactor loop with vertical slicing—one behavior, one failing test, minimal implementation—before any production code is written.
- Coverage Strategy: Defines required coverage tiers: unit tests for core logic, integration tests for API endpoints, E2E tests for critical user flows, and failing-test-first for bug fixes.
- Test Quality Rules: Requires behavior-describing test names, AAA structure, independent tests, boundary case coverage (null, 0, -1, MAX_INT, error paths), and mocks only for external dependencies.
- Use Case: When fixing a token validation bug, the Skill requires writing a failing test like "should reject expired tokens" first, confirming it fails, then implementing the minimal fix.
Quick Start
Ask the agent to implement a new feature or fix a bug using TDD with proper test coverage for the target module.