Coverage

Measure test coverage, find untested paths, and generate the missing tests.

Development / Engineeringdevelopmentengineering
by AgentVoltv1.0.0Published 1y ago1 install
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptFind untested code paths and generate missing tests for our API service
Beforegeneric AI agent
You're right that test coverage is important for reliability. To improve coverage, I'd recommend first identifying which code paths don't have tests yet. You could run your coverage tool to see the metrics, then analyze the gaps. Once you understand what's missing, you could write tests for those untested paths. This helps catch bugs early and makes refactoring safer. Would you like me to help you identify which areas need the most attention first?
Afterwith Coverage
COVERAGE REPORT
Current metric: 67% statements, 58% branches, 72% lines

UNTESTED PATHS BY RISK
• Error handler for database timeouts (6 branches)
• Edge case: retry logic with exponential backoff
• Authentication token refresh on 401 (4 branches)
• Concurrent request rate limiter (logic complex, 2 tests missing)

MISSING TEST SUITE
"api/auth/token-refresh.test.ts"
- Test valid refresh token path
- Test expired token rejection
- Test race condition: two refresh calls simultaneous

"api/errors/timeout-handler.test.ts"
- Test timeout after 3000ms
- Test retry count tracking
- Test logging and metrics emission

PRIORITY ORDER
1. Auth timeout (prod incident risk)
2. Rate limiter edge cases (affects all users)
3. Retry exponential backoff (handles load gracefully)

Generated starter tests available in ./generated-tests/ directory, ready for customization.

About this skill


name: coverage description: Use when -

Coverage

What you get

  • Public GitHub repo (alirezarezvani/claude-skills)
  • the coverage skill folder with SKILL.md. Part of a 337-skill / 30-agent / 70-command install.

Customize your output

  • Fork the repo and adapt the skill's instructions and references to your workflow.

Example output

Activates automatically when your request matches Coverage; chains with the other skills, agents, and commands in the collection.

Best for

Creators, builders, and teams using Claude Code.

SKILL.md preview

SKILL.md
---
name: coverage
description: Use this skill to measure test coverage, locate untested code paths, and generate the missing tests.
version: 1.0.0
category: Development / Engineering
author: AgentVolt
license: proprietary
tags:
  - development
  - engineering
---

# Coverage

Measures current test coverage, pinpoints untested branches, and writes the tests needed to close the gaps.

## When to use

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill

More development skills

View all Development skills →