Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/NikiforovAll/claude-code-rulesnpx agentmods add skills/nikiforovall/claude-code-rules/coverage-reportWrote 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/nikiforovall/claude-code-rules/coverage-report)<a href="https://agentmods.dev/skills/nikiforovall/claude-code-rules/coverage-report"><img src="https://agentmods.dev/badge/skills/nikiforovall/claude-code-rules/coverage-report/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/nikiforovall/claude-code-rules/coverage-report"><img src="https://agentmods.dev/badge/skills/nikiforovall/claude-code-rules/coverage-report.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.00030 | $0.00644 |
| Opus 5.5 | $0.00012 | $0.00258 |
| Sonnet 5.5 | $0.00006 | $0.00129 |
| Haiku 4.5 | $0.00003 | $0.00064 |
Grade C, and why
coverage-report scanned grade C with 1 finding 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 3mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf TestResults/ How it starts
The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Coverage Report
Generate a code coverage report scoped to source files changed in the current branch compared to a base branch.
Workflow
1. Determine base branch
Detect the base branch to diff against. Use the MR/PR target branch if known, otherwise default to main or master (whichever exists). Ask the user if ambiguous.
git merge-base --fork-point main HEAD || git merge-base --fork-point master HEAD
2. Detect changed source files
git diff <base-branch> --name-only -- '*.cs'
Filter out test files (paths containing Test, Tests, .Tests, .Test).
If no source files changed, stop and inform the user.
3. Identify test project(s)
Determine which test project(s) to run. Strategies (in order):
- User-specified: If the user names a test project, use it
- Convention-based: Look for test projects whose name matches the changed project (e.g.,
MyProject->MyProject.Tests) - Solution-wide: Run all tests in the solution if scope is unclear
- Ask: If ambiguous, ask the user which test project(s) to run
4. Clean previous results
rm -rf TestResults/
5. Run tests with coverage
dotnet test <test-project-or-solution> \
--collect:"XPlat Code Coverage" \
--results-directory ./TestResults/
6. Build file filters
From the changed file list (step 2), extract basenames and build a filter string:
+*FileName1.cs;+*FileName2.cs;+*FileName3.cs
7. Generate report
dotnet reportgenerator \
-reports:"TestResults/**/coverage.cobertura.xml" \
-targetdir:"TestResults/CoverageReport" \
-reporttypes:"Html;TextSummary" \
-filefilters:"<filters>"
8. Display results
- Print
TestResults/CoverageReport/Summary.txtto the terminal - Open the HTML report (platform-aware):
- Windows:
start TestResults/CoverageReport/index.html - macOS:
open TestResults/CoverageReport/index.html - Linux:
xdg-open TestResults/CoverageReport/index.html
- Windows:
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.
- 3mo ago First seen · 83 lines · 30 tokens per session scan C 35026c80ca3c
coverage-report is a skill published in the GitHub repository NikiforovAll/claude-code-rules (144 stars, last pushed 29d ago), licensed Apache-2.0. It adds 30 tokens to every session and 644 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
coverage-report compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| coverage-reportNikiforovAll/claude-code-rules | Skill | 144 | 29d ago | Apache-2.0 | C | 30 | Claude Code |
| review-prjontsai/claude-plugins | Skill | 6 | 1mo ago | MIT | A | 139 | Claude Code |
| researcherjontsai/claude-plugins | Skill | 6 | 1mo ago | MIT | A | 68 | Claude Code |
| mem-rescuejontsai/claude-plugins | Skill | 6 | 1mo ago | MIT | A | 143 | Claude Code |
| svg-masterylukaskellerstein/claude-my-marketplace | Skill | 3 | 13d ago | none | A | 276 | Claude Code |
| demo-videolukaskellerstein/claude-my-marketplace | Skill | 3 | 13d ago | none | A | 144 | Claude Code |
| visual-planninglukaskellerstein/claude-my-marketplace | Skill | 3 | 13d ago | none | A | 271 | Claude Code |