dart-test-fundamentals

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

A guide to Dart's package:test library, which provides tools for writing and organizing automated tests. It covers individual tests, groups, setup, cleanup, and test configuration.

In plain words
What is it for?
Use it when writing tests, organizing test suites, configuring dart_test.yaml, or replacing manual try-finally cleanup with test teardown support.
Why use it?
It helps keep Dart test files consistent and avoids fragile or confusing lifecycle and cleanup patterns.

Skill for Claude CodeCodex

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

Good fit Use it when writing tests, organizing test suites, configuring dart_test.yaml, or replacing manual try-finally cleanup with test teardown support.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevmoo/dash_skills/dart-test-fundamentals
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-fundamentals
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-fundamentals

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevmoo/dash_skills/dart-test-fundamentals"><img src="https://agentmods.dev/badge/skills/kevmoo/dash_skills/dart-test-fundamentals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,397 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
  • Socket pass 17 Sept 2026
  • Snyk pass 17 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 174
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00044 $0.02397
Opus 5.5 $0.00018 $0.00959
Sonnet 5.5 $0.00009 $0.00479
Haiku 4.5 $0.00004 $0.00240

Measured 12d ago against content hash 17c6847289cd, 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-fundamentals 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 12d 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

Copies of this mod

1 near-identical copy found in the catalogue:

skills/dart-test-fundamentals/SKILL.md · 267 lines

How it starts

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

Dart Test Fundamentals

When to use this skill

Use this skill when:

  • Writing new test files.
  • Structuring test suites with group.
  • Configuring test execution via dart_test.yaml.
  • Understanding test lifecycle methods.

When NOT to use (Abstention Guardrails)

Do NOT apply this skill or refactor existing tests when:

  • Legacy Single-Group Churn: Do NOT remove or reformat existing group hierarchies in untouched existing tests unless explicitly asked, as this causes unwanted diff churn.
  • Alternative Assertion Frameworks: The package has migrated to package:checks or a specialized testing framework; do not revert tests back to legacy package:matcher idioms.
  • Trivial Tests with Zero Setup: Simple standalone tests with no shared state or resources do not need group, setUp, or addTearDown. Do not add ceremonial wrapper boilerplate.

Discovery

To find candidates for improving test structure:

try-finally Cleanup

Search for tests that use try-finally for cleanup instead of addTearDown:

  • Regex: \bfinally\s*\{ (Check if this is used for resource cleanup inside a test).

Core Concepts

1. Test Structure (test and group)

  • test: The fundamental unit of testing.

    test('description', () {
      // assertions
    });
    
  • group: Used to organize tests into logical blocks.

    • Groups can be nested.
    • Descriptions are concatenated (e.g., "Group Description Test Description").
    • Helps scope setUp and tearDown calls.
    • Naming: Use PascalCase for groups that correspond to a class name (e.g., group('MyClient', ...)).
    • Avoid Single Groups: Do not wrap all tests in a file with a single group call if it's the only one.
      • NOTE: DO NOT remove groups when doing a cleanup on existing code you didn't create unless explicitly asked to. This can cause a LOT of churn in the DIFF that most engineers won't want!
  • Naming Tests test('test name here',:

    • Avoid redundant "test" prefixes. Use group instead.
    • Include the expected behavior or outcome in the description (e.g., 'throws StateError' or 'adds API key to URL').
    • Descriptions should read well when concatenated with their group name.

Read the full file on GitHub · 267 lines

Files

What ships with it

1 file 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. 12d ago Changed · +39 lines 17c6847289cd
  2. 27d ago Changed · +29 lines 0dc3308b6935
  3. 1mo ago Changed · +24 lines 7a67627deffb
  4. 2mo ago First seen · 175 lines · 44 tokens per session scan A 89b3da6b33a0

Subscribe to this mod's changes

dart-test-fundamentals is a skill published in the GitHub repository kevmoo/dash_skills (148 stars, last pushed 12d ago), licensed Apache-2.0. It adds 44 tokens to every session and 2,397 once invoked, about $0.0002 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

Other skills, from other repositories

rust-testing

Rust testing patterns including unit tests, integration tests, async testing, property-based testing, mocking, and coverage. Follows TDD methodology.

affaan-m/ECC · 31 tokens

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens

temporal-python-testing

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

wshobson/agents · 45 tokens

java-affected-tests

Use before opening or updating an OpenMetadata PR that changes Java, a JSON schema, an index mapping, a SQL migration, seed data or a pom — PR CI no longer runs the Java integration tests (they run only in the merge queue) and the JavaUIIT/search-it suites run only nightly, so this selects the unit tests and…

open-metadata/OpenMetadata · 120 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

dotnet/skills · 149 tokens

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

samber/cc-skills-golang · 115 tokens