From havn
Use when adding tests to existing untested code, improving coverage for a module, or backfilling test gaps before a refactor. Triggers on "add tests", "improve coverage", "write tests for", "backfill tests".
How this skill is triggered — by the user, by Claude, or both
Slash command
/havn:add-test-coverageThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Test existing contracts. Focus on what the code does for consumers, not how it works internally.
Test existing contracts. Focus on what the code does for consumers, not how it works internally.
Read the module's public interface: exports, function signatures, return types. These are the contracts to test. Skip internal helpers unless they encode critical business logic.
For each contract:
Name each test by the behavior it verifies, not the function it calls.
Run tests with coverage using the project's coverage command (check project CLAUDE.md). Compare per-file coverage before and after. Every new test should increase coverage for the target module.
npx claudepluginhub phibkro/vevx --plugin havnGuides coverage-driven test writing for existing codebases: discovers untested user-facing behavior via coverage reports, writes one meaningful test per iteration, marks low-value code with ignore annotations.
Discovers testing gaps and generates unit tests that follow project conventions. Conservative — only adds new test files, never refactors source code. Use when coverage is low or after adding new code lacking tests.