test-coverage-improver
Installation
SKILL.md
Test Coverage Improver
Overview
Use this skill whenever coverage needs assessment or improvement (coverage regressions, failing thresholds, or user requests for stronger tests). It runs the coverage suite, analyzes results, highlights the biggest gaps, and prepares test additions while confirming with the user before changing code.
Quick Start
- From the repo root run
pnpm test:coverage(setCI=1if needed) to regeneratecoverage/. - Collect artifacts:
coverage/coverage-summary.json(preferred) orcoverage/coverage-final.json, pluscoverage/lcov.infoandcoverage/lcov-report/index.htmlfor drill-downs. - Summarize coverage: total percentages, lowest files, branches under 80%, and uncovered lines/paths.
- Draft test ideas per file: scenario, behavior under test, expected outcome, and likely coverage gain.
- Ask the user for approval to implement the proposed tests; pause until they agree.
- After approval, write the tests in the relevant package, rerun
pnpm test:coverage, and then run$code-change-verificationbefore marking work complete.