
Test Coverage Improver
- 114 installs
- 3.5k repo stars
- Updated August 4, 2026
- openai/openai-agents-js
openai-agents-js skill improving test coverage via pnpm test:coverage analysis.
About
openai-agents-js test coverage improvement skill. Runs pnpm test:coverage, inspects coverage artifacts and reports, identifies low-coverage files and uncovered branches, and proposes high-impact tests to add. Focuses on meaningful coverage gains in runtime packages rather than trivial assertion padding. Guides contributors toward tests that exercise critical agent SDK paths, error handling branches, and public API surfaces with the highest risk from untested code.
- pnpm test:coverage execution and artifact inspection
- Identifies low-coverage files and uncovered branches
- Proposes high-impact tests not trivial assertion padding
- Targets critical agent SDK paths and error branches
- Coverage-driven test addition for openai-agents-js monorepo
Test Coverage Improver by the numbers
- 114 all-time installs (skills.sh)
- +5 installs in the week ending Jul 26, 2026 (Skillselion tracking)
- Ranked #959 of 2,154 Testing & QA skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
test-coverage-improver capabilities & compatibility
- Capabilities
- run coverage report · identify low coverage · propose high impact tests
- Use cases
- testing
npx skills add https://github.com/openai/openai-agents-js --skill test-coverage-improverAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 114 |
|---|---|
| repo stars | ★ 3.5k |
| Last updated | August 4, 2026 |
| Repository | openai/openai-agents-js ↗ |
Which tests should I add to improve coverage in openai-agents-js?
Improve test coverage in openai-agents-js by running pnpm test:coverage, inspecting artifacts, and proposing high-impact tests.
Who is it for?
Contributors raising test coverage in openai-agents-js runtime packages.
Skip if: Docs-only changes or projects outside the monorepo.
When should I use this skill?
User asks to improve test coverage or run pnpm test:coverage in agents-js.
What you get
High-impact tests proposed and added for low-coverage files and branches.
Files
Test Coverage Improver
Overview
Use this skill whenever coverage needs assessment or improvement (coverage regressions, failing thresholds, or user requests for stronger tests). It runs the coverage suite, analyzes results, highlights the biggest gaps, and prepares test additions while confirming with the user before changing code.
Quick Start
1. From the repo root run pnpm test:coverage (set CI=1 if needed) to regenerate coverage/. 2. Collect artifacts: coverage/coverage-summary.json (preferred) or coverage/coverage-final.json, plus coverage/lcov.info and coverage/lcov-report/index.html for drill-downs. 3. Summarize coverage: total percentages, lowest files, branches under 80%, and uncovered lines/paths. 4. Draft test ideas per file: scenario, behavior under test, expected outcome, and likely coverage gain. 5. Ask the user for approval to implement the proposed tests; pause until they agree. 6. After approval, write the tests in the relevant package, rerun pnpm test:coverage, and then run $code-change-verification before marking work complete.
Workflow Details
- Run coverage: Execute
CI=1 pnpm test:coverageat repo root. Avoid watch flags and keep prior coverage artifacts only if comparing trends. - Parse summaries efficiently:
- Prefer
coverage/coverage-summary.jsonfor file-level totals; fallback tocoverage/coverage-final.jsonif the summary file is absent. - Use
coverage/lcov.infoorcoverage/lcov-report/index.htmlto spot branch- and line-level holes. - Prioritize targets:
- Public APIs or shared utilities in
packages/*/srcbefore examples or docs. - Files with statements/branches below 80% or newly added code at 0%.
- Recent bug fixes or risky code paths (error handling, retries, timeouts, concurrency).
- Design impactful tests:
- Hit uncovered branches: error cases, boundary inputs, optional flags, and cancellation/timeouts.
- Cover combinational logic rather than trivial happy paths.
- Place unit tests near the package (
packages/<pkg>/test/*.test.ts) and avoid flaky async timing. - Coordinate with the user: Present a numbered, concise list of proposed test additions and expected coverage gains. Ask explicitly before editing code or fixtures.
- After implementation: Rerun coverage, report the updated summary, and note any remaining low-coverage areas.
Notes
- Keep any added comments or code in English.
- Do not create
scripts/,references/, orassets/unless needed later. - If coverage artifacts are missing or stale, rerun
pnpm test:coverageinstead of guessing.
interface:
display_name: "Test Coverage Improver"
short_description: "Analyze coverage gaps and propose high-impact tests"
default_prompt: "Use $test-coverage-improver to analyze coverage gaps, propose high-impact tests, and update coverage after approval."
Related skills
FAQ
What command starts analysis?
pnpm test:coverage followed by inspection of coverage artifacts.
What tests are prioritized?
High-impact tests for critical SDK paths and error branches, not trivial padding.
What output files are inspected?
Coverage artifacts and reports identifying low-coverage files and branches.