run-coverage

run-coverage is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 72 tokens per session (1,202 once invoked), scanned A, original, Apache-2.0.

A code-coverage check that measures which parts of a program's code are exercised by tests and records the result.

In plain words
What is it for?
Run the repository's coverage command, compare the result with a threshold, add meaningful tests when needed, and record the report.
Why use it?
It shows whether a required coverage level is met and helps identify genuinely untested behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Run the repository's coverage command, compare the result with a threshold, add meaningful tests when needed, and record the report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/run-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 tmj-90/gaffer --skill run-coverage
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/run-coverage/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/run-coverage)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/run-coverage"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/run-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 run-coverage

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/run-coverage"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/run-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,202 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.00072 $0.01202
Opus 5.5 $0.00029 $0.00481
Sonnet 5.5 $0.00014 $0.00240
Haiku 4.5 $0.00007 $0.00120

Measured 2mo ago against content hash 96fd6feb225c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

run-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 2mo 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.

runner/skills/run-coverage/SKILL.md · 82 lines

How it starts

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

Measure and raise test coverage

Coverage tells you what the tests did not execute; it cannot tell you that what they executed was checked. A line can be 100% covered by a test with no assertion. Google's coverage guidance treats it as a signal for finding untested code — reviewed per change, not chased as a repo-wide score — and Google's diff-based mutation testing exists because covered-but-unasserted code is common. Measure with the repo's tool, read the uncovered branches, test the behaviour behind them, and evidence the true number.

Procedure

  1. Find the command. Use the context packet's coverage_command; else the project script (test:coverage, coverage) or the tool it wraps: vitest run --coverage, jest --coverage, pytest --cov=<pkg> --cov-branch --cov-report=term-missing, go test -coverprofile=cover.out ./... && go tool cover -func=cover.out, mvn verify (JaCoCo), cargo llvm-cov/cargo tarpaulin, dotnet test --collect:"XPlat Code Coverage". Use the project script so thresholds and excludes match CI.
  2. Baseline first. Run it before changing anything. Note the total, the per-file line and branch figures for the files in scope, and whether a threshold already fails. If it fails on code your ticket does not own, note it and raise request_decision instead of fixing the world.
  3. Read the uncovered branches, not the percentage. Open the report (term-missing, coverage/index.html, lcov.info) for the files you changed or own and list each uncovered branch: error paths, early returns, boundary conditions, the else nobody hits, the catch block for a failed write. Those are behaviours awaiting a test.
  4. Tie each gap to an acceptance criterion or a documented behaviour. Test the behaviour behind the line through the unit's public interface (the add-unit-test skill; the add-integration-test skill for failure paths that need a real file, process or database). Error and recovery branches for persistence and concurrency are exactly where live-run defects hid — cover them with a real injected fault, not a mock that throws on cue.
  5. Check the tests would catch a regression. For the changed code, run the repo's mutation tool if it has one (StrykerJS npx --no -- stryker run --mutate <files>, mutmut run, PIT mvn pitest:mutationCoverage, cargo mutants) scoped to the files in scope, and treat surviving mutants on AC-relevant lines as missing assertions. Without a tool, do the break-it check by hand: invert a condition in a covered branch, see a test fail, restore, confirm with git diff. (An independent tester never edits implementation files or runs git diff; it skips this step.)
  6. Never lower the bar to pass. Do not add files to the exclude list, lower a threshold, or add /* istanbul ignore */, /* c8 ignore */ or # pragma: no cover to reach a number. If a threshold is genuinely wrong for the ticket's scope, raise it via request_decision.
  7. Re-run and evidence. Record the exact command, the total, and the per-file line and branch figures for the files in scope, before and after — plus the mutation score if you ran one. Use the record-evidence skill (coverage_report) against the AC that sets the threshold; the runner submits for review.

Read the full file on GitHub · 82 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. 2mo ago Changed · +28 lines · +8 tokens per session 96fd6feb225c
  2. 2mo ago Changed · +20 lines · +7 tokens per session 2f5e7104ab39
  3. 3mo ago First seen · 34 lines · 57 tokens per session scan A afc572605fe5

Subscribe to this mod's changes

run-coverage is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 72 tokens to every session and 1,202 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-08-31.

Related

run-coverage compared with skills from other repositories

run-coverage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
run-coveragetmj-90/gafferSkill14d agoApache-2.0A72Claude Code, Codex
bulwark-brainstormQBall-Inc/the-bulwarkSkill9yesterdayMITA50Claude Code
plan-creationQBall-Inc/the-bulwarkSkill9yesterdayMITA38Claude Code
anthropic-validatorQBall-Inc/the-bulwarkSkill9yesterdayMITA40Claude Code
create-subagentQBall-Inc/the-bulwarkSkill9yesterdayMITA42Claude Code
test-auditQBall-Inc/the-bulwarkSkill9yesterdayMITA0Claude Code
code-reviewQBall-Inc/the-bulwarkSkill9yesterdayMITA61Claude Code