flutter-review-checklist
Skill28 starsChanged 3 months agoApache-2.0View on GitHub
Use when reviewing a Flutter/Dart pull request or auditing existing Flutter code for quality — rebuild scope, const correctness, key usage, dispose/leak safety, BuildContext across async gaps, list and image performance, RepaintBoundary, accessibility semantics, and golden coverage. Complements dart-run-static-analysis (which runs the linter) and flutter-fix-layout-issues (which fixes overflow errors) with the senior judgment those do not encode.
In this repository34 other files it gives its agents.
- bigquery-query-optimizationSkill
- build-and-ci-gatesSkill
- cdc-scd-patternsSkill
- code-implementerSkill
- code-smells-expertSkill
- commit-expertSkill
- compliance-verifierSkill
- context-captureSkill
- context-restoreSkill
- database-migration-expertSkill
- design-spec-expertSkill
- documentation-expertSkill
- flutter-architecture-decisionsSkill
- flutter-performance-profilingSkill
- flutter-release-engineeringSkill
- flutter-senior-orchestrationSkill
- flutter-test-strategySkill
- flutter-upgrade-migrationSkill
- gcp-data-engineeringSkill
- guidelines-karpathySkill
- loop-engineeringSkill
- performance-scalabilitySkill
- product-analystSkill
- pull-request-expertSkill
- python-expertSkill
- qa-testerSkill
- refactoring-code-expertSkill
- repo-researchSkill
- security-auditSkill
- senior-architect-engineeringSkill
- senior-dev-orchestratorSkill
- sql-query-optimizationSkill
- test-driven-developmentSkill
- testing-expertSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Syntax and formatting errors: Use dart analyze and dart format to catch routine formatting and analyzer issues.
- Distinctive: line 37
Run automated checks first to eliminate mechanical issues before starting manual or semantic review:
- Very specific: line 40
Run the specialized Flutter project audit script to flag un-disposed resources and missing const constructors.
- Very specific: line 44
Rebuild Scope: Ensure setState and reactive consumers target leaf widgets rather than entire scaffold screens.
- Very specific: line 46
Async BuildContext: Verify all usages of context after an await gap are guarded by if (!mounted) return;.
- Distinctive: line 48
Accessibility: Ensure tap targets meet the 48x48dp minimum and icon buttons declare explicit semantics or tooltips.
- Very specific: line 51
Check whether state management or module splits violate recorded ADRs in doc/adr/.
- Distinctive: line 83
Google Antigravity: Run the audit script and analyzer commands via terminal or integrate with automated PR review workflows.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flutter Review Checklist
Overview
The Flutter Review Checklist skill equips reviewers, tech leads, and autonomous agents with a systematic quality audit for Flutter and Dart codebases. Operating across Claude Code and Google Antigravity, this skill bridges the gap between static linter checks (dart analyze) and high-level architectural guidelines by detecting nuanced runtime hazards—such as wasteful widget rebuild trees, unclosed stream subscriptions, controller memory leaks, asynchronous BuildContext violations, missing accessibility semantics, and broken golden test coverage.
When to Use
Trigger Scenarios
- Conducting code reviews on Pull Requests that modify
lib/**widgets, state controllers, or native platform channels. - Auditing UI screens that experience frame drops, sluggish scrolling, or memory leaks.
- Preparing production release candidates for accessibility (a11y) and performance compliance.
- Verifying adherence to project-wide Architecture Decision Records (ADRs).
When NOT to Use
- Syntax and formatting errors: Use
dart analyzeanddart formatto catch routine formatting and analyzer issues. - Visual constraint layout bugs: For
RenderFlexoverflow errors ("yellow-and-black stripes"), useflutter-fix-layout-issues. - Backend-only code: For backend microservices or APIs, use
refactor-codebaseorcode-smells-expert.
Process
flowchart TD
A[PR / Diff Submitted] --> B[Step 1: Automated Tool Baseline]
B --> C[Step 2: Walk Review Checklist]
C --> D[Step 3: ADR Compliance Check]
D --> E{Blocking Issues Found?}
E -->|Yes| F[Block PR with File:Line & Failure Mode]
E -->|No| G[Approve with Non-blocking Suggestions]1. Tool Baseline
Run automated checks first to eliminate mechanical issues before starting manual or semantic review:
- Execute
dart analyzeand format checks. - Execute test suites with coverage.
- Run the specialized Flutter project audit script to flag un-disposed resources and missing
constconstructors.
2. Walk the Review Checklist
Review diffs against references/flutter-review-checklist.md, focusing on high-impact areas:
- Rebuild Scope: Ensure
setStateand reactive consumers target leaf widgets rather than entire scaffold screens. - Resource Lifecycle: Confirm every
AnimationController,TextEditingController,StreamSubscription,FocusNode, andScrollControlleris closed indispose(). - Async BuildContext: Verify all usages of
contextafter anawaitgap are guarded byif (!mounted) return;. - List & Image Performance: Confirm
ListView.builderorCustomScrollViewis used for unbounded lists, and network images specifycacheWidth/cacheHeight. - Accessibility: Ensure tap targets meet the 48x48dp minimum and icon buttons declare explicit semantics or tooltips.
3. Verify ADR Compliance
Check whether state management or module splits violate recorded ADRs in doc/adr/. Deviations require a dedicated ADR update, not casual review approval.
4. Provide Structured Verdict
Classify findings into:
- Blocking: Correctness bugs, resource leaks, accessibility regressions, or ADR violations.
- Non-blocking: Ergonomic recommendations, style suggestions, or optional micro-optimizations.
Usage
Commands & Automation Scripts
Execute the automated Flutter project audit script to scan for un-disposed controllers, missing mounted checks, and oversized widgets:
python3 ./skills/flutter-review-checklist/scripts/flutter_project_audit.pyStandard automated checks:
dart analyze
dart format --output=none --set-exit-if-changed .
flutter test --coverageExample Prompts
"Review this Flutter PR for widget rebuild inefficiencies, memory leaks in controllers, and proper async context handling.""Run the Flutter project audit script on our codebase and report any unclosed stream subscriptions or missing dispose calls."Host Execution Instructions
- Claude Code: Invoke via
/skill flutter-review-checklistor ask for Flutter code review in conversation. - Google Antigravity: Run the audit script and analyzer commands via terminal or integrate with automated PR review workflows.
Red Flags
- Calling
BuildContextmethods (Navigator.of(context),ScaffoldMessenger.of(context)) after anawaitwithout verifyingmounted. - Instantiating controllers (
TextEditingController,AnimationController) insidebuild()methods instead ofStatefulWidgetstate. - Forgetting to invoke
controller.dispose()orsubscription.cancel()indispose(). - Using
ListView(children: [...])for lists with dynamic or unbounded length instead ofListView.builder. - Omitting semantics labels or tooltips on custom interactive icon buttons.
Verification
- Automated baseline passes:
dart analyzeanddart formatreturn zero exit codes. - Project audit script
python3 ./skills/flutter-review-checklist/scripts/flutter_project_audit.pyreports zero unhandled controller leaks. - All
BuildContextreferences across async gaps guarded withmounted. - All controllers and subscriptions safely disposed.
- Accessibility semantics and tap target sizes verified.
- Changes adhere strictly to recorded ADRs in
doc/adr/.
References
- Flutter Comprehensive Review Checklist
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

