Agent skill · software engineering · onewave-ai

test-coverage-improver

Analyze test coverage gaps and generate tests to improve coverage. Use when improving test coverage, finding untested code, or writing missing tests.

Why this skill is useful

Generates specific test templates and commands for improving code coverage that the AI wouldn't reliably generate on its own.

What it needs

Requires jest, nyc, vitest installed locally. About 2k tokens when loaded. Last updated 2026-07-15. 242 stars on the source repository.

What this skill does

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 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) Testing Async Functions Mocking Dependencies React Component Testing API Route Testing Branch Coverage Checklist Ensure tests cover: [ ] If/else branches [ ] Ternary operators [ ] Switch cases (including default) [ ] Try/catch blocks [ ] Early returns [ ] Nullish coalescing (??) [ ] Optional chaining results (?.) [ ] Loop conditions (0, 1, many iterations) Coverage Configuration Priority Order for Testing 1. Critical paths: Auth, payments, data mutations 2. Complex logic: Algorithms, state machines, calculations 3. Error handlers: Catch blocks, error boundaries 4. Edge cases: Empty arrays, null values, boundaries 5. Integration points: API calls, database queries

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills onewave-ai/test-coverage-improver

View the source on GitHub

Browse the @skills marketplace