Agent skill

Flutter Testing

by MADTeacher in MADTeacher/mad-agents-skills

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

MITAuto-check passedTesting & QA

Install Flutter Testing

skills CLI
$ npx skills add MADTeacher/mad-agents-skills --skill flutter-testing -a claude-code

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

GitHub CLI
$ gh skill install MADTeacher/mad-agents-skills flutter-testing --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/MADTeacher/mad-agents-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/flutter-testing .claude/skills/flutter-testing && 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
flutter-testing
GitHub stars
110
Token cost
~1.5k tokens
SKILL.md length
681 words
Files
8 (incl. scripts, references)
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 5 steps: Inspect the project before changing… → Choose the test layer → Read only the reference files needed for… → …
  • Adding unit tests
  • SKILL.md covers Principle 0, Workflow, Resource Routing and Mandatory Validation, plus 2 more sections
  • Runs Shell scripts from its folder; calls flutter, dart and bash

What it does

Flutter Testing is an agent skill from MADTeacher/mad-agents-skills. Write, fix, review, debug, and validate Flutter tests for apps, packages, and plugins. Use when adding unit tests, widget tests, integration tests, MethodChannel or plugin mocks, Mockito or mocktail test doubles, golden or accessibility checks, CI test commands, test failures, MissingPluginException, pump or pumpAndSettle problems, finder errors, buildrunner mock generation, device integration testing, web integration testing, or flaky Flutter tests.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `references/common-errors.md`, `references/integration-testing.md` and `references/mocking.md`).

It sits in Testing & QA, covering Cross-platform mobile apps, Integration testing and Unit testing. It works with Flutter and Dart. The repository describes itself as: Collection of agent skills for AI assistants working with Dart and Flutter projects. The licence is MIT.

When your agent uses it

  • Adding unit tests
  • Integration tests
  • Mocktail test doubles
  • Accessibility checks

Example prompts

  • “/flutter-testing”

Requirements

  • A Bash shell

Workflow steps

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

  1. Inspect the project before changing tests: pubspec.yaml, existing test/,
  2. Choose the test layer
  3. Read only the reference files needed for the chosen scenario.
  4. Implement the smallest deterministic test or test fix using the project's
  5. Run mandatory validation. If validation cannot run, report the exact blocker

What it can do on your machine

Read from SKILL.md and the folder at commit 2fb67e3. 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 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • flutter
    • dart
    • bash

    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

Flutter Testing loads about 1.5k tokens when it runs, and up to ~20k if it reads all its reference files. Until then it costs about 118 tokens; SKILL.md has 681 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~118
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~20k

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 MADTeacher/mad-agents-skills at commit 2fb67e3, republished under its MIT licence (© MADTeacher). 681 words, ~1,536 tokens.

Download SKILL.mdSave it as .claude/skills/flutter-testing/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
flutter-testing
description
Write, fix, review, debug, and validate Flutter tests for apps, packages, and plugins. Use when adding unit tests, widget tests, integration tests, MethodChannel or plugin mocks, Mockito or mocktail test doubles, golden or accessibility checks, CI test commands, test failures, MissingPluginException, pump or pumpAndSettle problems, finder errors, build_runner mock generation, device integration testing, web integration testing, or flaky Flutter tests.
metadata.author
Stanislav [MADTeacher] Chernyshev
metadata.version
2.0

Flutter Testing

You are a Flutter testing engineer for app, package, and plugin projects.

Principle 0

Do not write Flutter tests from memory. First inspect the project, choose the right test layer, read the routed reference for the scenario, then run the closest validation command. Broken or flaky tests waste more time than missing tests because they create false confidence and slow future changes.

Workflow

  1. Inspect the project before changing tests: pubspec.yaml, existing test/, integration_test/, test_driver/, generated mock files, state management, platform abstractions, plugin usage, and CI commands.
  2. Choose the test layer:
    • Pure Dart functions, repositories, services, state reducers, and view models: unit tests.
    • Single widgets, forms, navigation shells, semantics, gestures, responsive layout, and UI state: widget tests.
    • Complete user flows, real device behavior, screenshots, performance reports, native/plugin bridges, and browser/device targets: integration tests.
    • Flutter plugins or app code using platform channels: plugin and mocking guidance.
  3. Read only the reference files needed for the chosen scenario.
  4. Implement the smallest deterministic test or test fix using the project's existing test style, dependency injection pattern, keys, fixtures, mocks, and CI constraints.
  5. Run mandatory validation. If validation cannot run, report the exact blocker and the concrete risk instead of presenting the change as verified.

Resource Routing

TaskRead or runWhy
Write or fix pure Dart tests, async tests, stream tests, matchers, exceptions, or test organizationreferences/unit-testing.mdUnit-test patterns that compile under Dart null safety
Write or fix widget tests, finders, gestures, forms, navigation, semantics, scrolling, animations, or layout-size testsreferences/widget-testing.mdflutter_test APIs and widget-specific pitfalls
Add or fix integration tests, device/browser runs, performance reports, screenshots, persistence flows, platform scenarios, or CI integrationreferences/integration-testing.mdCurrent integration_test APIs and target commands
Mock dependencies, repositories, platform channels, generated Mockito mocks, manual fakes, or state-management collaboratorsreferences/mocking.mdDeterministic test-double patterns and mock generation
Diagnose failing tests, layout errors, MissingPluginException, finder failures, timeouts, async hangs, or debugging outputreferences/common-errors.mdError-to-fix mapping without guessing
Test Flutter plugin packages, native Android/iOS code, example-app integration tests, or plugin registration/error pathsreferences/plugin-testing.mdPlugin package layout and native/Dart test split
Edit this skill, references, or examplesscripts/verify-examples.shDeterministic smoke check for stale patterns and broken links
Show full SKILL.md (322 more words)Show less

Mandatory Validation

  • After editing Dart tests or production code, run the narrowest relevant command first, such as flutter test test/my_widget_test.dart, flutter test --plain-name "subtree", or dart test for pure Dart packages.
  • After adding or changing generated Mockito mocks, run dart run build_runner build or the repository's established build command before running tests.
  • For integration tests on mobile or desktop targets, run flutter test -d <device-id> integration_test/<test_file>.dart when a device target is required; otherwise run the documented project command.
  • For browser integration tests that require integrationDriver, run flutter drive --driver=test_driver/integration_test.dart --target=integration_test/<test_file>.dart -d chrome or the project's web driver command.
  • After fixing flaky tests, run the specific test more than once or use the repository's repeat/randomization option if one exists.
  • After editing this skill or its references, run bash flutter-testing/scripts/verify-examples.sh.

Constraints

  • Prefer package:flutter_test/flutter_test.dart for widget and integration tests, and package:test/test.dart only for pure Dart tests that do not need Flutter bindings.
  • Test user-visible behavior and public contracts. Do not assert private method calls, widget internals, or incidental rebuild counts unless performance work explicitly requires it.
  • Prefer dependency injection, fake repositories, fake platform interfaces, or MethodChannel handlers over real network, real storage, timers, permissions, or OS dialogs.
  • Do not use fixed Future.delayed waits to hide async uncertainty. Use deterministic fakes, explicit pumps, pumpAndSettle only when animations can settle, or bounded custom pumps.
  • Do not use obsolete commands or APIs: --no-sound-null-safety, flutter test --platform ..., tester.trace, tester.takeScreenshot, captureNamed, or flutter pub run build_runner build.
  • Do not simulate connectivity, permissions, or persistence by changing the test surface size or by re-pumping the app with hidden state. Use explicit fakes, test hooks, or real integration targets.

Fallback

If the repository lacks enough context to choose the test layer, ask for the target behavior and preferred test level. If devices, browsers, native tooling, network access, code generation, or dependency downloads block validation, finish with the exact command that failed, what was not verified, and the risk left for the user.

© MADTeacher, MIT. 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, references) in flutter-testing of MADTeacher/mad-agents-skills.

  • SKILL.md
  • references/common-errors.md
  • references/integration-testing.md
  • references/mocking.md
  • references/plugin-testing.md
  • references/unit-testing.md
  • references/widget-testing.md
  • scripts/verify-examples.sh

Open the folder on GitHubat commit 2fb67e3

Compare with similar skills

Flutter Testing 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.

Flutter Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Flutter Testing this skillMADTeacher/mad-agents-skills110—~1.5kAutomated safety check: PassMIT
Testingevanca/flutter-ai-rules647—~1.1kAutomated safety check: PassMIT
Flutter Add Integration Testabdulmominsakib/localmind261—~1.8kAutomated safety check: PassMIT
Flutter Testing Appsbtwld/superdeck129—~2.2kAutomated safety check: PassBSD-3-Clause
Test Guidelinesgetsentry/sentry-dart873—~3.1kAutomated safety check: PassMIT
Flutter TesterFNOSP/FlyNarwhal495—~1.4kAutomated safety check: PassAGPL-3.0

Similar skills

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

    647 GitHub stars~1.1k tokensUpdated 23 days 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 today
    Testing & QAAuto-check passed
  • Flutter Testing Apps

    btwld/superdeck

    Implements unit, widget, and integration tests for a Flutter app.

    129 GitHub stars~2.2k tokensUpdated 9 days ago
    Testing & QAAuto-check passed
  • Test Guidelines

    getsentry/sentry-dart

    Official

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

    873 GitHub stars~3.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Flutter Tester

    FNOSP/FlyNarwhal

    A skill your agent uses when creating, writing, fixing, or reviewing tests in a Flutter project.

    495 GitHub stars~1.4k tokensUpdated today
    MobileAuto-check passed
  • Bloc

    VeryGoodOpenSource/vgv-ai-flutter-plugin

    Best practices for Bloc state management in Flutter/Dart, covering Cubit versus Bloc, event and state naming, sealed classes with Equatable, the Page/View split with BlocProvider, BlocBuilder…

    169 GitHub stars~2k tokensUpdated yesterday
    MobileAuto-check passed

More from MADTeacher/mad-agents-skills

All 11 skills in this repo
  • Flutter Internationalization

    MADTeacher/mad-agents-skills

    Add, fix, audit, and maintain Flutter internationalization with gen-l10n, ARB files, AppLocalizations, flutterlocalizations, intl formatting, plural/select messages, RTL support, locale-specific…

    110 GitHub stars~1.7k tokensUpdated 5 mo ago
    Auto-check passed
  • Flutter Networking

    MADTeacher/mad-agents-skills

    Implement, fix, debug, review, or refactor Flutter networking code for HTTP/REST APIs, WebSocket realtime flows, authentication and token refresh, request headers, timeouts, retries, JSON parsing…

    110 GitHub stars~1.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Agents Md Generator

    MADTeacher/mad-agents-skills

    Create, generate, update, repair, trim, or split minimal AGENTS.md files for repository roots and confirmed nested modules using progressive disclosure.

    110 GitHub stars~1.4k tokensUpdated 5 mo ago
    Auto-check passed
  • Dart Drift

    MADTeacher/mad-agents-skills

    Build, fix, audit, and migrate Drift persistence in Dart CLI, server-side, and non-Flutter desktop apps.

    110 GitHub stars~1.2k tokensUpdated 5 mo ago
    Auto-check passed
  • Flutter Duit Bdui

    MADTeacher/mad-agents-skills

    Integrate, fix, review, migrate, test, or debug Duit / flutterduit backend-driven UI in Flutter applications.

    110 GitHub stars~1.6k tokensUpdated 5 mo ago
    Auto-check passed
  • Flutter Adaptive UI

    MADTeacher/mad-agents-skills

    Build, fix, review, and validate adaptive or responsive Flutter UIs for mobile, tablet, desktop, web, large screens, foldables, and mixed input devices.

    110 GitHub stars~1.5k tokensUpdated 5 mo ago
    Auto-check passed

Works with

Questions about Flutter Testing

What does Flutter Testing do?

Write, fix, review, debug, and validate Flutter tests for apps, packages, and plugins. Flutter Testing is an agent skill from MADTeacher/mad-agents-skills. Write, fix, review, debug, and validate Flutter tests for apps, packages, and plugins.

When should I use Flutter Testing?

Flutter Testing fits situations like: adding unit tests; integration tests; mocktail test doubles; accessibility checks.

How do I install Flutter Testing in Claude Code?

Run `npx skills add MADTeacher/mad-agents-skills --skill flutter-testing -a claude-code`. Or copy the skill folder (flutter-testing in MADTeacher/mad-agents-skills) into .claude/skills/flutter-testing in your project. Claude Code loads it when a task matches its description.

How do I install Flutter Testing in Codex?

Run `npx skills add MADTeacher/mad-agents-skills --skill flutter-testing -a codex`. Or copy the skill folder (flutter-testing in MADTeacher/mad-agents-skills) into .agents/skills/flutter-testing in your project. Codex loads it when a task matches its description.

Can I use Flutter Testing 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 MADTeacher/mad-agents-skills --skill flutter-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flutter-testing, .gemini/skills/flutter-testing, .github/skills/flutter-testing and .opencode/skills/flutter-testing in your project.

What does Flutter Testing need to run?

Going by SKILL.md and its folder, Flutter Testing needs a shell for the scripts in its folder and the command-line tools its instructions call (flutter, dart and bash). Our summary lists: A Bash shell.

Does Flutter Testing 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 Flutter Testing 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 Flutter Testing use?

Flutter Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Flutter Testing use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 18k tokens, read only when the agent opens those files.

What are the alternatives to Flutter Testing?

Skills that share tags, products or a category with Flutter Testing: Testing (evanca/flutter-ai-rules, 647 stars), Flutter Add Integration Test (abdulmominsakib/localmind, 261 stars), Flutter Testing Apps (btwld/superdeck, 129 stars) and Test Guidelines (getsentry/sentry-dart, 873 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Flutter Testing?

MADTeacher (a GitHub user) maintains it in MADTeacher/mad-agents-skills, which has 110 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on May 1, 2026.

Source: MADTeacher/mad-agents-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.