MCPInstall

test-coverage-improver

by openai OfficialTesting & QA

Measure JS SDK coverage or address measured coverage gaps. Use for coverage audits and metric regressions, not routine test additions.

Installs
132
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/openai/openai-agents-js --skill test-coverage-improver
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads test-coverage-improver automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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 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

  1. Inspect current coverage/coverage-summary.json or coverage/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, run pnpm test:coverage under the repository's verification sandbox and credential policy; this initial measurement precedes implementation review. Respect host-capacity guidance before broad measurement.
  2. 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, or coverage/lcov-report/index.html to locate gaps. Place tests under the relevant packages/<pkg>/test/ directory.
  3. 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.
  4. Implement tests, run affected checks, and complete $implementation-final-review. Keep iterative verification focused; do not repeatedly run full coverage while review is incomplete.
  5. After clean review, run pnpm test:coverage for the final measurement and $code-change-verification for 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.

FAQ

What does the test-coverage-improver skill do?

Measure JS SDK coverage or address measured coverage gaps. Use for coverage audits and metric regressions, not routine test additions.

How do I install test-coverage-improver?

Run npx skills add https://github.com/openai/openai-agents-js --skill test-coverage-improver in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/test-coverage-improver/ (personal) or .claude/skills/test-coverage-improver/ (project).

Which AI agents can use test-coverage-improver?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is test-coverage-improver safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains test-coverage-improver?

It is published by openai in openai/openai-agents-js, and it is an official skill from the maker of the technology it covers. It has 132 recorded installs.

More from openai/openai-agents-js

View all →

docs-sync

openai/openai-agents-js

Audit or update authored English SDK documentation within a requested topic or diff using implementation evidence.

OfficialDocs & Writing147 installs

pnpm-upgrade

openai/openai-agents-js

Open the skill to read its SKILL.md instructions.

OfficialAI & Agents143 installs

code-change-verification

openai/openai-agents-js

Run the required final install, build, type, lint, test, and format checks after eligible SDK changes pass review.

OfficialAI & Agents139 installs

openai-knowledge

openai/openai-agents-js

Retrieve authoritative OpenAI API and platform documentation when an integration or claim needs current external evidence.

OfficialAI & Agents130 installs

pr-draft-summary

openai/openai-agents-js

Prepare a local PR title, description, and branch suggestion when requested or after eligible implementation work.

OfficialCode Quality & Workflow129 installs

changeset-validation

openai/openai-agents-js

Validate changesets in openai-agents-js using LLM judgment against git diffs (including uncommitted local changes). Use when packages/ or .changeset/ are modified, or when verifying PR changeset compliance and bump level.

OfficialAI & Agents127 installs

Popular testing & qa skills

View category →

tdd

mattpocock/skills

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

Testing & QA1.2M installs

grilling

mattpocock/skills

Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

Testing & QA996.2K installs

migrate-to-shoehorn

mattpocock/skills

Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.

Testing & QA484.1K installs

run-train

lllllllama/rigorpilot-skills

Rigor Train skill for deep learning research repositories. Use when a documented or selected training command should be run conservatively for startup verification, short-run verification, full kickoff, or resume, with command, config, seed, log, checkpoint, status, and metric evidence written to standardized trainoutputs/. Do not use for environment setup, exploratory sweeps, speculative idea implementation, or end-to-end orchestration.

Testing & QA337.8K installs

test-driven-development

obra/superpowers

Use when implementing any feature or bugfix, before writing implementation code

Testing & QA261.8K installs

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

Testing & QA216.8K installs