Agent skill

Dart Test Coverage

by kevmoo in kevmoo/dash_skills

Understand and improve test coverage in a Dart package. An agent skill from kevmoo/dash_skills.

Apache-2.0Auto-check passedTesting & QA

Install Dart Test Coverage

skills CLI
$ npx skills add kevmoo/dash_skills --skill dart-test-coverage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kevmoo/dash_skills dart-test-coverage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kevmoo/dash_skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dart-test-coverage .claude/skills/dart-test-coverage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dart-test-coverage
GitHub stars
147
Token cost
~1.1k tokens
SKILL.md length
511 words
Files
8 (incl. scripts)
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

Understand and improve test coverage in a Dart package. An agent skill from kevmoo/dash_skills.

  • Works in 2 steps: Run Tests with Coverage: dart test… → Interpret Results: Use the script or…
  • Tasks that involve Test coverage
  • SKILL.md covers When to use this skill, Discovery, How to use this skill (The… and Running Coverage, plus 3 more sections
  • Runs Dart scripts from its folder; calls dart

What it does

Dart Test Coverage is an agent skill from kevmoo/dash_skills. Understand and improve test coverage in a Dart package. Helps agents run coverage, interpret results, and identify missed lines.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including scripts (for example `evals/evals.json`, `example/pubspec.yaml` and `scripts/pubspec.yaml`).

It sits in Testing & QA, covering Test coverage and Cross-platform mobile apps. It works with Dart. The repository describes itself as: Agent Skills for Dart and Flutter ecosytem. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Test coverage
  • Tasks that involve Cross-platform mobile apps

Example prompts

  • “/dart-test-coverage”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Run Tests with Coverage: dart test --coverage=.dart_tool/coverage
  2. Interpret Results: Use the script or format_coverage as described in

What it can do on your machine

Read from SKILL.md and the folder at commit d3439fb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Dart), which the agent can run.

    Shell commands in SKILL.md call:

    • dart

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dart Test Coverage loads about 1.1k tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 511 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from kevmoo/dash_skills at commit d3439fb, republished under its Apache-2.0 licence (© kevmoo). 511 words, ~1,086 tokens.

Download SKILL.mdSave it as .claude/skills/dart-test-coverage/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
dart-test-coverage
description
Understand and improve test coverage in a Dart package. Helps agents run coverage, interpret results, and identify missed lines.
key_features
LCOV report collection, Missed line identification, Coverage analysis & improvement

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:

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

Interpreting Results

Option 1: Use the custom interpreter script

This repository includes a zero-dependency script that parses the raw JSON output and provides a summary of covered percentage and missed lines.

Run it from the project root (adjust path to script as needed):

bash
dart run skills/dart-test-coverage/scripts/interpret_coverage.dart .dart_tool/coverage <package_name>

Replace <package_name> with the name from pubspec.yaml.

Example Output:

package:my_pkg/src/file.dart: 50.0% (2/4 lines)
  Missed lines: 3, 4
Show full SKILL.md (191 more words)Show less
Option 2: Use package:coverage

If package:test is installed, package:coverage is likely available as a transitive dependency. You can use its format_coverage tool.

To get a human-readable "pretty print" of the coverage:

bash
dart run coverage:format_coverage --in=.dart_tool/coverage --out=stdout --pretty-print --report-on=lib

This will output the file content with hit counts on the left (e.g., 0| for missed lines).

Best Practices for Reporting Results

When presenting coverage results to the user, follow these guidelines:

  1. State the high-level percentage first to give immediate context.
  2. Identify specific files and missed lines clearly.
  3. Translate line numbers to code: Don't just say "lines 3-6 are missed". Look at the source file and tell the user which functions or blocks are untested (e.g., "The divide function is missing coverage").
  4. Propose concrete fixes: Provide example test code that the user can immediately apply to cover the missed lines.
  5. Use tables for multi-file summaries: When reporting on multiple files, use a markdown table with columns for File, Coverage %, and Missed Lines to make the summary easy to scan.

Constraints

  • ALWAYS verify that tests pass before collecting coverage.
  • DO NOT commit the .dart_tool/coverage directory.
  • Focus coverage improvements on lib/ files, not test/ or generated files.

© kevmoo, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts) in skills/dart-test-coverage of kevmoo/dash_skills.

  • SKILL.md
  • evals/evals.json
  • example/lib/src/calculator.dart
  • example/pubspec.yaml
  • example/test/calculator_test.dart
  • scripts/interpret_coverage.dart
  • scripts/pubspec.yaml
  • scripts/test/interpret_coverage_test.dart

Open the folder on GitHubat commit d3439fb

Compare with similar skills

Dart Test Coverage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dart Test Coverage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dart Test Coverage this skillkevmoo/dash_skills147—~1.1kAutomated safety check: PassApache-2.0
Test Guidelinesgetsentry/sentry-dart873—~3.1kAutomated safety check: PassMIT
Green GateVeryGoodOpenSource/vgv-ai-flutter-plugin169—~4.7kAutomated safety check: NotesMIT
Code DedupMelbourneDeveloper/dart_node113—~603Automated safety check: PassNone
Flutter TestingMADTeacher/mad-agents-skills110—~1.5kAutomated safety check: PassMIT
Flutter Add Integration Testabdulmominsakib/localmind261—~1.8kAutomated safety check: PassMIT

Similar skills

  • Test Guidelines

    getsentry/sentry-dart

    Official

    Enforce Sentry Dart/Flutter SDK test conventions for naming, structure, and fixtures.

    873 GitHub stars~3.1k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Green Gate

    VeryGoodOpenSource/vgv-ai-flutter-plugin

    Drives a Dart or Flutter package fully green through a verify-fix-rerun loop across four gates: analyze, format, test, coverage.

    169 GitHub stars~4.7k tokensUpdated 2 days ago
    MobileAuto-check: notes
  • Code Dedup

    MelbourneDeveloper/dart_node

    Searches for duplicate code, duplicate tests, and dead code, then safely merges or removes them.

    113 GitHub stars~603 tokensUpdated 24 days ago
    Testing & QAAuto-check passed
  • Flutter Testing

    MADTeacher/mad-agents-skills

    Write, fix, review, debug, and validate Flutter tests for apps, packages, and plugins.

    110 GitHub stars~1.5k tokensUpdated 5 mo ago
    Testing & QAAuto-check passed
  • Flutter Add Integration Test

    abdulmominsakib/localmind

    Configures Flutter Driver for app interaction and converts MCP actions into permanent integration tests.

    261 GitHub stars~1.8k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Testing

    evanca/flutter-ai-rules

    A skill your agent uses when writing or reviewing Flutter/Dart tests (unit, widget, golden), fixing flaky tests, adding coverage, or choosing between unit and widget tests.

    649 GitHub stars~1.1k tokensUpdated 24 days ago
    Testing & QAAuto-check passed

More from kevmoo/dash_skills

All 12 skills in this repo
  • Profile Dart Code

    kevmoo/dash_skills

    Profile Dart command-line applications using the VM Service protocol to capture CPU samples and identify performance bottlenecks.

    147 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Dart Best Practices

    kevmoo/dash_skills

    General best practices for Dart development. An agent skill from kevmoo/dash_skills.

    147 GitHub stars~709 tokensUpdated today
    Auto-check passed
  • Dart Doc Validation

    kevmoo/dash_skills

    Best practices for validating Dart documentation comments. An agent skill from kevmoo/dash_skills.

    147 GitHub stars~822 tokensUpdated today
    Auto-check passed
  • Dart Long Lines

    kevmoo/dash_skills

    Guidelines for handling long lines in Dart code to adhere to the 80-column rule.

    147 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Dart Matcher Best Practices

    kevmoo/dash_skills

    Best practices for using expect and package:matcher. An agent skill from kevmoo/dash_skills.

    147 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Dart Modern Features

    kevmoo/dash_skills

    Guidelines for using modern Dart features (v3.0 - v3.10) such as Records, Extension Types, Class Modifiers, Wildcards, Digit Separators, Null-Aware Elements, and Dot Shorthands.

    147 GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Dart Test Coverage

What does Dart Test Coverage do?

Understand and improve test coverage in a Dart package. An agent skill from kevmoo/dash_skills. Dart Test Coverage is an agent skill from kevmoo/dash_skills. Understand and improve test coverage in a Dart package.

When should I use Dart Test Coverage?

Dart Test Coverage fits situations like: tasks that involve Test coverage; tasks that involve Cross-platform mobile apps.

How do I install Dart Test Coverage in Claude Code?

Run `npx skills add kevmoo/dash_skills --skill dart-test-coverage -a claude-code`. Or copy the skill folder (skills/dart-test-coverage in kevmoo/dash_skills) into .claude/skills/dart-test-coverage in your project. Claude Code loads it when a task matches its description.

How do I install Dart Test Coverage in Codex?

Run `npx skills add kevmoo/dash_skills --skill dart-test-coverage -a codex`. Or copy the skill folder (skills/dart-test-coverage in kevmoo/dash_skills) into .agents/skills/dart-test-coverage in your project. Codex loads it when a task matches its description.

Can I use Dart Test Coverage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kevmoo/dash_skills --skill dart-test-coverage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dart-test-coverage, .gemini/skills/dart-test-coverage, .github/skills/dart-test-coverage and .opencode/skills/dart-test-coverage in your project.

What does Dart Test Coverage need to run?

Going by SKILL.md and its folder, Dart Test Coverage needs Dart for the scripts in its folder and the command-line tools its instructions call (dart).

Does Dart Test Coverage access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dart Test Coverage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Dart Test Coverage use?

Dart Test Coverage is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dart Test Coverage use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dart Test Coverage?

Skills that share tags, products or a category with Dart Test Coverage: Test Guidelines (getsentry/sentry-dart, 873 stars), Green Gate (VeryGoodOpenSource/vgv-ai-flutter-plugin, 169 stars), Code Dedup (MelbourneDeveloper/dart_node, 113 stars) and Flutter Testing (MADTeacher/mad-agents-skills, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dart Test Coverage?

kevmoo (a GitHub user) maintains it in kevmoo/dash_skills, which has 147 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 8, 2026.

Source: kevmoo/dash_skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.