dart-add-unit-test
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains…
Rules and formatting guidelines for writing Dart /// API documentation and doc comments. Use when documenting Dart code, writing doc comments for any Dart declaration (libraries, classes, methods, variables, etc.), or when instructed to follow the Effective Dart documentation
$ npx -y skills add flutter/agent-plugins --skill dart-write-documentation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/dart-write-documentationContext preview
The summary Claude sees to decide when to auto-load this skill.
Rules and formatting guidelines for writing Dart /// API documentation and doc comments. Use when documenting Dart code, writing doc comments for any Dart declaration (libraries, classes, methods, variables, etc.), or when instructed to follow the Effective Dart documentation
name: dart-write-documentation description: "Rules and formatting guidelines for writing Dart /// API documentation and doc comments. Use when documenting Dart code, writing doc comments for any Dart declaration (libraries, classes, methods, variables, etc.), or when instructed to follow the Effective Dart documentation guidelines."
When asked to write or update documentation for Dart code, you must strictly follow these formatting rules based on the "Effective Dart: Documentation" guidelines.
`/// The radius of the sphere.` (Not "Gets the radius...")
`/// Whether the connection is active.`
`/// Initializes the database.` (Not "Initialize" or "This method initializes").
After writing or updating doc comments: 1. Run `dart analyze` to ensure all bracketed references resolve properly without triggering `comment_references` warnings. 2. (Optional) Run `dart doc` to verify the generated documentation renders cleanly.
**Bad:**
/// This method fetches data.
/// @param force true to force reload.
/// @return the data
/// @throws NetworkException if host is unreachable.
Data load(bool force) { ... }**Good:**
/// Fetches the remote data.
///
/// If [force] is true, this bypasses the local cache and forces a
/// network request.
///
/// Throws a [NetworkException] if the host is unreachable.
Data load(bool force) { ... }**Bad:**
@override
/// Renders the widget to the screen.
Widget build(BuildContext context) { ... }**Good:**
/// Renders the widget to the screen.
@override
Widget build(BuildContext context) { ... }**Bad:**
/// Gets if the connection is active. bool get isActive => _active; /// This metho
Agent plugins for Flutter, maintained by the Flutter team. A collection of plugins designed to extend AI agent capabilities for Flutter development.
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains…
Architectural patterns, entrypoint structure, exit codes, stream routing, and subprocess spawning for Dart command-line interface (CLI) applications. Use when…
Collect coverage using the coverage packge and create an LCOV report
Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex…
Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.