Agent skill · Testing · flutter

dart-generate-test-mocks agent skill by flutter

Defines and generates mock objects for external dependencies using package:mockito and build_runner, for unit testing classes that depend on services like APIs or databases.

View on GitHub Read SKILL.md

At a glance

PublisherFlutter Official
Repositoryflutter/skills (24 listed skills)
CategoryTesting and QA
LicenseBSD-3-Clause
Last commitOctober 16, 2026 (repository)
SKILL.md148 lines, 730 words
Bundled files1 file
Quality score77/100 · C Passes all seven graded checks
Security scanNot scanned
README badgeGet the listing badge and raise the score

Before you install

Read from the skill's files at the directory's October 19, 2026 snapshot: what ships with it, what its code reads, and the terms it is published under.

Install dart-generate-test-mocks

The skills CLI works with Claude Code, Codex, Cursor and other agents; the other routes copy the folder by hand.

Skills CLI
npx skills add https://github.com/flutter/skills/tree/main/skills/dart-generate-test-mocks
Claude Code, project-level copy
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/flutter/skills.git "$tmp/repo"
mkdir -p .claude/skills
cp -R "$tmp/repo/"skills/dart-generate-test-mocks .claude/skills/
rm -rf "$tmp"
Codex installer
python3 ~/.codex/skills/.system/skill-installer/scripts/install-skill-from-github.py \
    --repo flutter/skills \
    --path skills/dart-generate-test-mocks

flutter/skills is third-party code. Read SKILL.md and any bundled scripts before you install it.

How the author describes it

Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.

From the description field of SKILL.md. Agents read this line to decide when to load the skill.

Sections in SKILL.md

Files in the skill folder

Suede Skill Check: 77/100 · C

Report snapshot · · graded-v2

The rubric totals 100 points; published scores are capped at 99. Security scan: not scanned.

Source revision: b60d0736a33a. Report version ec99407f2343. Badge URLs follow the latest listing; save the report to keep this version.

Download report · Request a fresh review

What to review next

  • Boundary clause: 0 of 4 points. 4 when the description says when not to use the skill (“Not for …”, “Do not use …”, “Use … instead”).
  • Example request: 0 of 3 points. 3 when the description quotes an example request (3–60 characters in quotation marks).
  • Reference files: 0 of 3 points. 3 when the skill folder ships a references/, reference/ or docs/ folder.

Add declarations and bundled files when they describe the skill’s actual needs. Update the source, then request a fresh review with the changed commit or PR.

dart-generate-test-mocks passes the required frontmatter check and all seven graded checks, which cover the SKILL.md format, a declared license and a commit in the last year. Those checks earn 56 of the score’s points; the rest come from description quality, instruction depth, bundled files, maintenance and curated-list citations. How the score works.

See the checks and points
CheckResult
Frontmatter parses and declares a name and a descriptionPass
Name uses lowercase letters, digits and hyphens, 64 characters or fewerPass
Name matches the skill's folder namePass
Description is between 50 and 1,024 charactersPass
Description says when an agent should use the skillPass
SKILL.md body is 500 lines or fewerPass
A license is declared in the frontmatter or the repositoryPass
Repository has a commit in the last 12 monthsPass
Score componentPoints
Structural checks56 of 56
Description length5 of 5
Boundary clause0 of 4
Example request0 of 3
Instruction depth7 of 7
Reference files0 of 3
Bundled scripts0 of 2
Recent maintenance9 of 9
Curated-list citations0 of 7
Tool permissions declared0 of 2
Compatibility declared0 of 2

Show the listing and raise the score

dart-generate-test-mocks is listed with 77/100 · C. This badge links to its Suede listing. Skills scoring 80–99 add a numeric and a letter quality shield; the largest open points for dart-generate-test-mocks are boundary clause (4), example request (3) and reference files (3). Send your repository and the points you want to raise, then request a fresh review after updating the skill.

Suede Skills Directory: listed

Markdown
[![Suede Skills Directory: listed](https://skills.suedeai.ai/directory/badge.svg)](https://skills.suedeai.ai/directory/flutter/skills/dart-generate-test-mocks/)
HTML
<a href="https://skills.suedeai.ai/directory/flutter/skills/dart-generate-test-mocks/"><img src="https://skills.suedeai.ai/directory/badge.svg" alt="Suede Skills Directory: listed" height="20"></a>

Where this skill is cited

flutter/skills is listed from its publisher's official collection or a listing request.

All testing and QA skills

More from flutter/skills

All 24 skills in flutter/skills