Skip to content
Back to skills

Coverage Improvement

ASecurity

Systematic workflow for identifying coverage gaps and writing missing tests. Use when coverage is below target or the user asks to improve coverage.

  • 30 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 27, 2026
developmenttesting

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add girijashankarj/cursor-handbook --skill coverage-improvement --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coverage Improvement?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coverage Improvement
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/girijashankarj-coverage-improvement/badge)](https://www.skillsdirectory.com/skills/girijashankarj-coverage-improvement)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: coverage-improvement
description: Systematic workflow for identifying coverage gaps and writing missing tests. Use when coverage is below target or the user asks to improve coverage.
---

# Skill: Improve Test Coverage

## Trigger
When coverage is below {{CONFIG.testing.coverageMinimum}}% or user asks to improve coverage.

## Steps

### Step 1: Analyze Current Coverage
- [ ] Run coverage report: `{{CONFIG.testing.coverageCommand}}`
- [ ] Identify files below {{CONFIG.testing.coverageMinimum}}% coverage
- [ ] Rank by: business criticality × uncovered percentage

### Step 2: Identify Gaps
For each uncovered file:
- [ ] List uncovered functions/methods
- [ ] List uncovered branches (if/else, switch)
- [ ] List uncovered error paths
- [ ] Determine which gaps are most important

### Step 3: Write Missing Tests
Priority order:
1. Error handling paths
2. Business logic branches
3. Edge cases (null, empty, boundary)
4. Success paths (usually already covered)

For each test:
- [ ] Follow AAA pattern (Arrange-Act-Assert)
- [ ] Use descriptive test names
- [ ] Mock external dependencies
- [ ] Assert specific behaviors, not implementation

### Step 4: Verify Coverage
- [ ] Run coverage again: `{{CONFIG.testing.coverageCommand}}`
- [ ] Confirm target met: ≥{{CONFIG.testing.coverageMinimum}}%
- [ ] All new tests pass

## Completion
Coverage meets or exceeds {{CONFIG.testing.coverageMinimum}}% with meaningful tests.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…