configure-coverage
БесплатноБез исполняемых скриптовНе проверенCode coverage: thresholds and reporters for Vitest, Jest, pytest, Rust. Use when setting thresholds, adding Codecov/Coveralls, or wiring lcov/HTML reports.
от laurigates★ 61 звезда на GitHubОб этом скилле
/configure:coverage
Check and configure code coverage thresholds and reporting for test frameworks.
When to Use This Skill
| Use this skill when... | Use another approach when... |
|---|---|
| Setting up coverage thresholds for Vitest, Jest, pytest, or Rust | Running tests with coverage (/test:full) |
| 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) |
Context
- Project root: !
pwd - Package files: !
find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' \) - Vitest config: !
find . -maxdepth 1 -name 'vitest.config.*' - Jest config: !
find . -maxdepth 1 -name 'jest.config.*' - Coverage dir: !
find . -maxdepth 1 -type d -name 'coverage' - Codecov config: !
find . -maxdepth 1 \( -name 'codecov.yml' -o -name '.codecov.yml' \) - Project standards: !
find . -maxdepth 1 -name '.project-standards.yaml'
Parameters
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:
@vitest/coverage-v8or@vitest/coverage-istanbul - Jest: Built-in coverage with
--coverage - pytest:
pytest-covplugin - Rust:
cargo-llvm-covorcargo-tarpaulin
Execution
Execute this code coverage compliance check:
Step 1: Detect test framework and coverage configuration
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.
Step 2: Analyze current coverage state
For the detected framework, check configuration completeness:
Vitest:
- Coverage provider configured (
v8oristanbul) - Coverage reporters configured (
text,json,html,lcov) - Thresholds set for lines, functions, branches, statements
- Exclusions configured (node_modules, dist, tests, config files)
- Output directory specified
Jest:
-
collectCoverageenabled -
coverageProviderset (v8orbabel) -
collectCoverageFrompatterns configured -
coverageThresholdsconfigured -
coverageReportersconfigured
pytest:
-
pytest-covinstalled -
[tool.coverage.run]section exists -
[tool.coverage.report]section exists - Coverage threshold configured (
--cov-fail-under)
Rust (cargo-llvm-cov):
-
cargo-llvm-covinstalled - Coverage configuration in workspace
- HTML/LCOV output configured
Step 3: Generate compliance report
Print 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.
Step 4: Configure coverage (if --fix or user confirms)
Apply coverage configuration based on detected framework. Use templates from REFERENCE.md:
- Install coverage provider (e.g.,
@vitest/coverage-v8,pytest-cov) - Update config file with thresholds, reporters, exclusions
- Add scripts to package.json or pyproject.toml
- Configure CI/CD with Codecov upload and artifact storage
Step 5: Update standards tracking
Update .project-standards.yaml:
standards_version: "2025.1"
last_configu
Установить configure-coverage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
GlobGrepReadWriteEditBash(find *)Bash(npm install *)Bash(uv add *)AskUserQuestionTodoWriteWebSearchWebFetchВложенные файлы
FAQ
Что делает скилл configure-coverage?
Code coverage: thresholds and reporters for Vitest, Jest, pytest, Rust. Use when setting thresholds, adding Codecov/Coveralls, or wiring lcov/HTML reports.
Как установить скилл configure-coverage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл configure-coverage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic