CO

codecov-coverage

Tool to fetch and report test coverage data from Codecov specifically for LinkML projects.

Install

mkdir -p .claude/skills/codecov-coverage && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2852" && unzip -o skill.zip -d .claude/skills/codecov-coverage && rm skill.zip

Installs to .claude/skills/codecov-coverage

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Fetch and analyze code coverage from Codecov API for the linkml project. Use when checking coverage before making a PR, analyzing coverage changes, or finding low-coverage files.
178 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Fetch overall coverage percentage from Codecov
  • Retrieve detailed line, hit, and miss counts
  • Generate per-file coverage reports
  • Identify low-coverage modules for testing

How it works

It queries the Codecov API to bypass local environment limitations caused by the project's src layout and workspace configuration.

Inputs & outputs

You give it
Repository branch or report endpoint
You get back
Coverage percentage or JSON report data

When to use codecov-coverage

  • Check coverage before PR
  • Identify low-coverage modules
  • Monitor test metrics

About this skill

Codecov Coverage Skill

Fetch and analyze code coverage data from Codecov for the LinkML project.

When to Use This Skill

  • Before creating a PR: check that coverage won't decrease
  • When adding new code: identify if new files need tests
  • When asked about test coverage or low-coverage areas

Coverage Expectations

PRs must not decrease coverage. The CI will flag coverage decreases.

When adding new code:

  • New modules should target >80% coverage
  • New public functions need at least one test

How to Check Coverage

Quick overall percentage

Use WebFetch on:

https://codecov.io/gh/linkml/linkml/branch/main/graph/badge.txt

Returns plain text like "80%"

Detailed totals (lines, hits, misses)

Use WebFetch on:

https://api.codecov.io/api/v2/github/linkml/repos/linkml/totals

Returns JSON with files count, lines, hits, misses, coverage percentage

File-level coverage report

Use WebFetch on:

https://api.codecov.io/api/v2/github/linkml/repos/linkml/report

Returns per-file coverage data - useful for finding low-coverage files

Why Local Coverage Fails

The UV workspace + src layout breaks local coverage. The .coveragerc specifies source = linkml but packages live at packages/linkml/src/linkml/. Use the Codecov API instead.

Known Low-Coverage Areas

These areas currently have low coverage and may need tests:

  • generators/rustgen/ - experimental
  • generators/dotgen.py - ~47%
  • converter/cli.py - ~53%
  • workspaces/ - minimal coverage

When not to use it

  • When relying on local coverage reports in UV workspaces

Prerequisites

Codecov API access

Limitations

  • Cannot use local coverage tools due to workspace layout
  • Requires internet access to Codecov API

How it compares

It provides reliable coverage metrics via API instead of attempting to run local coverage tools that fail in the current workspace structure.

Compared to similar skills

codecov-coverage side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
codecov-coverage (this skill)28moNo flagsBeginner
python-testing-patterns772moReviewIntermediate
pr-review62moReviewIntermediate
pytest87moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry