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 juanmhidalgo/claude-plugins --skill coverage-gategit clone --depth 1 https://github.com/juanmhidalgo/claude-pluginsWrote 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/juanmhidalgo/claude-plugins/coverage-gate)<a href="https://agentmods.dev/skills/juanmhidalgo/claude-plugins/coverage-gate"><img src="https://agentmods.dev/badge/skills/juanmhidalgo/claude-plugins/coverage-gate/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/juanmhidalgo/claude-plugins/coverage-gate"><img src="https://agentmods.dev/badge/skills/juanmhidalgo/claude-plugins/coverage-gate.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.00033 | $0.01238 |
| Opus 5.5 | $0.00013 | $0.00495 |
| Sonnet 5.5 | $0.00007 | $0.00248 |
| Haiku 4.5 | $0.00003 | $0.00124 |
Grade A, and why
coverage-gate 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 1mo 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 — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GHA Threshold Detection
Search .github/workflows/*.yml for coverage actions and extract thresholds.
Supported Actions
| Action | Threshold Fields | Format |
|---|---|---|
orgoro/coverage |
thresholdAll, thresholdNew, thresholdModified |
Decimal 0-1 (multiply by 100) |
irongut/CodeCoverageReport |
thresholds |
'60 80' (warning failure) — use failure value |
5monkeys/cobertura-action |
minimum_coverage |
Integer 0-100 |
codecov/codecov-action |
None inline — check codecov.yml at repo root |
target: 80% |
Detection Steps
- Glob for
.github/workflows/*.yml - Grep for coverage action patterns
- Read the matching workflow file
- Extract threshold values from
with:block - Normalize all thresholds to percentages (0-100 scale)
Configured threshold: ${user_config.coverage_threshold} counts only if non-empty and numeric (an unset option may still read as a placeholder). CI-configured values always win over it.
If no coverage config found: use the configured threshold for every category if set; otherwise skip the coverage gate entirely with a note.
Default thresholds (when action exists but thresholds are partially configured, and no configured threshold is set):
thresholdAll: 55%thresholdNew: 80%thresholdModified: 65%
File Categorization
Map GHA categories to git state:
| Category | PR Context | Staged Context |
|---|---|---|
| New files | git diff --name-only --diff-filter=A <base>...HEAD |
git diff --cached --name-only --diff-filter=A |
| Modified files | git diff --name-only --diff-filter=M <base>...HEAD |
git diff --cached --name-only --diff-filter=M |
| All files | Overall coverage report | Overall coverage report |
Filter to source files only — exclude test files, configs, docs, migrations, __init__.py.
Coverage Tool Detection
Detect the project's coverage tool. Check the GHA workflow first — it reveals the exact command and flags.
What ships with it
1 file 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.
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.
- 1mo ago Changed · +2 lines b1d6417265f7
- 3mo ago First seen · 100 lines · 33 tokens per session scan A b4a340ecd14d
coverage-gate is a skill published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 18d ago), licensed MIT. It adds 33 tokens to every session and 1,238 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-08-31.
coverage-gate compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| coverage-gatejuanmhidalgo/claude-plugins | Skill | 8 | 18d ago | MIT | A | 33 | Claude Code |
| plugin-testzhinjs/zhin | Skill | 136 | today | MIT | A | 51 | Claude Code, Codex |
| Changelog Test MapperPramodDutta/qaskills | Skill | 253 | 28d ago | MIT | A | 28 | Claude Code, Codex |
| Karma TestingPramodDutta/qaskills | Skill | 253 | 28d ago | MIT | A | 41 | Claude Code, Codex |
| AI Release GuardianPramodDutta/qaskills | Skill | 253 | 28d ago | MIT | A | 54 | Claude Code, Codex |
| Code Coverage AnalysisPramodDutta/qaskills | Skill | 253 | 28d ago | MIT | A | 45 | Claude Code, Codex |
| frontmcp-testingagentfront/frontmcp | Skill | 154 | today | Apache-2.0 | A | 175 | Claude Code |