Analyzes test coverage and helps implement missing tests for Python projects.
Install
mkdir -p .claude/skills/test-coverage-improver && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3415" && unzip -o skill.zip -d .claude/skills/test-coverage-improver && rm skill.zipInstalls to .claude/skills/test-coverage-improver
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.
Improve test coverage in the OpenAI Agents Python repository: run `make coverage`, inspect coverage artifacts, identify low-coverage files, propose high-impact tests, and confirm with the user before writing tests.Key capabilities
- →Runs code coverage suites
- →Generates coverage XML and HTML artifacts
- →Identifies low-coverage files and lines
- →Proposes targeted test scenarios
- →Verifies coverage improvements after implementation
How it works
It uses the `make coverage` command to collect execution data, analyzes the output for gaps, and proposes incremental test additions.
Inputs & outputs
When to use test-coverage-improver
- →Identify low-coverage files in Python repo
- →Generate test coverage HTML reports
- →Implement missing tests for public APIs
About this skill
Test Coverage Improver
Use current coverage evidence to identify missing caller-visible behavior tests. Select this workflow for coverage measurement, coverage-metric regressions, or finding gaps from coverage artifacts. When the user already specifies the behaviors to test, use the ordinary implementation/review workflow without coverage measurement unless measurement is also requested. Adding tests alone does not trigger this skill or its final make coverage step.
Scope and authorization
For assessment or proposal-only requests, report gaps and suggested tests without editing. When the user requests test improvements or has approved a plan, implement the scoped tests and complete review and verification without asking again. Ask only when a new contract decision, expanded scope, or additional authority is needed. Coverage work never authorizes live API calls or broader sandbox access.
Workflow
- Inspect current
.coverage,coverage.xml, and any recorded command/environment evidence. Reuse them only when they represent the relevant source and test state. If missing or stale, runmake coverageunder the repository's verification sandbox and credential policy; this initial measurement precedes implementation review. Respect host-capacity guidance before broad measurement. - Identify uncovered behavior within the requested scope. Prioritize public behavior and meaningful error, cancellation, and lifecycle paths over percentage-only targets. Use
uv run coverage report -morcoverage.xmlto locate gaps. - For an assessment, report evidence and proposed scenarios. For authorized implementation, choose tests with independent expected results at the highest controllable caller boundary. Do not add tests that merely reproduce helper logic or enumerate unsupported permutations.
- Implement tests, run affected checks, and complete
$implementation-final-review. Keep iterative verification focused; do not repeatedly run full coverage while review is incomplete. - After clean review, run
make coveragefor the final measurement and$code-change-verificationfor the required SDK gates. These have different purposes; reuse an already valid final measurement rather than repeating it. Report coverage changes, verified behaviors, and material gaps that remain.
Reporting
State the scope and age of coverage evidence, the behavior each new test protects, validation results, and unresolved gaps. Keep comments and code in English. Do not treat coverage percentages alone as proof of correctness.
When not to use it
- →Non-Python projects
- →When the user has provided specific test logic
- →Projects where coverage thresholds are not defined
Prerequisites
Limitations
- →Does not replace human intuition for edge case design
- →Dependent on valid 'make' configuration
- →May require manual approval for each test proposal
How it compares
It focuses on high-impact code paths rather than simple quantity of tests.
Compared to similar skills
test-coverage-improver side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| test-coverage-improver (this skill) | 1 | 6mo | No flags | Intermediate |
| adk-engineer | 3 | 2mo | Review | Advanced |
| unit-testing-test-generate | 2 | 5mo | Review | Intermediate |
| playwright-roll | 2 | 3mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by openai
View all by openai →You might also like
adk-engineer
jeremylongshore
Execute software engineer specializing in creating production-ready ADK agents with best practices, code structure, testing, and deployment automation. Use when asked to "build ADK agent", "create agent code", or "engineer ADK application". Trigger with relevant phrases based on skill purpose.
unit-testing-test-generate
sickn33
Generate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus.
playwright-roll
microsoft
Roll Playwright Python to a new version
api-test-generator
mikopbx
Генерация полных Python pytest тестов для REST API эндпоинтов с валидацией схемы. Использовать при создании тестов для новых эндпоинтов, добавлении покрытия для CRUD операций или валидации соответствия API с OpenAPI схемами.
designing-tests
CloudAI-X
Designs and implements testing strategies for any codebase. Use when adding tests, improving coverage, setting up testing infrastructure, debugging test failures, or when asked about unit tests, integration tests, or E2E testing.
async-repl-protocol
parcadei
Async REPL Protocol