What problem does it solve?
This Skill enforces a tests-first development process to ensure features are specified by failing tests before implementation, prevent regressions, and guarantee robust coverage across unit, integration, and end-to-end testing.
Core Features & Use Cases
- Tests before code: Require writing failing tests first and validating a RED state before changing production logic.
- Coverage gate: Enforce a combined minimum of 80% coverage across unit, integration, and E2E tests before merging.
- Git checkpoints: Define RED, GREEN, and optional refactor commits with recommended commit messages and verification that commits are on the active branch.
- Test types & patterns: Provide patterns for unit, integration, and Playwright E2E tests plus guidance for mocking external services and CI integration.
- Use Case: Use this workflow when adding features, fixing bugs, refactoring, or creating API endpoints to ensure repeatable, auditable test evidence and CI enforcement.
Quick Start
Write a failing test that reproduces the requirement or bug, run the tests to confirm RED, implement the minimal fix to make the test pass and confirm GREEN, then verify coverage meets 80%+ and commit checkpoints accordingly.