dart-add-unit-test
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing…
Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.
Claude Code
$ npx -y skills add flutter/agent-plugins --skill dart-run-static-analysis --agent claude-code
Codex
$ npx skills add flutter/agent-plugins --skill dart-run-static-analysis -a codex -y
Cursor
$ npx skills add flutter/agent-plugins --skill dart-run-static-analysis -a cursor -y
Gemini CLI
$ npx skills add flutter/agent-plugins --skill dart-run-static-analysis -a gemini-cli -y
GitHub Copilot
$ npx skills add flutter/agent-plugins --skill dart-run-static-analysis -a github-copilot -y
OpenCode
$ npx skills add flutter/agent-plugins --skill dart-run-static-analysis -a opencode -y
Windsurf
$ npx skills add flutter/agent-plugins --skill dart-run-static-analysis -a windsurf -y
name: dart-run-static-analysis description: Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes. metadata: model: models/gemini-3.1-pro-preview last_modified: Fri, 24 Apr 2026 15:09:34 GMT
Configure the Dart analyzer using the `analysis_options.yaml` file located at the package root.
When a diagnostic (lint or warning) yields a false positive or applies to generated code, suppress it explicitly.
Use this workflow to identify type-related bugs, style violations, and potential runtime errors.
**Task Progress:**
Use this workflow to resolve outdated API usages, apply quick fixes, and migrate code (e.g., Dart 3 migrations).
**Task Progress:**
include: package:flutter_lints/recommended.yaml
analyzer:
exclude:
- "**/*.g.dart"
- "lib/generated/**"
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
todo: ignore
invalid_assignment: warning
missing_return: error
linter:
rules:
avoid_shadowing_type_parameters: false
await_only_futures: true
use_super_parameters: true
formatter:
page_width: 100
trailing_commas: preserve// Suppress for the entire file
// ignore_for_file: unused_local_variable, dead_code
void processData() {
// Suppress for a specific line
// ignore: invalid_assignment
int x = '';
const y = 10; // ignore: constant_identifier_names
}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…
Architectural patterns, entrypoint structure, exit codes, stream routing, and subprocess spawning for Dart command-line interface…
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…
Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing…
Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.