fix-codecov-gaps

fix-codecov-gaps is a skill for Claude Code from Anselmoo/mcp-ai-agent-guidelines. It costs 87 tokens per session (1,114 once invoked), scanned A, original, MIT.

A procedure for fixing missing test coverage on the lines changed in a pull request, as reported by Codecov, a service that checks how much code tests exercise.

In plain words
What is it for?
Use it to read Codecov's pull-request report, find uncovered changed lines in each file, compare them with the code diff, and add or adjust tests.
Why use it?
It helps address uncovered or partly covered new code when a pull request falls below the project's coverage threshold or coverage gets worse.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to read Codecov's pull-request report, find uncovered changed lines in each file, compare them with the code diff, and add or adjust tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anselmoo/mcp-ai-agent-guidelines/fix-codecov-gaps
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Anselmoo/mcp-ai-agent-guidelines --skill fix-codecov-gaps
Clone the repo
git clone --depth 1 https://github.com/Anselmoo/mcp-ai-agent-guidelines

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-codecov-gaps

README.md
[![agentmods](https://agentmods.dev/badge/skills/anselmoo/mcp-ai-agent-guidelines/fix-codecov-gaps/github.svg)](https://agentmods.dev/skills/anselmoo/mcp-ai-agent-guidelines/fix-codecov-gaps)
Your own site
<a href="https://agentmods.dev/skills/anselmoo/mcp-ai-agent-guidelines/fix-codecov-gaps"><img src="https://agentmods.dev/badge/skills/anselmoo/mcp-ai-agent-guidelines/fix-codecov-gaps/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-codecov-gaps

Your own site · 80×15
<a href="https://agentmods.dev/skills/anselmoo/mcp-ai-agent-guidelines/fix-codecov-gaps"><img src="https://agentmods.dev/badge/skills/anselmoo/mcp-ai-agent-guidelines/fix-codecov-gaps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,114 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.01114
Opus 5 $0.00044 $0.00557
Sonnet 5 $0.00017 $0.00223
Haiku 4.5 $0.00009 $0.00111

Measured 10d ago against content hash 54bcffd37b72, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

fix-codecov-gaps scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/fix-codecov-gaps/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fix Codecov Coverage Gaps

Restores or improves patch coverage after Codecov flags missing/partial lines in a pull request.

When to Use

  • Codecov bot posts a report showing patch coverage below the project baseline
  • A PR introduces new lines without accompanying tests
  • Coverage regresses (Misses or Partials increase vs. base)

Procedure

1. Fetch the Codecov Report

Use mcp_github_pull_request_read with method: get_comments to read PR comments, then locate the comment from codecov[bot]. Extract:

  • Patch coverage % (overall for this PR's changed lines)
  • Files with missing lines — collect the file path, patch %, missing count, and partial count for each row in the table
  • Coverage diff summary — Hits Δ, Misses Δ, Partials Δ vs. base
Example output to parse:
| src/cli.ts          | 80.30% | 12 Missing + 1 partial |
| src/onboarding/wizard.ts | 83.33% | 0 Missing + 5 partials |

2. Identify Uncovered Lines Per File

For each file listed in the Codecov report:

  1. Open the file and read its contents
  2. Cross-reference the diff (mcp_github_pull_request_read with method: get_diff) to pinpoint which new/changed lines are uncovered
  3. Classify each gap:
    • Missing line — the line was never executed in any test
    • Partial branch — the line ran but not all branches (e.g. both sides of a ternary or ??)

Priority order: tackle files with the most missing lines first. Partials are secondary.

3. Write Targeted Tests

For each uncovered line or partial branch, add or extend a test in src/tests/<mirrored-path>/<module>.test.ts:

  • Missing line (error path / guard clause): Write a test that triggers the error condition or the early-return branch
  • Missing line (happy path): Write a test that calls the function with valid input that exercises that code path
  • Partial branch (ternary / ?? / &&): Add a test case that exercises the other side of the branch

Rules:

  • Mirror the source tree: src/cli.tssrc/tests/cli/cli.test.ts
  • Use vi.fn() / vi.spyOn() for side effects; never mutate module state across tests
  • Each new it() block must contain at least one expect()
  • Do not use /* c8 ignore */ to hide the gap — fix the root cause

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 112 lines · 87 tokens per session scan A 54bcffd37b72

Subscribe to this mod's changes

fix-codecov-gaps is a skill published in the GitHub repository Anselmoo/mcp-ai-agent-guidelines (6 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 1,114 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.