coverage-report

coverage-report is a skill for Claude Code from NikiforovAll/claude-code-rules. It costs 30 tokens per session (644 once invoked), scanned C, original, Apache-2.0.

A .NET code-coverage report focused on source files changed in the current branch. Code coverage shows which parts of the code are exercised by tests.

In plain words
What is it for?
It finds changed C# files, selects suitable test projects, runs tests with coverage collection, filters the results to the changed source, and produces an HTML report.
Why use it?
It avoids producing a broad report when the main question is whether new or changed code is tested.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is --results-directory ./TestResults/.

Part of the handbook-dotnet plugin — 9 skills shipped together

Good fit It finds changed C# files, selects suitable test projects, runs tests with coverage collection, filters the results to the changed source, and produces an HTML report.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/NikiforovAll/claude-code-rules
agentmods
npx agentmods add skills/nikiforovall/claude-code-rules/coverage-report

Made for: Claude Code.

Or install handbook-dotnet, the plugin that ships this one along with the rest of its 9 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/nikiforovall/claude-code-rules/coverage-report/github.svg)](https://agentmods.dev/skills/nikiforovall/claude-code-rules/coverage-report)
Your own site
<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.

agentmods 80×15 button for coverage-report

Your own site · 80×15
<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>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 644 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00030 $0.00644
Opus 5.5 $0.00012 $0.00258
Sonnet 5.5 $0.00006 $0.00129
Haiku 4.5 $0.00003 $0.00064

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

Security

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/
plugins/handbook-dotnet/skills/coverage-report/SKILL.md · 83 lines

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):

  1. User-specified: If the user names a test project, use it
  2. Convention-based: Look for test projects whose name matches the changed project (e.g., MyProject -> MyProject.Tests)
  3. Solution-wide: Run all tests in the solution if scope is unclear
  4. 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

  1. Print TestResults/CoverageReport/Summary.txt to the terminal
  2. 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

Read the full file on GitHub · 83 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. 3mo ago First seen · 83 lines · 30 tokens per session scan C 35026c80ca3c

Subscribe to this mod's changes

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.

Related

coverage-report compared with skills from other repositories

coverage-report next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coverage-reportNikiforovAll/claude-code-rulesSkill14429d agoApache-2.0C30Claude Code
review-prjontsai/claude-pluginsSkill61mo agoMITA139Claude Code
researcherjontsai/claude-pluginsSkill61mo agoMITA68Claude Code
mem-rescuejontsai/claude-pluginsSkill61mo agoMITA143Claude Code
svg-masterylukaskellerstein/claude-my-marketplaceSkill313d agononeA276Claude Code
demo-videolukaskellerstein/claude-my-marketplaceSkill313d agononeA144Claude Code
visual-planninglukaskellerstein/claude-my-marketplaceSkill313d agononeA271Claude Code