/dart-flutter:dart-generate-test-mocksfrom Dart and Flutter
Generate Mockito test doubles for Dart or Flutter dependencies when hand-written fakes are impractical. Use for controlled service responses and interaction verification.
Ships in Dart and Flutter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
First check whether a simple fake or injected in-memory implementation can cover the behavior. If Mockito is useful, add mockito and build_runner as dev dependencies and keep the production dependency injectable.
Place @GenerateNiceMocks([MockSpec<Dependency>()]) or @GenerateMocks on the test library according to the desired unstubbed-call behavior. Import its generated .mocks.dart file, then run dart run build_runner build. Stub each call whose return value matters, and verify interactions only when they are part of the behavior under test.
Run the focused test and analysis. Do not refactor unrelated production architecture merely to use mocks.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mordechai30/flutter-dart-skills --plugin dart-flutter26 skills in this plugin
/dart-add-unit-testAdd focused unit tests for Dart code with package:test, or flutter_test in Flutter projects. Use for new logic and regressions that can be checked without a running app./dart-build-cli-appBuild Dart command-line tools with sound argument parsing, streams, exit status, packaging, and subprocess behavior. Use for console apps and installed Dart executables./dart-collect-coverageCollect and inspect LCOV test coverage for Dart or Flutter projects. Use when the user requests a coverage report or needs to find untested behavior.