coverage-improvement

coverage-improvement is a skill for Cursor from girijashankarj/cursor-handbook. It costs 30 tokens per session (330 once invoked), scanned A, original, MIT.

A workflow for finding untested code and adding meaningful tests. Code coverage measures how much of the code tests exercise.

In plain words
What is it for?
Use it to inspect coverage gaps, write focused tests, rerun coverage, and verify that the target has been met.
Why use it?
It turns a low coverage report into a prioritized list of missing success, error, branch, and edge-case tests.

Skill for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to inspect coverage gaps, write focused tests, rerun coverage, and verify that the target has been met.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/girijashankarj/cursor-handbook/coverage-improvement
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add girijashankarj/cursor-handbook --skill coverage-improvement
Clone the repo
git clone --depth 1 https://github.com/girijashankarj/cursor-handbook

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for coverage-improvement

README.md
[![agentmods](https://agentmods.dev/badge/skills/girijashankarj/cursor-handbook/coverage-improvement/github.svg)](https://agentmods.dev/skills/girijashankarj/cursor-handbook/coverage-improvement)
Your own site
<a href="https://agentmods.dev/skills/girijashankarj/cursor-handbook/coverage-improvement"><img src="https://agentmods.dev/badge/skills/girijashankarj/cursor-handbook/coverage-improvement/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for coverage-improvement

Your own site · 80×15
<a href="https://agentmods.dev/skills/girijashankarj/cursor-handbook/coverage-improvement"><img src="https://agentmods.dev/badge/skills/girijashankarj/cursor-handbook/coverage-improvement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 330 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00330
Opus 5 $0.00015 $0.00165
Sonnet 5 $0.00006 $0.00066
Haiku 4.5 $0.00003 $0.00033

Measured 6d ago against content hash 7139301c806f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

coverage-improvement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/testing/coverage-improvement/SKILL.md · 45 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 45 lines · 30 tokens per session scan A 7139301c806f

Subscribe to this mod's changes

coverage-improvement is a skill published in the GitHub repository girijashankarj/cursor-handbook (30 stars, last pushed 10d ago), licensed MIT. It adds 30 tokens to every session and 330 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

testing

Use when writing or reviewing Flutter/Dart tests (unit, widget, golden), fixing flaky tests, adding coverage, or choosing between unit and widget tests.

evanca/flutter-ai-rules · 33 tokens

mockito

Use when generating mocks, stubbing methods, verifying interactions, capturing arguments, or choosing between mocks, fakes, and real objects (Mockito).

evanca/flutter-ai-rules · 32 tokens

mocktail

Use when creating mocks, stubbing methods, verifying interactions, registering fallback values, or choosing between mocks, fakes, and real objects (Mocktail).

evanca/flutter-ai-rules · 34 tokens

iterate-agent-harness

Turn an agent failure—premature stop, false completion, gamed check, missed file, broken handoff—into a durable rule/skill/hook/CI guard plus regression test. Use when "the agent stopped early again", "it gamed the test", or "add a guard so this doesn't recur". App bugs → workflow-fix-and-ship.

kensaurus/cursor-kenji · 79 tokens

test-data-factory-builder

Creates factories and builders for generating consistent, composable test data with realistic values and relationship handling. Use for "test factories", "test data builders", "fixture factories", or "test data generation".

patricio0312rev/skills · 46 tokens

unit-test-generator

Generates comprehensive unit tests with AAA pattern (Arrange-Act-Assert), edge cases, error scenarios, and coverage analysis. Creates test files matching source structure with complete test suites. Use for "unit testing", "test generation", "Jest tests", or "test coverage".

patricio0312rev/skills · 60 tokens