coverage/SKILL.md
Check test coverage for unstaged changes. Use when user asks to "check coverage", "/coverage", or wants to see which unstaged changes lack test coverage. Don't use for projects without lcov coverage output, running the full test suite without coverage, or checking coverage of already-committed changes.
npx skillsauth add helderberto/skills coverageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run in parallel:
git diff --name-only - get unstaged filesgit diff -U0 --no-color - get changed line numbersSequential:
npm run test:ci - vitest with coveragenpm run coverage:report - generate lcov/text reportsgit diff --name-onlygit diff -U0 --no-colornpm run test:cinpm run coverage:reportgit diff -U0 --no-color > /tmp/changes.diff
python3 scripts/parse-lcov.py --lcov coverage/lcov.info --diff /tmp/changes.diff
file.ts:42Parse coverage/lcov.info:
SF:src/utils/helper.ts
DA:10,1 # line 10, covered (hit 1 time)
DA:11,0 # line 11, NOT covered
DA:12,5 # line 12, covered (hit 5 times)
end_of_record
Key fields:
SF: -- source file pathDA:line,hits -- 0 = uncovered, >0 = coveredend_of_record -- end of file sectionMatch SF: paths to git diff files. For each changed line, check DA: entry. If hits is 0, report as uncovered.
| Excuse | Rebuttal | |---|---| | "Coverage doesn't guarantee quality" | True, but uncovered code guarantees zero automated verification. | | "It's just a config change" | Config changes break production too. If there's logic, check coverage. | | "100% is overkill" | Nobody asked for 100%. Check that changed lines are covered. | | "The test suite is already green" | Green suite with uncovered changes = false confidence. |
git diff)test:ci then coverage:reportscripts/parse-lcov.py to parse lcov data and map to changed linesfile.ts:42npm run test:ci fails -- report test failures and stopcoverage/lcov.info not found -- verify coverage.reporter includes lcov in test runner configgit diff returns no changes -- report no unstaged changes to checktools
Teach the user a new skill or concept, within this workspace.
documentation
Compact the current conversation into a handoff document for another agent to pick up.
testing
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
development
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill, or asks "make a skill for X".