test-coverage

test-coverage is a skill for Claude Code, Codex from MadAppGang/claude-code. It costs 58 tokens per session (5,250 once invoked), scanned A, original, MIT.

A code-analysis skill that measures which parts of an application are covered by tests and identifies untested paths. Test coverage is a measure of how much code automated tests exercise.

In plain words
What is it for?
Use it to produce coverage analyses, find test gaps, assess test quality, and review coverage in JavaScript, TypeScript, Go, Rust, Python, and full-stack projects.
Why use it?
It reveals missing tests and weak test areas before releases or refactoring, helping developers see where failures could go undetected.

Skill for Claude CodeCodex

Part of the dev plugin — 47 skills, 12 commands, 14 agents shipped together

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.

agentmods
npx agentmods add skills/madappgang/claude-code/test-coverage
Any agent
npx skills add MadAppGang/claude-code --skill test-coverage
Clone the repo
git clone --depth 1 https://github.com/MadAppGang/claude-code

Made for: Claude Code, Codex.

Or install dev, the plugin that ships this one along with the rest of its 47 skills, 12 commands, 14 agents.

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 test-coverage

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/claude-code/test-coverage.svg)](https://agentmods.dev/skills/madappgang/claude-code/test-coverage)
Your own site
<a href="https://agentmods.dev/skills/madappgang/claude-code/test-coverage"><img src="https://agentmods.dev/badge/skills/madappgang/claude-code/test-coverage.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,250 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00058 $0.05250
Opus 5 $0.00029 $0.02625
Sonnet 5 $0.00012 $0.01050
Haiku 4.5 $0.00006 $0.00525

Measured yesterday against content hash 7753777cfcf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-coverage 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 yesterday.

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.

plugins/dev/skills/test-coverage/SKILL.md · 799 lines

How it starts

The opening of the file, as written. The whole thing — 799 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Test Coverage Skill

Overview

The test-coverage skill provides comprehensive on-demand test coverage analysis for your codebase. It identifies untested code paths, measures coverage metrics, finds test gaps, evaluates test quality, and provides actionable recommendations for improving test coverage across all supported technology stacks.

When to Use:

  • Measuring current test coverage
  • Identifying untested critical code paths
  • Finding gaps before deployment
  • Improving test suite quality
  • Compliance requirements (80% coverage)
  • Refactoring with confidence
  • Onboarding new team members

Technology Coverage:

  • React/TypeScript/JavaScript (Jest, Vitest, React Testing Library)
  • Go (go test with coverage)
  • Rust (cargo test with tarpaulin)
  • Python (pytest with coverage.py)
  • Full-stack applications

Coverage Metrics

1. Line Coverage

Definition: Percentage of executable lines that are executed by tests.

Example:

function divide(a: number, b: number): number {
  if (b === 0) {              // Line 1: COVERED
    throw new Error('Div 0'); // Line 2: NOT COVERED
  }
  return a / b;               // Line 3: COVERED
}

// Test only covers normal case
test('divides numbers', () => {
  expect(divide(10, 2)).toBe(5);
});

// Line Coverage: 66% (2/3 lines)

Interpretation:

  • 100%: All lines executed (ideal for critical code)
  • 80-99%: Good coverage, some edge cases missed
  • 60-79%: Moderate, needs improvement
  • <60%: Poor, significant gaps

2. Branch Coverage

Definition: Percentage of decision branches (if/else, switch, ternary) that are tested.

Example:

function getUserStatus(user: User): string {
  if (user.isActive) {     // Branch 1: true (COVERED)
    if (user.isPremium) {  // Branch 2: true (NOT COVERED)
      return 'premium';    // NOT COVERED
    }
    return 'active';       // COVERED
  }
  return 'inactive';       // Branch 1: false (NOT COVERED)
}

// Test only covers active non-premium
test('returns status', () => {
  expect(getUserStatus({ isActive: true, isPremium: false })).toBe('active');
});

// Branch Coverage: 33% (1/3 branches)
// Line Coverage: 60% (3/5 lines)

Read the full file on GitHub · 799 lines

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. yesterday First seen · 799 lines · 58 tokens per session scan A 7753777cfcf3

Subscribe to this mod's changes

test-coverage is a skill published in the GitHub repository MadAppGang/claude-code (279 stars, last pushed 5mo ago), licensed MIT. It adds 58 tokens to every session and 5,250 once invoked, about $0.0003 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.