Run coverage
Use when a ticket or acceptance criterion sets a coverage threshold or asks to raise coverage on a unit, and you need to measure and evidence it. Invoke for "coverage must stay above N%", "report the coverage delta", or "prove the new code is covered".From its SKILL.md
npx -y skills add tmj-90/gaffer --skill run-coverageAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.6 KB, 310 tokens by cl100k_base, as published. Nobody here has run it
Measure coverage
Run the repo's coverage tool, read the real number, and evidence the result or delta. Do not chase a number with hollow tests.
Steps
- Find the coverage command from the context packet (e.g.
pnpm test --coverage,pytest --cov,go test -cover ./...,mvn jacoco:report). If silent, detect the configured tool from the manifest. - Run it and capture the exact command plus the overall percentage and, where the ticket names a unit, that file's/module's coverage.
- Compare against the threshold in the ticket/AC. If it falls short, add or extend
tests for the genuinely uncovered branches (use the
add-unit-testskill) — cover real behaviour, not lines for their own sake. - Re-run to capture the new figure. Note the before→after delta if the ticket asks for an improvement.
- Evidence: the command, the percentage (and delta). Then use the
record-evidenceskill to recordcoverage_reportagainst the AC and submit for review.
Rules
- Report the true figure from a run in this session — never estimate coverage.
- Don't write assertion-free tests just to lift the number.
- Match the repo's coverage tooling and existing thresholds.
- Run on a branch (the
create-branchskill), never a protected branch.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.