Agent skill
coverage
Check test coverage for unstaged changes. Use when user asks to "check coverage", "/coverage", or wants to see which unstaged changes lack test coverage.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/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
- Parse
coverage/lcov.info(seelcov-format.mdfor format details) - Map changed lines to coverage data
- Report uncovered lines:
file.ts:42 - Summary: X/Y changed lines covered
Rules
- Only analyze unstaged changes (
git diff) - Use sequential commands:
test:cithencoverage:report - Parse lcov.info for coverage data
- Report uncovered lines:
file.ts:42 - Ignore files without coverage data (non-code files)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?