run-coverage

run-coverage is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 57 tokens per session (377 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

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/tmj-90/gaffer/run-coverage
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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 377 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.00057 $0.00377
Opus 5 $0.00028 $0.00188
Sonnet 5 $0.00011 $0.00075
Haiku 4.5 $0.00006 $0.00038

Measured 3d ago against content hash afc572605fe5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 34 lines

What it actually says

Measure coverage

Run the repo's coverage tool, read the real number, and evidence the result or delta. Do not chase a number with hollow tests.

Steps

  1. Find the coverage command from the context packet (e.g. pnpm test --coverage, pytest --cov, go test -cover ./..., mvn jacoco:report). If silent, detect the configured tool from the manifest.
  2. Run it and capture the exact command plus the overall percentage and, where the ticket names a unit, that file's/module's coverage.
  3. Compare against the threshold in the ticket/AC. If it falls short, add or extend tests for the genuinely uncovered branches (use the add-unit-test skill) — cover real behaviour, not lines for their own sake.
  4. Re-run to capture the new figure. Note the before→after delta if the ticket asks for an improvement.
  5. Evidence: the command, the percentage (and delta). Then use the record-evidence skill to record coverage_report against the AC and submit for review.

Rules

  • Report the true figure from a run in this session — never estimate coverage.
  • Don't write assertion-free tests just to lift the number.
  • Match the repo's coverage tooling and existing thresholds.
  • Run on a branch (the create-branch skill), never a protected branch.
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. 3d 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 (2 stars, last pushed 9d ago), licensed Apache-2.0. It adds 57 tokens to every session and 377 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-08-31.