Flutter PR review
When to use
A Flutter/Dart PR, branch, or pasted diff is the input. Output a merge-ready review, not a rewrite of the whole change.
Approval bar
- Do not
git push, open a PR, merge, or force-push.
- Do not run
pod install, Gradle writes, or signing commands.
- Do not request secrets, keystores, or CI tokens.
- Stop and ask before any write to a remote.
Inputs
Need one of: repo + PR number, branch, or a pasted diff. If the repo uses FVM, prefix Flutter/Dart commands with fvm. If FVM is missing, say so and use PATH flutter/dart only after stating that.
Sequence
- Identify the change set (files, tests, platform folders).
- Review in this order:
- Correctness: null-safety, async gaps, dispose/cancel,
mounted after await
- Widgets: rebuild cost, keys,
const, InheritedWidget/Provider misuse
- State: Cubit/Bloc/Riverpod leaks, event storms, context after unmount
- Platform: method channels, permission strings, iOS vs Android parity
- Tests: missing widget/unit coverage for new branches; goldens only if the repo already uses them
- Analysis:
analysis_options.yaml violations the change introduces
- Prefer evidence: file + line, failing mental path, or a command the installer can run.
- Skip style nits that the linter already owns unless they hide a bug.
Output format
# Flutter PR review
Scope: [PR/branch/diff]
Commands used: [e.g. fvm dart analyze, fvm flutter test]
## Blockers
- [file:line] What is wrong, why it breaks, how to verify
## Should fix
- [file:line] Issue and a concrete fix
## Nits
- Optional, only if they aid review
## Test gaps
- Scenario not covered, suggested test name
## Verdict
Approve / request changes / needs more context
What more context: [blank if none]
Failure
If there is no Dart/Flutter code in the change, say so and stop. If the PR is too large, review the riskiest files first and list what you skipped.
1---2name: flutter-pr-review3description: "Reviews a Flutter/Dart pull request or pasted diff for widget lifecycle, state, platform channels, tests, and analysis nits. Use when reviewing a Flutter PR, Dart diff, or mobile UI change. Never opens a PR or pushes without an explicit yes."4metadata:5 source: https://skillmd.com/skills/shixuuu/flutter-pr-review6---78# Flutter PR review910## When to use1112A Flutter/Dart PR, branch, or pasted diff is the input. Output a merge-ready review, not a rewrite of the whole change.1314## Approval bar1516- Do not `git push`, open a PR, merge, or force-push.17- Do not run `pod install`, Gradle writes, or signing commands.18- Do not request secrets, keystores, or CI tokens.19- Stop and ask before any write to a remote.2021## Inputs2223Need one of: repo + PR number, branch, or a pasted diff. If the repo uses FVM, prefix Flutter/Dart commands with `fvm`. If FVM is missing, say so and use PATH `flutter`/`dart` only after stating that.2425## Sequence26271. Identify the change set (files, tests, platform folders).282. Review in this order:29 - Correctness: null-safety, async gaps, dispose/cancel, `mounted` after await30 - Widgets: rebuild cost, keys, `const`, InheritedWidget/`Provider` misuse31 - State: Cubit/Bloc/Riverpod leaks, event storms, context after unmount32 - Platform: method channels, permission strings, iOS vs Android parity33 - Tests: missing widget/unit coverage for new branches; goldens only if the repo already uses them34 - Analysis: `analysis_options.yaml` violations the change introduces353. Prefer evidence: file + line, failing mental path, or a command the installer can run.364. Skip style nits that the linter already owns unless they hide a bug.3738## Output format3940```markdown41# Flutter PR review4243Scope: [PR/branch/diff]44Commands used: [e.g. fvm dart analyze, fvm flutter test]4546## Blockers47- [file:line] What is wrong, why it breaks, how to verify4849## Should fix50- [file:line] Issue and a concrete fix5152## Nits53- Optional, only if they aid review5455## Test gaps56- Scenario not covered, suggested test name5758## Verdict59Approve / request changes / needs more context60What more context: [blank if none]61```6263## Failure6465If there is no Dart/Flutter code in the change, say so and stop. If the PR is too large, review the riskiest files first and list what you skipped.