configure-plugin/skills/configure-coverage/SKILL.md
Code coverage: thresholds and reporters for Vitest, Jest, pytest, Rust. Use when setting thresholds, adding Codecov/Coveralls, or wiring lcov/HTML reports.
npx skillsauth add laurigates/claude-plugins configure-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.
Check and configure code coverage thresholds and reporting for test frameworks.
| Use this skill when... | Use another approach when... |
|------------------------|------------------------------|
| Setting up coverage thresholds for Vitest, Jest, pytest, or Rust | Running tests with coverage (/test:coverage) |
| Configuring coverage reporters (text, JSON, HTML, lcov) | Configuring the test framework itself (/configure:tests) |
| Adding Codecov or Coveralls integration to CI/CD | Analyzing test failures (test-runner agent) |
| Auditing coverage configuration compliance across a project | Writing individual test cases |
| Adjusting coverage threshold percentages | Configuring general CI/CD workflows (/configure:workflows) |
pwdfind . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' \)find . -maxdepth 1 -name 'vitest.config.*'find . -maxdepth 1 -name 'jest.config.*'find . -maxdepth 1 -type d -name 'coverage'find . -maxdepth 1 \( -name 'codecov.yml' -o -name '.codecov.yml' \)find . -maxdepth 1 -name '.project-standards.yaml'Parse from command arguments:
--check-only: Report compliance status without modifications (CI/CD mode)--fix: Apply fixes automatically without prompting--threshold <percentage>: Set coverage threshold (default: 80)Default threshold: 80% (lines, branches, functions, statements)
Supported frameworks:
@vitest/coverage-v8 or @vitest/coverage-istanbul--coveragepytest-cov plugincargo-llvm-cov or cargo-tarpaulinExecute this code coverage compliance check:
Check for framework indicators:
| Indicator | Framework | Coverage Tool |
|-----------|-----------|---------------|
| vitest.config.* with coverage | Vitest | @vitest/coverage-v8 |
| jest.config.* with coverage | Jest | Built-in |
| pyproject.toml [tool.coverage] | pytest | pytest-cov |
| .cargo/config.toml with coverage | Rust | cargo-llvm-cov |
Use WebSearch or WebFetch to verify latest versions of coverage tools before configuring.
For the detected framework, check configuration completeness:
Vitest:
v8 or istanbul)text, json, html, lcov)Jest:
collectCoverage enabledcoverageProvider set (v8 or babel)collectCoverageFrom patterns configuredcoverageThresholds configuredcoverageReporters configuredpytest:
pytest-cov installed[tool.coverage.run] section exists[tool.coverage.report] section exists--cov-fail-under)Rust (cargo-llvm-cov):
cargo-llvm-cov installedPrint a formatted compliance report:
Code Coverage Compliance Report
================================
Project: [name]
Framework: [Vitest 2.x | pytest 8.x | cargo-llvm-cov 0.6.x]
Coverage Configuration:
Provider @vitest/coverage-v8 [CONFIGURED | MISSING]
Reporters text, json, html, lcov [ALL | PARTIAL]
Output directory coverage/ [CONFIGURED | DEFAULT]
Exclusions node_modules, dist, tests [CONFIGURED | INCOMPLETE]
Thresholds:
Lines 80% [PASS | LOW | NOT SET]
Branches 80% [PASS | LOW | NOT SET]
Functions 80% [PASS | LOW | NOT SET]
Statements 80% [PASS | LOW | NOT SET]
CI/CD Integration:
Coverage upload codecov/coveralls [CONFIGURED | MISSING]
Artifact upload coverage reports [CONFIGURED | MISSING]
Overall: [X issues found]
If --check-only, stop here.
Apply coverage configuration based on detected framework. Use templates from REFERENCE.md:
@vitest/coverage-v8, pytest-cov)Update .project-standards.yaml:
standards_version: "2025.1"
last_configured: "[timestamp]"
components:
coverage: "2025.1"
coverage_threshold: 80
coverage_provider: "[v8|istanbul|pytest-cov|llvm-cov]"
coverage_reporters: ["text", "json", "html", "lcov"]
coverage_ci: "codecov"
Print a summary of changes applied, scripts added, and next steps for verifying coverage.
For detailed configuration templates, see REFERENCE.md.
| Context | Command |
|---------|---------|
| Quick compliance check | /configure:coverage --check-only |
| Auto-fix all issues | /configure:coverage --fix |
| Custom threshold | /configure:coverage --fix --threshold 90 |
| Check coverage config exists | find . -maxdepth 1 -name 'vitest.config.*' -o -name 'jest.config.*' 2>/dev/null |
| Verify coverage directory | test -d coverage && echo "EXISTS" |
| Flag | Description |
|------|-------------|
| --check-only | Report status without offering fixes |
| --fix | Apply all fixes automatically without prompting |
| --threshold <percentage> | Set coverage threshold (default: 80) |
# Check compliance and offer fixes
/configure:coverage
# Check only, no modifications
/configure:coverage --check-only
# Auto-fix with custom threshold
/configure:coverage --fix --threshold 90
/configure:tests first/configure:tests - Configure testing frameworks/test:coverage - Run tests with coverage/configure:all - Run all compliance checkstesting
Verify accumulated bug claims at upstream HEAD and dedup against trackers before filing issues. Use when filing upstream reports from backlogs, audit docs, or git-history findings.
documentation
Gate outward-bound text (upstream issues, docs, PR bodies) through isolated haiku fresh-reader critique before publishing. Use when an artifact must survive a reader with zero project context.
tools
Suggest improvements to SKILL.md content, descriptions, or tool config from eval results. Use when raising pass rates, fixing triggering, or iterating on a skill after evaluation.
tools
deadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches.