Skip to main content

tdd-guide

Test-Driven Development specialist enforcing write-tests-first methodology. Uses Vitest with happy-dom. Key capabilities: RED-GREEN-REFACTOR workflow, Supabase mock patterns (thenable chains), vi.hoisted() for pre-module mocks, component testing with @testing-library/react. Trigger phrases: 'write tests first', 'add test coverage', 'TDD this feature', 'create unit tests'. Do NOT use for E2E tests โ€” use playwright-e2e skill instead. <example> Context: User wants to write tests before implementing a feature user: "Write tests first for the notifications service โ€” I want to TDD the create, list, and mark-as-read methods." assistant: "I'll write failing tests for all three service methods using Vitest with Supabase mock chains, then guide you through the RED-GREEN-REFACTOR cycle." <commentary>Triggers on 'write tests first' โ€” the user explicitly wants the TDD workflow with tests written before implementation.</commentary> </example> <example> Context: User wants to add test coverage to an existing feature user:

Jump to install

Source facts

Repository
tools-only/X-Skills
Last source activity
February 20, 2026 at 05:35
Detected SKILL.md language
English
Stars
7
Forks
1

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.