audit-coverage

audit-coverage is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 80 tokens per session (3,892 once invoked), scanned A, original, MIT.

A coverage-report reader that examines files produced by an earlier test run. Test coverage measures which code was exercised, and the tool also reports CRAP, a score combining code complexity with low coverage.

In plain words
What is it for?
Use it to report line and function coverage from formats such as lcov, Cobertura XML, coverage.py JSON, or a Go coverage profile, along with CRAP scores.
Why use it?
It avoids rerunning tests and instead turns existing coverage files into results for selected files, functions, paths, or the whole project. This helps identify complex code that has little test coverage.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the code-metrics plugin — 6 skills shipped together

Good fit Use it to report line and function coverage from formats such as lcov, Cobertura XML, coverage.py JSON, or a Go coverage profile, along with CRAP scores.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install code-metrics

Made for: Claude Code.

Or install code-metrics, the plugin that ships this one along with the rest of its 6 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-coverage/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-coverage)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-coverage"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-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 audit-coverage

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/audit-coverage"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/audit-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,892 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.
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.00080 $0.03892
Opus 5.5 $0.00032 $0.01557
Sonnet 5.5 $0.00016 $0.00778
Haiku 4.5 $0.00008 $0.00389

Measured yesterday against content hash 715403104126, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

audit-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.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/audit-coverage.sh, scripts/audit-coverage.test.sh, scripts/crap.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/code-metrics/skills/audit-coverage/SKILL.md · 228 lines

How it starts

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

Pre-computed context

Current branch: !git branch --show-current 2>/dev/null || echo "unknown"

Purpose

Coverage is a dynamic measure. This skill reads it statically: it parses an artifact a test run already wrote and joins it to the functions in scope. Running the tests is the project's own job and stays there, so nothing here executes a test command, starts a runner, or installs a tool.

Two numbers come out. Line coverage per file and per function is read from the artifact. CRAP per function is derived: comp^2 * (1 - cov/100)^3 + comp, where comp is the function's cyclomatic complexity from the audit skill's audit-complexity.sh script, run over the same scope.

Format Written by What the join gets from it
lcov .info most JavaScript and C/C++ toolchains, coverage lcov line hits; function records in either lcov record shape, which is where a function end line can come from at all
Cobertura XML gcovr, coverlet, kcov (which is how a Bash language gets an artifact) line hits, <sources> prefixes, and <method> regions with their hit flag
coverage.py JSON coverage json executed and missing lines, and per-function regions
Go cover profile go test -coverprofile statement counts over line ranges, which is not a line table: the profile never says which lines carry the statements, so a Go file reports the statement ratio go tool cover -func prints, labels it cov_source: statement-ratio, and reports lines_executable and lines_hit as null. The format names no functions either, so a Go function reports coverage_pct and crap as null, and its line counts as null unless a line-measuring artifact also covered the file

The record shape and version behind each format are its row under "Coverage artifacts" in ${CLAUDE_PLUGIN_ROOT}/reference/collectors.md, which carries each claim with its basis, date and recheck trigger.

The SQLite data file coverage.py writes while measuring is never read; why is the coverage.py SQLite row of that file. Run coverage json or coverage lcov and point this skill at the result.

Read the full file on GitHub · 228 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -33 tokens per session 715403104126
  2. 3d ago Changed 11790c8861ac
  3. 5d ago Changed · +3 lines c47cb78088a1
  4. 7d ago Changed · +4 lines 8168937bcc11
  5. 10d ago Changed · +6 lines 93fd88935a0a
  6. 11d ago Changed · -18 lines f3718f21cf9c
  7. 13d ago Changed 514c2ec43bb7
  8. 18d ago Changed · +3 lines 7f05255ccf9d
  9. 25d ago Changed b49c29474c26
  10. 26d ago First seen · 230 lines · 113 tokens per session scan A 77ebfa4dadf0

Subscribe to this mod's changes

audit-coverage is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 80 tokens to every session and 3,892 once invoked, about $0.0003 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-06.

Related

audit-coverage compared with skills from other repositories

audit-coverage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
audit-coveragemelodic-software/claude-code-pluginsSkill33todayMITA80Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code