/dart-flutter:dart-add-unit-testfrom Dart and Flutter
Add 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.
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.
Place *_test.dart files under test/, near the structure of the code they cover when useful. Use package:test/test.dart for Dart packages and package:flutter_test/flutter_test.dart for Flutter packages. Test public behavior, edge cases, and relevant failures with test, group, and expect.
Use real, in-memory dependencies where simple. Inject a fake, stub, or generated mock only when the dependency makes the test slow, nondeterministic, or hard to control. If a generated mock is needed, follow dart-generate-test-mocks.
Run the focused file with dart test <file> or flutter test <file>, then any wider suite justified by the change. Keep device integration tests in integration_test/ and use the project's device runner rather than treating them as ordinary unit tests.
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-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./dart-fix-runtime-errorsDiagnose and fix observed Dart or Flutter runtime failures from a stack trace, failing test, or running app. Use for exceptions, failed casts, late initialization errors, and similar failures.