test-coverage-improver
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
make coverageto regenerate.coveragedata andcoverage.xml. - Collect artifacts:
.coverageandcoverage.xml, plus the console output fromcoverage report -mfor drill-downs. - Summarize coverage: total percentages, lowest files, 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
tests/, rerunmake coverage, and then run$code-change-verificationbefore marking work complete.