test-writing
Installation
SKILL.md
1. Trigger Conditions
Invoke this skill when:
/testslash command is issued- A new slice is started in
incremental-implementation(write the test first) - Phase 5 of
/build-feature(quality gate — test coverage check) - User says "write tests", "add test coverage", or "this needs tests"
- A bug is fixed and a regression test is needed
2. Prerequisites
- The feature or component to be tested exists (or its interface is defined for TDD)
- Test framework installed: Vitest (unit) or Playwright (E2E)
references/test-patterns.mdavailable
3. Steps
Execute each step in order. Do NOT skip steps or proceed if a step fails.