What problem does it solves?
This Skill provides a rigorous Test-Driven Development (TDD) workflow specifically designed for AI-assisted development, preventing AI agents from "cheating" on tests. It ensures high-quality, reliable code by making tests immutable guardrails against AI hallucinations.
Core Features & Use Cases
- 2-Phase TDD Solution: Enforces a RED (write & commit tests) then GREEN + REFACTOR (implement & simplify) workflow to prevent test modifications during implementation.
- 5 MUST PASS Test Quality Criteria: Defines strict criteria for test quality, ensuring tests verify business logic, cover error paths and edge cases, and focus on observable behavior.
- Coverage Requirements: Sets and enforces minimum test coverage thresholds (≥80% statements, ≥75% branches) to ensure comprehensive testing.
- Use Case: When developing a new feature, use this Skill to guide you through writing failing tests first, committing them, then implementing the minimal code to pass, and finally refactoring. This ensures your AI assistant builds robust code without compromising test integrity.
Quick Start
Generate a failing test for a new createOrganization operation. Ensure the test verifies business logic, covers error paths (401, 400), and uses meaningful assertions.