dart-collect-coverage

dart-collect-coverage is a skill for Claude Code, Codex from sutchan/Agent-Skills-Hub. It costs 21 tokens per session (1,196 once invoked), scanned A, a copy of dart-collect-coverage, MIT.

A Dart and Flutter testing guide that collects code coverage and produces LCOV reports. LCOV is a standard report format showing which code tests execute.

In plain words
What is it for?
Use it to configure the coverage package, run Dart or Flutter tests, apply coverage-ignore comments, and generate coverage reports.
Why use it?
It helps you measure how much of an application your tests cover and exclude deliberately untestable code from the measurement.

Skill for Claude CodeCodex

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

Good fit Use it to configure the coverage package, run Dart or Flutter tests, apply coverage-ignore comments, and generate coverage reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sutchan/agent-skills-hub/dart-collect-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 sutchan/Agent-Skills-Hub --skill dart-collect-coverage
Clone the repo
git clone --depth 1 https://github.com/sutchan/Agent-Skills-Hub

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/dart-collect-coverage"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/dart-collect-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,196 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.
Origin 94% copy Near-identical to another mod 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.00021 $0.01196
Opus 5.5 $0.00008 $0.00478
Sonnet 5.5 $0.00004 $0.00239
Haiku 4.5 $0.00002 $0.00120

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

Security

Grade A, and why

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

Origin

This is a copy

94% identical to dart-collect-coverage — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/dart-collect-coverage/SKILL.md · 145 lines

How it starts

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

Implementing Dart and Flutter Test Coverage

Contents

Testing Fundamentals

Structure your test suites using the standard Dart testing paradigms. Use package:test for Dart projects and flutter_test for Flutter projects.

  • Unit Tests: Verify individual functions, methods, or classes.
  • Component/Widget Tests: Verify component behavior, layout, and interaction using mock objects (package:mockito).
  • Integration Tests: Verify entire app flows on simulated or real devices.

Coverage Directives

Exclude specific lines, blocks, or entire files from coverage metrics using inline comments. Pass the --check-ignore flag during formatting to enforce these directives.

  • Ignore a single line: // coverage:ignore-line
  • Ignore a block of code: // coverage:ignore-start and // coverage:ignore-end
  • Ignore an entire file: // coverage:ignore-file

Workflow: Configuring and Generating Coverage Reports

Follow this sequential workflow to add the coverage package, execute tests, and generate an LCOV report.

Task Progress Checklist:

  • 1. Add coverage as a dev_dependency.
  • 2. Execute the automated coverage script.
  • 3. Validate the LCOV output.

1. Add Dependencies

Add the coverage package as a dev_dependency to your project. Do not add it to standard dependencies.

If working in a standard Dart project:

dart pub add dev:coverage

If working in a Flutter project:

flutter pub add dev:coverage

2. Collect Coverage and Generate LCOV

Use the bundled test_with_coverage script. This script automatically runs all tests, collects the JSON coverage data from the Dart VM, and formats it into an LCOV report.

Read the full file on GitHub · 145 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. 1mo ago Changed · +1 lines c93f8565723e
  2. 1mo ago Changed · +2 lines · +2 tokens per session a7cb0ef0fe05
  3. 2mo ago Changed · -4 lines · -2 tokens per session 229035193bfd
  4. 2mo ago First seen · 146 lines · 21 tokens per session scan A 3daabc669566

Subscribe to this mod's changes

dart-collect-coverage is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (3 stars, last pushed 6d ago), licensed MIT. It adds 21 tokens to every session and 1,196 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to dart-collect-coverage, differing in 11 lines, and is treated as a copy.

Related

dart-collect-coverage compared with skills from other repositories

dart-collect-coverage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dart-collect-coveragesutchan/Agent-Skills-HubSkill36d agoMITA21Claude Code, Codex
writing-skillsobra/superpowersSkill331k2d agoMITA20Claude Code
writing-plansobra/superpowersSkill331k2d agoMITA21Claude Code
receiving-code-reviewobra/superpowersSkill331k2d agoMITA38Claude Code
skill-creatorluongnv89/asmSkill976yesterdayMITA60Claude Code
iflytek-pdf-image-ocriflytek/iFly-SkillsSkill2175d agoApache-2.0A81Claude Code, Codex
iflytek-translateiflytek/iFly-SkillsSkill2175d agoApache-2.0A65Claude Code, Codex