Apply Test-Driven Development (TDD) principles to design and verify correct codebase features.
Install
npx skillscat add beer-sakthai/sak-family-agent/sakthai-coding-tdd Install via the SkillsCat registry.
SKILL.md
sakthai-coding-tdd
Write tests to define behavior before implementation, verifying both happy and error paths:
- Red-Green-Refactor: Write a failing unit test first to capture the expectation, implement the minimum code to make the test pass, then refactor.
- Isolation: Mock external dependencies and network requests to ensure tests are fast, deterministic, and hermetic.
- End-to-End Testing: For web UI or complex integration paths, use Playwright or similar E2E frameworks, asserting on user-facing elements and accessibility tags rather than fragile class selectors.