test-writer
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- Write unit tests for functions, classes, or modules
- Create integration tests for API endpoints or database interactions
- Build end-to-end tests for user workflows
- Add test coverage for edge cases and error paths
- Set up a testing framework (pytest, Jest, JUnit, Vitest, Playwright)
- Generate test fixtures and mock data
How to use this skill
Workflow
- Identify the code under test - Read the function/class/module to understand its behavior
- Choose the test type - Unit (isolated), integration (multi-component), or E2E (full flow)
- Write tests using AAA pattern - Arrange inputs, Act on the function, Assert expected results
- Cover edge cases - Empty inputs, boundary values, error conditions, concurrent access