check-coverage

Automates pytest coverage checks and guides gap remediation to enforce a minimum threshold.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/JetBrains/databao-cli --skill check-coverage-jetbrains
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-coverage
Source: https://github.com/JetBrains/databao-cli/tree/main/.claude/skills/check-coverage
Command: npx skills add https://github.com/JetBrains/databao-cli --skill check-coverage-jetbrains

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the process of measuring test coverage, identifying gaps, and guiding fixes to raise coverage above a defined threshold.

Core Features & Use Cases

  • Run coverage checks locally or in CI, analyze the report, and prioritize tests that improve coverage on critical paths.
  • Enforce a minimum coverage threshold (e.g., 80%) and re-run tests until the target is met.
  • Useful for ensuring code health during refactors, feature updates, or onboarding new contributors.

Quick Start

Run the coverage check and fix gaps until the 80% threshold is met.

Frequently Asked Questions about check-coverage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce a minimum pytest coverage threshold in a CI/CD pipeline?

To enforce a minimum pytest coverage threshold, the Skill automates test-coverage evaluation and gap remediation, failing the build until the defined percentage target is met. It prioritizes fixes on critical paths to ensure code health during CI/CD pipelines or local development.

What's the best way to identify and fix test coverage gaps efficiently?

The best way to fix test coverage gaps is to run automated coverage checks that analyze the report and prioritize tests improving coverage on critical paths. The Skill guides fixes by detecting shortfalls and validating improvements until the target threshold is reached.

Do I need pytest-cov and a Makefile target to run coverage checks?

Yes, you need pytest, pytest-cov, and a Makefile target such as make test-cov-check to reproduce and validate improvements. These dependencies are required for the Skill to measure coverage, identify gaps, and enforce the minimum threshold locally or in CI.

How does automated test coverage evaluation work during refactoring?

Automated test coverage evaluation works by running tests, analyzing the coverage report, and detecting shortfalls to guide fixes. During refactors or feature updates, it prioritizes tests that improve coverage on critical paths and enforces a minimum threshold to maintain code health.

Can I use this to enforce quality assurance thresholds for new contributors?

Yes, you can use this to enforce quality assurance thresholds for new contributors by setting a minimum coverage percentage like 80%. The Skill automates test-coverage evaluation and gap remediation, ensuring code health during onboarding by re-running tests until the target is met.

Why does my test coverage check fail to detect gaps on critical paths?

Your test coverage check may fail to detect gaps if the minimum threshold is not properly configured or the Makefile target is missing. The Skill requires pytest and pytest-cov to analyze the report, prioritize critical path fixes, and validate improvements until the target is met.