About test-coverage-improver
A repository skill for finding and addressing gaps in caller-visible behavior tests using current coverage evidence. It guides assessment or authorized test changes through review, verification, and final coverage measurement.
Key features
- 01Inspect and validate coverage artifacts
- 02Prioritize public behavior and error paths
- 03Propose scenarios or implement approved tests
- 04Run focused checks and final coverage
Use cases
- 01Locate behavior gaps after a coverage regression
- 02Propose tests from current coverage reports
- 03Add scoped tests after approval
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ openai/ openai-agents-js --skill test-coverage-improverAfter installing, type/test-coverage-improverin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMETest 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 pnpm test: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-summary.jsonorcoverage/coverage-final.json,coverage/lcov.info, and any recorded command/environment evidence. Reuse them only when they represent the relevant source and test state. If missing or stale, runpnpm test: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 the JSON report,
coverage/lcov.info, orcoverage/lcov-report/index.htmlto locate gaps. Place tests under the relevantpackages/<pkg>/test/directory. - 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
pnpm test: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.