test-coverage-improver

Run coverage analyses in JavaScript/TypeScript monorepos and generate test ideas per file.

3.6k|897|Updated May 31, 2025
One-click install
npx skills add https://github.com/openai/openai-agents-js --skill test-coverage-improver-openai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-coverage-improver
Source: https://github.com/openai/openai-agents-js/tree/main/.agents/skills/test-coverage-improver
Command: npx skills add https://github.com/openai/openai-agents-js --skill test-coverage-improver-openai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and close gaps in test coverage for the OpenAI Agents JS monorepo by running coverage, analyzing results, and proposing targeted tests with user confirmation before implementation.

Core Features & Use Cases

  • Run the coverage suite across the monorepo and collect artifacts including coverage-summary.json and lcov.info.
  • Analyze results to highlight lowest-coverage files and under-80% branches, and draft concrete test ideas per file.
  • Seek user approval before adding tests and ensure rerunning coverage to verify improvements.

Quick Start

Run the coverage workflow at the repository root to generate fresh coverage data, inspect artifacts, and propose changes after user approval.

Frequently Asked Questions about test-coverage-improver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify test coverage gaps in a JavaScript monorepo?

To identify test coverage gaps in a JavaScript monorepo, run coverage analyses across packages and parse artifacts like coverage-summary.json and lcov.info to highlight under-covered files and branches.

How do I generate concrete test ideas from coverage analysis?

Generating concrete test ideas from coverage analysis involves parsing coverage summaries to find the lowest-coverage files and under-80% branches, then drafting specific test proposals for each gap.

Does this test coverage analysis work with multiple packages in a monorepo?

Yes, this test coverage analysis works with monorepos containing multiple packages by coordinating coverage runs across the workspace and aggregating results into unified summary artifacts.

What is the process for adding tests after finding coverage gaps?

The process for adding tests after finding coverage gaps requires prompting for user approval before implementation, adding the proposed tests, and rerunning the coverage suite to verify improvements.

What coverage artifacts are needed to analyze missing tests?

To analyze missing tests, the required coverage artifacts are coverage-summary.json and lcov.info, which are collected by executing the coverage workflow at the repository root.

Can I automatically add tests without approval in a coverage workflow?

No, you cannot automatically add tests without approval in this coverage workflow; it explicitly prompts for user confirmation before adding any tests to ensure proposed changes are reviewed.