- Home
- Skills
- Testing & Debugging
- Coverage Gaps — Paste Coverage Rows, Get Files Under Target
Coverage Gaps — Paste Coverage Rows, Get Files Under Target
Calculate line coverage percentages and target gaps from supplied file rows, with optional branch comparisons and row-numbered unreadable entries. The tool does not inspect test contents or judge adequacy.
$5
Works with the AI Agents you already use
Coverage Gaps — Paste Coverage Rows, Get Files Under Target
Example session with this skill installed
file,line_covered,line_total,branch_covered,branch_total
src/ready.py,90,100,18,20
src/lines-low.py,60,100,16,20
src/branch-low.py,95,100,12,20
- Read your context and instructions
- Compiled the coverage gaps
Coverage Gaps Results
Target: 80.00%
| File | Line coverage | Line gap (pp) | Under target? | Shortfall type | Branch coverage | Branch gap (pp) | Line/branch gap (pp) | Large gap? |
|---|---|---|---|---|---|---|---|---|
| src/branch-low.py | 95.00% | 0.00 | yes | branch | 60.00 | 20.00 | 35.00 | yes |
| src/lines-low.py | 60.00% | 20.00 | yes | line | 80.00 | 0.00 | 20.00 | yes |
| src/ready.py | 90.00% | 0.00 | no | n/a | 90.00 | 0.00 | 0.00 | no |
Files under target
- src/branch-low.py: branch shortfall 20.00 percentage points
- src/lines-low.py: line shortfall 20.00 percentage points
Unreadable rows
- None
Method
- Coverage % = covered / total * 100; gap = max(0, target - coverage).
- Line/branch gap is the absolute difference in supplied percentages; it is not a test-quality judgment.
Only supplied counts are used; no source files or test contents are inspected.
Connects securely to your tools. The creator never sees your data.
About this skill
Paste a coverage table and a target percentage. Coverage Gaps returns the files below the target, ranked by shortfall, plus rows with a large gap between line and branch coverage. Percentages are calculated from the counts you provide: coverage = covered / total * 100, and a gap is max(0, target - coverage) in percentage points.
Required columns are file, line_covered and line_total; branch_covered and branch_total are optional (a 0/0 branch pair is shown as n/a). Malformed rows are reported as unreadable with their physical row number and are never silently skipped.
How to use: run python3 scripts/coverage_gaps.py examples/coverage.csv --target 80 --format markdown on a UTF-8 CSV or TSV. Options: --gap-threshold (default 10 percentage points), --format text|markdown|json|csv, --delimiter auto|comma|tab, --sort gap|file|input, --under-target-only, --large-gap-only, --limit N, and --output PATH (creates a new file and refuses existing paths). Requires Python 3.9 or later; standard library only.
Limits: the tool uses only the supplied counts and file labels. It does not open source files, inspect test contents, or check how coverage was collected, and a percentage or gap does not establish whether a test suite is adequate. BOM-less UTF-16 is unsupported.
Included: README, SKILL.md, the script, tests, and examples with the expected output.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.
The tool uses only the supplied counts and file labels. It does not inspect source files, test cases, or how coverage was collected, and a percentage or gap does not establish whether a test suite is adequate. BOM-less UTF-16 input is unsupported.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 7 days ago
- Software
Python 3.9+