Skill: Improve Test Coverage

SkillDev tools

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

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Skill: Improve Test Coverage skill

What this skill tells your AI

The instructions your AI receives, as published by girijashankarj/cursor-handbook in .cursor/skills/testing/coverage-improvement/SKILL.md and read by ahel’s review.

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.

Signals

GitHub stars
30
Forks
3
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
coverage-improvement
Source
github.com/girijashankarj/cursor-handbook