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.
npx skills add tmj-90/gaffer --skill run-coveragegit clone --depth 1 https://github.com/tmj-90/gafferWrote 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.
[](https://agentmods.dev/skills/tmj-90/gaffer/run-coverage)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- 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. - 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_decisioninstead of fixing the world. - 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, theelsenobody hits, the catch block for a failed write. Those are behaviours awaiting a test. - 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-testskill; theadd-integration-testskill 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. - 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, PITmvn 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 withgit diff. (An independent tester never edits implementation files or runsgit diff; it skips this step.) - 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 coverto reach a number. If a threshold is genuinely wrong for the ticket's scope, raise it viarequest_decision. - 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-evidenceskill (coverage_report) against the AC that sets the threshold; the runner submits for review.
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.
- 2mo ago Changed · +28 lines · +8 tokens per session 96fd6feb225c
- 2mo ago Changed · +20 lines · +7 tokens per session 2f5e7104ab39
- 3mo ago First seen · 34 lines · 57 tokens per session scan A afc572605fe5
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.
run-coverage compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| run-coveragetmj-90/gaffer | Skill | 1 | 4d ago | Apache-2.0 | A | 72 | Claude Code, Codex |
| bulwark-brainstormQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 50 | Claude Code |
| plan-creationQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 38 | Claude Code |
| anthropic-validatorQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 40 | Claude Code |
| create-subagentQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 42 | Claude Code |
| test-auditQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 0 | Claude Code |
| code-reviewQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 61 | Claude Code |