Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
girijashankarj avatar

Coverage Improvement

  • 1 installs
  • 27 repo stars
  • Updated April 25, 2026
  • girijashankarj/cursor-handbook

Systematic workflow for identifying test-coverage gaps and writing missing tests, prioritizing error paths, business logic, and edge cases.

About

Analyzes a coverage report, ranks files by criticality and uncovered percentage, and writes missing tests in priority order. A developer uses it when coverage is below target or to improve coverage.

  • Ranks gaps by business criticality times uncovered percentage
  • Prioritizes error handling, business branches, and edge cases over success paths

Coverage Improvement by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #1,750 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Jul 22, 2026 (Skillselion catalog sync)
npx skills add https://github.com/girijashankarj/cursor-handbook --skill coverage-improvement

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars27
Last updatedApril 25, 2026
Repositorygirijashankarj/cursor-handbook

What it does

Systematic workflow for identifying test-coverage gaps and writing missing tests, prioritizing error paths, business logic, and edge cases.

Files

SKILL.mdMarkdownGitHub ↗

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.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.