test-coverage

test-coverage is a skill for Claude Code from drvoss/everything-copilot-cli. It costs 37 tokens per session (1,487 once invoked), scanned A, original, MIT.

A test-coverage improvement workflow that identifies code paths without tests and adds focused unit or integration tests. Coverage measures which parts of the code run during tests.

In plain words
What is it for?
Use it to inspect coverage reports and write targeted tests for important modules and behavior.
Why use it?
It helps close risky gaps when reports show low coverage, new code lacks tests, or a refactor needs a safety net.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the everything-copilot-cli plugin — 100 skills, 8 agents, 1 plugin shipped together

Good fit Use it to inspect coverage reports and write targeted tests for important modules and behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/drvoss/everything-copilot-cli/test-coverage
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 drvoss/everything-copilot-cli --skill test-coverage
Clone the repo
git clone --depth 1 https://github.com/drvoss/everything-copilot-cli

Made for: Claude Code.

Or install everything-copilot-cli, the plugin that ships this one along with the rest of its 100 skills, 8 agents, 1 plugin.

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/drvoss/everything-copilot-cli/test-coverage/github.svg)](https://agentmods.dev/skills/drvoss/everything-copilot-cli/test-coverage)
Your own site
<a href="https://agentmods.dev/skills/drvoss/everything-copilot-cli/test-coverage"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/test-coverage/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 test-coverage

Your own site · 80×15
<a href="https://agentmods.dev/skills/drvoss/everything-copilot-cli/test-coverage"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/test-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,487 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.00037 $0.01487
Opus 5.5 $0.00015 $0.00595
Sonnet 5.5 $0.00007 $0.00297
Haiku 4.5 $0.00004 $0.00149

Measured today against content hash 5c28f620eb38, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 today.

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.

skills/testing/test-coverage/SKILL.md · 195 lines

How it starts

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

Test Coverage Improvement

When to Use

  • Coverage reports show critical modules below target thresholds
  • New code was merged without sufficient test coverage
  • Preparing for a release and need confidence in code correctness
  • Refactoring requires a safety net of comprehensive tests
  • Team has set a coverage target that needs to be met

Prerequisites

  • Test framework configured with coverage reporting
  • Baseline coverage report available or generatable
  • Understanding of which code is critical vs. low-risk

Workflow

1. Generate a Coverage Report

# Node.js / Jest
npm test -- --coverage 2>&1 | Select-Object -Last 30

# With specific thresholds
npm test -- --coverage --coverageReporters="text" 2>&1

# Python / pytest
pytest --cov=src --cov-report=term-missing 2>&1

# Go
go test -coverprofile=coverage.out ./... && go tool cover -func=coverage.out

2. Identify Uncovered Code

# Find files with lowest coverage (Jest text output)
npm test -- --coverage --coverageReporters="text" 2>&1 | Select-String "\d+\.\d+\s*\|" | Sort-Object { [double]($_ -split '\|')[1].Trim().TrimEnd('%') }

# Generate detailed HTML report for visual inspection
npm test -- --coverage --coverageReporters="html"
# Report is in coverage/lcov-report/index.html

3. Prioritize What to Test

Focus testing effort where it matters most:

Priority What to Cover Why
🔴 High Business logic, calculations Bugs here cost money
🔴 High Authentication, authorization Security-critical
🟡 Medium Data transformations, parsers Common source of bugs
🟡 Medium Error handling paths Often untested, often broken
🟢 Low Simple getters/setters Low risk
🟢 Low UI layout components Better tested with E2E

4. Write Targeted Tests

For each uncovered function or branch:

# View the uncovered code
# Coverage report shows line numbers — use view tool to see the code

# Find existing test file (or create one)
glob pattern="**/*moduleName*.test.*"

Read the full file on GitHub · 195 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. today Changed · +1 lines 5c28f620eb38
  2. yesterday Changed 2c66c9918d37
  3. 1mo ago First seen · 194 lines · 37 tokens per session scan A ae7c75bf08cf

Subscribe to this mod's changes

test-coverage is a skill published in the GitHub repository drvoss/everything-copilot-cli (49 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 1,487 once invoked, about $0.0001 per session on Opus 5.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

test-doctor

Audit test suite correctness, meaningful coverage, reliability, framework compatibility, and maintenance cost; optionally write missing tests and repair material gaps. USE FOR: test doctor, test health, test audit, are my tests good, write missing tests, fix flaky tests, improve test coverage. DO NOT USE FOR: routine…

jongio/skills · 95 tokens

create-unit-tests

Write unit tests for branch changes (or a scoped target) following best practices. Args: [ ].

nortonx/ai-tooling-free · 31 tokens

flutter-testing

Covers Flutter testing across all three layers: unit tests (business logic, ViewModels, repositories), widget tests (UI rendering, interactions, golden regression), and integration/E2E tests (full app flows, native OS interactions). Use this skill when writing any Flutter test, setting up mocking with mocktail or…

Poorgramer-Zack/dart-expert-skills · 137 tokens

test-master

Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…

Jeffallan/claude-skills · 104 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

dotnet/skills · 149 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens