flutter-lint-fix

Run dart format and dart fix --apply on Flutter code, then report remaining warnings.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/dus2183-commits/flutter-skills --skill flutter-lint-fix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-lint-fix
Source: https://github.com/dus2183-commits/flutter-skills/tree/main/flutter-lint-fix
Command: npx skills add https://github.com/dus2183-commits/flutter-skills --skill flutter-lint-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Flutter 项目在持续开发中会产生大量格式与风格问题,手动修复成本高且易出错。本 skill 自动执行格式化和修复流程,减少重复工作并提升代码一致性。

Core Features & Use Cases

  • 自动格式化与修复:运行 dart format、dart fix --apply,并报告仍存在的警告。
  • 自动化工作流集成:可用于 write/edit 钩子、CI/Review 等场景,确保提交前代码符合规范。
  • 适用范围广:覆盖 lib/、test/ 等常见 Dart/Flutter 代码目录,并可通过 scope 限定范围。

Quick Start

在你的 Flutter 项目中运行该技能以自动格式化、修复并分析代码。

Frequently Asked Questions about flutter-lint-fix

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

FAQPage Schema
How do I automate Flutter code formatting and lint fixing?

You can automate Flutter code formatting and lint fixing by running dart format and dart fix --apply sequentially. This process automatically resolves style issues and applies recommended fixes, then reports any remaining warnings for manual review.

Can I integrate dart fix and format into a CI workflow for Flutter?

Yes, you can integrate dart fix and format into CI workflows for Flutter. Running these commands in your pipeline ensures code conforms to standards before merging, reporting remaining analysis warnings to prevent unformatted code from being committed.

What is the best way to check Flutter code for lint warnings before a commit?

The best way to check Flutter code for lint warnings before a commit is using a pre-commit hook that runs dart format and dart fix --apply. This automatically resolves fixable issues and outputs a report of remaining warnings for review.

Does dart fix --apply cover all directories in a Flutter project?

dart fix --apply covers common Dart and Flutter directories like lib/ and test/. You can also specify a custom scope to limit the formatting and analysis to specific parts of your project if needed.

Why do I still see lint warnings after running dart fix --apply on my Dart code?

You still see lint warnings after running dart fix --apply because the command only auto-fixes a subset of known issues. The skill reports these remaining warnings so you can manually address the unsupported or complex lint violations.