/fullstack-dev-kit:coverage-checkfrom fullstack-dev-kit
Runs unit tests with coverage and verifies every file in the current diff meets 95% line, branch, and function coverage. Language- and framework-agnostic, parses Cobertura, lcov, JaCoCo, coverage.py, Go coverprofile, json-summary.
Ships in fullstack-dev-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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.
In order of preference:
Declared in config — read .claude/dev-kit.json (test.coverageCommands) and the consuming repo's CLAUDE.md. If a command is declared, use it verbatim.
Declared by the repo's tooling — a test:coverage script in package.json, a Makefile/Taskfile target, a coverage task in the build file.
From the stack profile — if .claude/dev-kit.json has stacks (or you detect one), read instructions/stacks/<id>.md for 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.
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.
Report a table, worst offenders first:
| File | Lines | Branches | Functions | Verdict |
|------|-------|----------|-----------|---------|
| src/payments/payment_service.<ext> | 97.2% | 95.0% | 100% | PASS |
| src/payments/payment-list.component.<ext> | 88.4% | 71.0% | 90.0% | FAIL |
instructions/testing-standards.md). Use the project's configured threshold or gates.coverage.min in .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.NOT APPLICABLE — no coverage setup with a recommendation to add tests (and offer to set it up) — do not invent a failure or a number. Only enforce a hard gate when gates.coverage is required.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub theam/claude-dev-kit --plugin fullstack-dev-kit13 skills in this plugin
/create-prCreate a branch, commit the work, and open a pull request for a completed user story, after all quality gates pass. Use when the user asks to open/create a PR or as the final step of the story workflow./delegate-backlogDelegate an approved backlog to the configured async provider so several stories are worked in parallel — one branch and PR per issue — then re-apply the kit's quality via pr-review/fix-pr. The provider is delegation.provider in the kit config (github-copilot or self-hosted-action). Verifies that provider (never fabricates a trigger, never falls through to the other one) and never auto-merges. Use when a PO/dev wants to fan a backlog out to an async agent./dev-kit-setupOther plugins' skills for the same job