
Description
dart-run-static-analysis is an agent skill from the Dart team's skills collection, listed on skills.sh. It helps an AI agent run dart analyze to find warnings and errors in Dart and Flutter code, and use dart fix --apply to resolve mechanical lint issues automatically. The skill is meant for use during development. It starts with configuration: the agent sets up the analysis_options.yaml file at the package root, including a standard rule set such as package:lints/recommended.yaml or package:flutter_lints/flutter.yaml. It also enables strict type checks, with strict casts, strict inference and strict raw types, to prevent implicit downcasts and dynamic inference. Linter rules can be turned on or off explicitly, and the skill covers diagnostic suppression, so that a warning can be silenced only where it is intended. The workflow sections describe how to run the analysis and how to apply automated fixes, with examples. The skill is listed as free on skills.sh. It is useful for keeping a codebase consistent and catching type problems before they reach a test run.…
Highlights
- Runs dart analyze for warnings and errors
- Applies automatic fixes with dart fix --apply
- Sets up strict type checks in analysis_options.yaml
- Covers diagnostic suppression
Ratings & Reviews
No ratings yet
Be the first to rate dart-run-static-analysis.
People also visit
dart-run-static-analysis FAQ
What does the dart-run-static-analysis skill do?
It helps an AI agent run dart analyze, review its findings and apply automatic fixes for lint issues.
How do I install it?
Run: npx skills add https://github.com/dart-lang/skills --skill dart-run-static-analysis
Is it free?
Yes. The skill is listed as free on skills.sh.
Which lint rules does it use?
The skill recommends including a standard rule set, such as package:lints/recommended.yaml or package:flutter_lints/flutter.yaml.
Does it make the types stricter?
Yes. It suggests enabling strict casts, strict inference and strict raw types to avoid implicit downcasts and dynamic inference.
What are the best dart-run-static-analysis alternatives?
Popular alternatives to dart-run-static-analysis include dart-fix-runtime-errors, dart and flutter-dart-code-review. See all dart-run-static-analysis alternatives















