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
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 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Test Coverage Improver
Instructions
When improving test coverage:
- Run coverage report to identify gaps
- Prioritize critical/complex code paths
- Write tests for uncovered code
- 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
| Type | Minimum | Good | Excellent |
|---|---|---|---|
| Lines | 70% | 80% | 90%+ |
| Branches | 60% | 75% | 85%+ |
| Functions | 70% | 80% | 90%+ |
| Statements | 70% | 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- Env Setup Wizard321
- Podcast To Content Suite321
- Landing Page Copywriter6.7K
- Code Review Pro2.6K
- Screenshot To Code1.7K
- Csv Excel Merger1.2K
- Technical Writer1.1K
- Sports Betting Analyzer884
- Css Animation Creator877
- Social Media Content Repurposer775
- Workout Program Designer758
- Job Application Optimizer756
- Knowledge Base Builder701
- Color Palette Extractor698
- Stock Photo Finder657
- Font Pairing Suggester639
- Presentation Design Enhancer621
- Itinerary Optimizer615
- Quiz Maker579
- Cold Email Sequence Generator536
- Linkedin Sales Navigator Alt527
- Portfolio Analyzer504
- Competitor Price Tracker491
- Email Template Generator479
Similar to Test Coverage Improver
More Testing & QAtest-coveragecognitedata/builder-skills1.9K installsFix test coverage for a Flows app to meet the 80% line gate, writing missing tests and refactoring for testability.
vitest-testingsecondsky/claude-skills1.3K installsModern Vitest guide for TypeScript and JavaScript tests, covering unit, integration, mocking, and coverage workflows.
senior-qaalirezarezvani/claude-skills1.3K installsGenerates Jest, React Testing Library, MSW, and Playwright tests for React and Next.js apps.
javascript-testing-patternswshobson/agents21.8K installsComprehensive testing guide covering Jest and Vitest setup, unit, async, and mocking patterns for JavaScript and TypeScript.
jest-generatorsecondsky/claude-skills402 installsGenerates Jest unit tests for JavaScript and TypeScript with mocking, async handling, and React component coverage.
coveragealirezarezvani/claude-skills1.7K installsCoverage analysis that maps app surfaces against existing Playwright specs and ranks the gaps by business impact.