Coverage analysis

From vladkesler/initrunner · View interactive version

Coverage analysis is an AI agent skill from the GitHub repository vladkesler/initrunner. Running coverage tools, interpreting coverage reports, identifying high-risk gaps, and prioritizing which uncovered code to test first.

How to use this skill

Skill file

Coverage analysis for identifying and prioritizing untested code.

When to activate

Use this skill after tests pass, or when asked to analyze coverage gaps

and determine which untested code should be covered next.

Python coverage

set omit to exclude vendored code, migrations, and test files from

the report.

path is tested.

visual inspection.

JavaScript coverage

directory.

@vitest/coverage-istanbul.

Uncovered Line #s.

coverageThreshold to enforce minimums.

Interpreting results

"covered" while half its branches are not.

authentication checks, and security-sensitive paths.

vendored third-party code.

systematic gap in error-path testing.

Gap prioritization

Rank uncovered code by risk, not by line count:

  1. Security-sensitive -- authentication, authorization, input

sanitization, cryptographic operations.

  1. Business logic -- core domain rules, financial calculations, state

transitions.

  1. Utilities -- parsing, formatting, data transformation helpers.
  2. Boilerplate -- logging setup, CLI argument wiring, import guards.

Running

Python:

pytest --cov=mypackage --cov-branch --cov-report=term-missing

JavaScript (Jest):

npx jest --coverage --coverageReporters=text

JavaScript (Vitest):

npx vitest run --coverage

MUST

measurable.

last.

else-branch is still a gap.

MUST NOT

branches, debug-only paths) may not be worth covering.

should verify a real behavior.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.