What problem does it solve?
This Skill enforces a test-first development workflow to prevent regressions, reduce scope creep, and ensure each feature is developed in small, verifiable increments.
Core Features & Use Cases
- Red-Green-Refactor Workflow: Step-by-step guidance for writing a failing test, implementing the minimal code to pass, and then refactoring safely.
- Test Design and Completion Checklist: Prompts for confirming inputs, outputs, edge cases, and enumerating test cases to cover happy paths and error conditions.
- Coverage and Reporting: Encourages running the test runner and coverage checks and provides a concise report format for completed TDD cycles.
- Use Case: Implement a new Python function or API endpoint by writing the first pytest that fails, making a minimal change to pass it, and then refactoring and validating coverage.
Quick Start
Implement the feature 'calculate_total' using a Red→Green→Refactor cycle by writing the first failing pytest test, adding minimal code to pass it, and then refactoring while keeping all tests passing.