resolve-codecov-feedback

Processes Codecov PR coverage reports and delegates test creation to close coverage gaps.

Updated Nov 2, 2025
One-click install
npx skills add https://github.com/fx/skills --skill resolve-codecov-feedback-fx
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: resolve-codecov-feedback
Source: https://github.com/fx/skills/tree/main/skills/resolve-codecov-feedback
Command: npx skills add https://github.com/fx/skills --skill resolve-codecov-feedback-fx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Pull requests often fail coverage requirements because new or changed lines lack tests, and Codecov's CI status alone does not reveal which lines are uncovered. This Skill reads the full Codecov report on a PR, identifies the exact uncovered lines, and coordinates test creation so the PR meets the project's patch coverage requirement. ## Core Features & Use Cases - Multi-source coverage collection: Gathers data from Codecov commit statuses (codecov/patch, codecov/project), the codecov[bot] PR comment, and line-level review comments via the GitHub API. - Accurate gap assessment: Trusts the PR comment's patch coverage percentage over CI status, and reads the project's coverage requirement from AGENTS.md or CLAUDE.md, defaulting to 100% patch coverage. - Delegated test creation: Launches a coder sub-agent to write tests for uncovered lines following existing test patterns, then verifies the updated Codecov report after CI re-runs. - Use Case: A PR shows codecov/patch passing at 86% but the project requires 100%. The Skill parses the codecov[bot] comment, finds 13 missing lines across two files, delegates targeted tests, and confirms coverage reaches the threshold. ## Quick Start Check the Codecov report on my current pull request and add tests for any uncovered lines.

Frequently Asked Questions about resolve-codecov-feedback

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

FAQPage Schema
How do I fix Codecov patch coverage failures on a pull request?▼

Read the codecov[bot] PR comment to find the patch coverage percentage and files with missing lines, then write tests that exercise those specific changed lines. This Skill automates that flow by collecting the report data and delegating test creation to a coder sub-agent.

Why does codecov/patch pass in CI but coverage is still inadequate?▼

The codecov/patch CI check may be configured with a lower threshold than the project actually requires, such as 80% instead of 100%. Always read the codecov[bot] PR comment for the real patch coverage percentage rather than trusting the CI status alone.

How does the skill determine the required coverage threshold?▼

It checks the project's AGENTS.md for a documented patch coverage target, falling back to the repo-root CLAUDE.md when AGENTS.md is absent. Only if neither file specifies a requirement does it default to 100% patch coverage.

What happens if Codecov is not configured for the repository?▼

The Skill checks for a .codecov.yml or codecov.yml file and whether CI uploads coverage via codecov/codecov-action. If no Codecov data exists on the PR, it reports that Codecov is not configured and exits cleanly without error.

What if some uncovered lines cannot reasonably be tested?▼

Lines such as error handlers or platform-specific branches may be intentionally untestable. The Skill documents which lines remain uncovered and why, reports them for a manual decision, and does not add meaningless tests just to hit a number.