dart-test-coverage

dart-test-coverage is a skill for Claude Code, Codex from kevmoo/dash_skills. It costs 29 tokens per session (998 once invoked), scanned A, original, Apache-2.0.

A Dart testing guide for measuring test coverage, meaning which parts of the code are exercised by tests.

In plain words
What is it for?
Use it to run Dart tests with coverage, inspect missed lines, interpret the results, and add tests for uncovered code.
Why use it?
It helps reveal untested lines and areas that need more tests, while checking that the existing tests pass first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to run Dart tests with coverage, inspect missed lines, interpret the results, and add tests for uncovered code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevmoo/dash_skills/dart-test-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 kevmoo/dash_skills --skill dart-test-coverage
Clone the repo
git clone --depth 1 https://github.com/kevmoo/dash_skills

Made for: Claude Code, Codex.

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 dart-test-coverage

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevmoo/dash_skills/dart-test-coverage"><img src="https://agentmods.dev/badge/skills/kevmoo/dash_skills/dart-test-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 998 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.00029 $0.00998
Opus 5.5 $0.00012 $0.00399
Sonnet 5.5 $0.00006 $0.00200
Haiku 4.5 $0.00003 $0.00100

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

Security

Grade A, and why

dart-test-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.

skills/dart-test-coverage/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dart Test Coverage

Guidelines for running and interpreting test coverage in Dart packages.

When to use this skill

  • When asked to "check test coverage" or "improve coverage".
  • When you need to identify which parts of a library are untested.

When NOT to use (Abstention Guardrails)

Do NOT collect or demand test coverage for:

  • Generated Code: Code generated by builders (*.g.dart, *.freezed.dart, protobufs).
  • Platform-Specific FFI / OS Entrypoints: Low-level platform bindings or entrypoints that require specific physical hardware or OS services not available in the execution environment.
  • Example Applications & Tool Scripts: Standalone sample code under example/ or developer maintenance scripts under tool/ unless the package explicitly mandates 100% repository-wide coverage.
  • Failing Test Suites: If existing tests are failing under dart test, fix the broken tests first before collecting or reporting coverage.

Discovery

To find areas lacking test coverage:

Run Coverage Analysis

Follow the workflow to generate and interpret coverage data:

  1. Run Tests with Coverage: dart test --coverage=.dart_tool/coverage
  2. Interpret Results: Use the script or format_coverage as described in the Interpreting Results section to identify specific files and missed lines.

How to use this skill (The Workflow)

  1. Ensure tests pass by running dart test.
  2. Collect coverage by running dart test --coverage=.dart_tool/coverage.
  3. Interpret the results using the provided script or standard tools.
  4. Add tests to cover missed lines.

Running Coverage

Run the following command to collect coverage in JSON format:

dart test --coverage=.dart_tool/coverage

[!NOTE] We use .dart_tool/coverage as the output directory because .dart_tool is typically already ignored in .gitignore files.

[!TIP] For projects with complex conditional logic, you can pass the --branch-coverage flag to dart test to collect branch-level coverage.

Read the full file on GitHub · 126 lines

Files

What ships with it

7 files 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.

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. 2mo ago Changed · +29 lines b2b6befae9da
  2. 3mo ago First seen · 97 lines · 29 tokens per session scan A 8c85a37ea4d7

Subscribe to this mod's changes

dart-test-coverage is a skill published in the GitHub repository kevmoo/dash_skills (149 stars, last pushed yesterday), licensed Apache-2.0. It adds 29 tokens to every session and 998 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

dart-test-coverage compared with skills from other repositories

dart-test-coverage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dart-test-coveragekevmoo/dash_skillsSkill149yesterdayApache-2.0A29Claude Code, Codex
testingevanca/flutter-ai-rulesSkill67820d agoMITA33Claude Code
mockitoevanca/flutter-ai-rulesSkill67820d agoMITA32Claude Code
mocktailevanca/flutter-ai-rulesSkill67820d agoMITA34Claude Code
flutter-test-writerbeel-collab/presets.devSkill39d agoMITA44Claude Code, Codex
flutter-testingPoorgramer-Zack/dart-expert-skillsSkill723d agoMITA137Claude Code, Codex
flutter-testingMADTeacher/mad-agents-skillsSkill1157mo agoMITA93Claude Code, Codex