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.zipInstalls 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.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
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/- experimentalgenerators/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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| codecov-coverage (this skill) | 2 | 8mo | No flags | Beginner |
| python-testing-patterns | 77 | 2mo | Review | Intermediate |
| pr-review | 6 | 2mo | Review | Intermediate |
| pytest | 8 | 7mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
pr-review
pytorch
Review PyTorch pull requests for code quality, test coverage, security, and backward compatibility. Use when reviewing PRs, when asked to review code changes, or when the user mentions "review PR", "code review", or "check this PR".
pytest
prowler-cloud
Pytest testing patterns for Python. Trigger: When writing or refactoring pytest tests (fixtures, mocking, parametrize, markers). For Prowler-specific API/SDK testing conventions, also use prowler-test-api or prowler-test-sdk.
code-change-verification
openai
Run the mandatory verification stack when changes affect runtime code, tests, or build/test behavior in the OpenAI Agents Python repository.
django-verification
affaan-m
Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.
python
alinaqi
Python development with ruff, mypy, pytest - TDD and type safety