Skip to content
onewave-ai avatar

Test Coverage Improver

Analyzes coverage gaps and writes missing tests for JavaScript and TypeScript projects using Jest, Vitest, or NYC.

CCM score
46 of 100
skills.sh installs
325
GitHub stars
451
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the workflow: generate a coverage report, prioritize gaps, write tests for uncovered code, and verify coverage improved
  • Includes test templates for unit, async, mocked-dependency, React component, and API route tests, plus a branch coverage checklist
  • Sets minimum, good, and excellent targets for lines, branches, functions, and statements, with a Vitest threshold config
  • Ranks testing priority: auth and payments first, then complex logic, error handlers, edge cases, and integration points

Install

$ npx -y skills add onewave-ai/claude-skills --skill test-coverage-improver -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Test Coverage Improver

Instructions

When improving test coverage:

  1. Run coverage report to identify gaps
  2. Prioritize critical/complex code paths
  3. Write tests for uncovered code
  4. Verify coverage improved

Generate Coverage Report

# Jest
npx jest --coverage

# Vitest
npx vitest --coverage

# NYC (Istanbul) for any test runner
npx nyc npm test

# View HTML report
open coverage/lcov-report/index.html

Coverage Targets

TypeMinimumGoodExcellent
Lines70%80%90%+
Branches60%75%85%+
Functions70%80%90%+
Statements70%80%90%+

Test Templates

Unit Test (Jest/Vitest)

import { describe, it, expect, vi, beforeEach } from 'vitest';
import { calculateTotal, formatCurrency } from './utils';

describe('calculateTotal', () => {
  it('should sum all item prices', () => {
    const items = [
      { price: 10, quantity: 2 },
      { price: 5, quantity: 1 },
    ];
    expect(calculateTotal(items)).toBe(25);
  });

  it('should return 0 for empty array', () => {
    expect(calculateTotal([])).toBe(0);
  });

Details

Repository
github.com/onewave-ai/claude-skills
Category
Testing & QA
First seen
Jun 3, 2026

Questions

What does the test-coverage-improver skill do?

test-coverage-improver analyzes test coverage gaps and generates tests to close them. It runs a coverage report, prioritizes critical and complex code paths, writes tests for uncovered code, and then verifies that coverage improved.

How do I install the test-coverage-improver skill?

Run npx -y skills add onewave-ai/claude-skills --skill test-coverage-improver -y in a project to install test-coverage-improver. Once installed, the agent can use it when you ask to improve test coverage, find untested code, or write missing tests.

Where does test-coverage-improver stand in the Testing & QA category?

test-coverage-improver is listed in the Testing & QA category on Claude Marketplaces, next to tdd, migrate-to-shoehorn, test-driven-development, webapp-testing, and break-ui. Its distinct focus is finding coverage gaps with Jest, Vitest or NYC and then generating the missing tests.

Which coverage tools and targets does test-coverage-improver use?

test-coverage-improver runs coverage through Jest, Vitest, or NYC for any test runner and opens an HTML report. Its targets are a minimum of 70% for lines, branches at 60%, functions at 70%, and statements at 70%, with good and excellent levels above those.

Who is test-coverage-improver for?

test-coverage-improver is for developers who want to raise test coverage in a TypeScript or JavaScript project. It gives templates for unit tests, async functions, mocked dependencies, React components and API routes.

More from onewave-ai/claude-skills

All 104

Similar to Test Coverage Improver

More Testing & QA