dart-run-static-analysis

Run Dart static analysis and apply automated lint fixes.

2.8k|166|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/flutter/agent-plugins --skill dart-run-static-analysis-flutter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dart-run-static-analysis
Source: https://github.com/flutter/agent-plugins/tree/main/skills/dart-run-static-analysis
Command: npx skills add https://github.com/flutter/agent-plugins --skill dart-run-static-analysis-flutter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the manual overhead of identifying and resolving code quality issues, style violations, and outdated API usages in Dart and Flutter projects.

Core Features & Use Cases

  • Static Analysis: Executes the Dart analyzer to detect type-related bugs, style violations, and potential runtime errors.
  • Automated Fixes: Applies mechanical lint fixes and code migrations using the dart fix tool.
  • Use Case: Before committing code, use this skill to ensure your project adheres to strict type checks and linting rules, automatically resolving common issues like missing imports or deprecated API calls.

Quick Start

Run the dart-run-static-analysis skill to identify and automatically fix all linting issues in the current project directory.

Frequently Asked Questions about dart-run-static-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Dart code quality and linting fixes?

To automate Dart code quality and linting fixes, you can run a static analysis process that utilizes the Dart analyzer to detect style violations and applies the dart fix tool to mechanically resolve common issues across your project.

What is static analysis in Dart and Flutter projects?

Static analysis in Dart and Flutter projects is the process of executing the Dart analyzer to detect type-related bugs, style violations, and potential runtime errors without running the application, ensuring consistent code standards.

Do I need the Dart SDK to run static analysis on my Flutter project?

Yes, you need the Dart SDK installed in your environment to execute static analysis and automated fix commands, because the analyzer and dart fix tools rely on the SDK to detect and resolve code quality issues.

How do I fix deprecated API calls and missing imports in Dart?

To fix deprecated API calls and missing imports in Dart, you can apply automated code migrations using the dart fix tool, which identifies these mechanical lint errors and automatically updates your project codebase.

When should I run linting and static analysis in my development workflow?

You should run linting and static analysis before committing code to ensure your Dart and Flutter project adheres to strict type checks and linting rules, automatically resolving common issues to maintain code quality.

What's the best way to resolve type-related bugs and style violations in Dart?

The best way to resolve type-related bugs and style violations in Dart is to use an automated static analysis workflow that executes the Dart analyzer to detect issues and applies mechanical fixes to maintain consistent code standards.