check-coverage

check-coverage is a skill for Claude Code from TypedDevs/bashunit. It costs 16 tokens per session (338 once invoked), scanned A, original, MIT.

A tool for examining test coverage, meaning which parts of a program's code are exercised by tests. It focuses on shell projects with functions and command-line behavior.

In plain words
What is it for?
Use it to run available coverage checks, connect functions to their tests, identify critical gaps, and produce a report with suggested tests and file locations.
Why use it?
It reveals public functions, error paths, and conditional branches that tests do not cover.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to run available coverage checks, connect functions to their tests, identify critical gaps, and produce a report with suggested tests and file locations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/typeddevs/bashunit/check-coverage
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.

Any agent
npx skills add TypedDevs/bashunit --skill check-coverage
Clone the repo
git clone --depth 1 https://github.com/TypedDevs/bashunit

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/typeddevs/bashunit/check-coverage/github.svg)](https://agentmods.dev/skills/typeddevs/bashunit/check-coverage)
Your own site
<a href="https://agentmods.dev/skills/typeddevs/bashunit/check-coverage"><img src="https://agentmods.dev/badge/skills/typeddevs/bashunit/check-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.

agentmods 80×15 button for check-coverage

Your own site · 80×15
<a href="https://agentmods.dev/skills/typeddevs/bashunit/check-coverage"><img src="https://agentmods.dev/badge/skills/typeddevs/bashunit/check-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 338 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00016 $0.00338
Opus 5.5 $0.00006 $0.00135
Sonnet 5.5 $0.00003 $0.00068
Haiku 4.5 $0.00002 $0.00034

Measured 28d ago against content hash 4a800ce825a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

check-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 28d 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.

.agnostic-ai/skills/check-coverage/SKILL.md · 15 lines

What it actually says

Check coverage

Repository paths are relative to the repository root. Measure the requested scope with ./bashunit --coverage <test-path>. For broad coverage, follow .github/workflows/coverage.yml: exclude tests/unit/coverage/ meta-tests and fixtures, then measure the selected unit tests with --coverage-paths src. Running coverage meta-tests under coverage double-instruments the engine and corrupts their assertions. Keep analysis separate from any later implementation gate.

  1. Map functions under src/ to direct tests and observed coverage. Search definitions with rg '^function ' src/ and usages of each relevant name under tests/. Public assertions may lack the bashunit:: prefix; inspect the public assertion and API surfaces and their loaded module entrypoints. A text match alone does not prove a test executes a function.
  2. Classify each relevant function as well tested, partially tested, or untested using success, edge, and failure-path evidence. State instrumentation limits, including shell-version differences, before treating an uncovered line as a missing test.
  3. Prioritize public APIs without tests, error paths, then complex conditionals. Aim for 90%+ public API coverage and tests for user-facing commands and error paths; trivial internal helpers are lower priority.
  4. Report measured totals and coverage by module, gaps with file and line evidence, and specific proposed test cases. Separate measured percentages from estimates. Do not change production code or tests unless the request includes implementation.
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. 28d ago Changed · +3 tokens per session 4a800ce825a9
  2. 1mo ago Changed · -42 lines b2431ed22458
  3. 3mo ago First seen · 57 lines · 13 tokens per session scan A 07d7a56c4a92

Subscribe to this mod's changes

check-coverage is a skill published in the GitHub repository TypedDevs/bashunit (443 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 338 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-30.

Related

check-coverage compared with skills from other repositories

check-coverage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
check-coverageTypedDevs/bashunitSkill443todayMITA16Claude Code
mirage-vfs-authoringstrukto-ai/mirageSkill4.0ktodayApache-2.0A65Claude Code
x-mankierx-cmd/x-cmdSkill4.8k7d agoApache-2.0A62Claude Code, Codex
x-osvx-cmd/x-cmdSkill4.8k7d agoApache-2.0A72Claude Code, Codex
x-uptimex-cmd/x-cmdSkill4.8k7d agoApache-2.0A67Claude Code, Codex
wikipediax-cmd/x-cmdSkill4.8k7d agoApache-2.0A49Claude Code, Codex
cvex-cmd/x-cmdSkill4.8k7d agoApache-2.0A49Claude Code, Codex