What problem does it solve?
Audit test coverage for a stage or file by reading branches, identify gaps, write missing tests, and verify all tests pass. Use this skill whenever the user wants to add tests, check coverage, fill test gaps, or ensure a file is properly tested. Triggers on: "write tests", "add tests", "fill test gaps", "check coverage", "make sure this is tested", "tests are missing", or any request to improve test coverage for a specific file or stage.
Core Features & Use Cases
- Read the source, map every branch to an existing test, identify coverage gaps, and generate missing tests that exercise decision points and edge cases.
- Verify that all tests pass after the newly added tests are written, and provide actionable feedback to improve coverage beyond the happy path.
- Use Case: When a project notices flaky tests or uncovered branches in critical modules, run this skill to systematically increase meaningful branch coverage.
Quick Start
Run the write-tests skill against a codebase to audit coverage and generate missing tests, then run the test suite to verify all tests pass.