coverage
SKILL.md
Coverage Check
Context
Run in parallel:
git diff --name-only- get unstaged filesgit diff -U0 --no-color- get changed line numbers
Commands
Sequential:
npm run test:ci- vitest with coveragenpm run coverage:report- generate lcov/text reports
Workflow
- Get unstaged files and line ranges (parallel):
git diff --name-onlygit diff -U0 --no-color
- Run coverage:
npm run test:cinpm run coverage:report
- Save diff to a temp file, then run:
See lcov-format.md for lcov format details.git diff -U0 --no-color > /tmp/changes.diff python3 scripts/parse-lcov.py --lcov coverage/lcov.info --diff /tmp/changes.diff - Report uncovered lines from stdout:
file.ts:42 - Summary from stderr: X/Y changed lines covered
Rules
- Only analyze unstaged changes (
git diff) - Use sequential commands:
test:cithencoverage:report - Use
scripts/parse-lcov.pyto parse lcov data and map to changed lines - Report uncovered lines:
file.ts:42 - Ignore files without coverage data (non-code files)
Error Handling
- If
npm run test:cifails → report test failures and stop; coverage cannot be generated with failing tests - If
coverage/lcov.infonot found after test run → verifycoverage.reporterincludeslcovin the test runner config - If
git diffreturns no changes → report no unstaged changes to check
Weekly Installs
14
Repository
helderberto/skillsFirst Seen
Feb 13, 2026
Security Audits
Installed on
claude-code14
codex14
gemini-cli14
opencode14
trae-cn13
iflow-cli13