theam/claude-dev-kit/coverage-check
Claude Code and agent skill by theam/claude-dev-kit
- community
Checking that the SKILL.md file is still in the repository.
Run the repo's unit tests with coverage and verify that every file touched in the current change keeps line, branch, and function coverage at or above 95%. Language- and framework-agnostic. Use before committing, before PR creation, or when the user asks about coverage.
Install
npx vskill@latest install theam/claude-dev-kit/coverage-checkSKILL.md
Coverage Check
Enforce the team's coverage gate: every touched file must stay ≥ 95% (line, branch, function). This skill is stack-agnostic — it runs whatever the consuming repo declares and parses whatever standard report the run produces.
1. Find the touched files
git diff --name-only against the base branch, plus staged and unstaged changes. Exclude, by convention: generated/vendored code, database migrations, and the test files themselves. Group the remaining files by the module/project they belong to so you can run the narrowest useful test set first.
2. Determine the coverage command(s)
In order of preference:
- Declared in config — read
.claude/dev-kit.json(test.coverageCommands) and the consuming repo'sCLAUDE.md. If a command is declared, use it verbatim. - Declared by the repo's tooling — a
test:coveragescript inpackage.json, aMakefile/Taskfiletarget, acoveragetask in the build file. - From the stack profile — if
.claude/dev-kit.jsonhasstacks(or you detect one), readinstructions/stacks/<id>.mdfor the stack's coverage command, report path, and format, plus any prerequisite (e.g. PHP needs Xdebug/PCOV; without it, report that rather than 0%). - Detected from the stack — infer from the project files present, e.g.:
| Stack signal | Typical coverage command | Report produced | |
|---|---|---|---|
*.csproj / *.sln | dotnet test --collect:"XPlat Code Coverage" | Cobertura XML | |
package.json (jest/vitest) | npm test -- --coverage | lcov / json-summary | |
angular.json | ng test --watch=false --code-coverage | lcov | |
pom.xml / build.gradle | mvn test / gradle test jacocoTestReport | JaCoCo XML | |
pyproject.toml / setup.py | pytest --cov --cov-report=xml | coverage.py XML | |
go.mod | go test ./... -coverprofile=cover.out | Go coverprofile | |
Cargo.toml | cargo llvm-cov --lcov | lcov |
A monorepo may need several commands (one per language/area). Run each and merge the per-file results.
If you detect the command by inference (not from config), offer to persist it to .claude/dev-kit.json under test.coverageCommands so the next run is deterministic.
3. Run and parse
Run the command(s), then parse the produced report for per-file line/branch/function metrics. Handle the common formats: Cobertura XML, lcov (`lcov.info`), JaCoCo XML, coverage.py XML, Go coverprofile, and json-summary. Map each report path back to the touched source files from step 1.
4. Verdict
Report a table, worst offenders first:
- The bar is the project's own (adaptive — see
instructions/testing-standards.md). Use the project's configured threshold orgates.coverage.minin.claude/dev-kit.json; default ≥ 95% when none is set. Also FAIL on a regression (a touched file dropping below its pre-change coverage) even if it's above the bar. - N/A, not FAIL, when the project has no test/coverage setup. If there is no test suite or coverage tooling, report
NOT APPLICABLE — no coverage setupwith a recommendation to add tests (and offer to set it up) — do not invent a failure or a number. Only enforce a hard gate whengates.coverageisrequired. - FAIL (when the gate applies) if any touched file is below the bar or regresses; list the uncovered lines/branches and propose the specific missing test cases, and don't mark work complete / open a PR while it fails.
- If tests themselves fail, report the failures verbatim — never report coverage from a failing run as authoritative.
- If a metric is genuinely unavailable for a stack (e.g. a runner reports no branch coverage), state that plainly rather than reporting a fabricated number.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/coverage-check/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/theam/claude-dev-kit/coverage-check)