- Home
- Skills
- Mobile Development
- Flutter Senior Review: write, review, port
Works with the AI Agents you already use
Flutter Senior Review: write, review, port
Your agent writes, reviews and ports Flutter like a senior: 40 rules, a bug-finding checker and a strict analysis_options.yaml.
Free
Flutter Senior Review: write, review, port
Example session with this skill installed
Review the Flutter code in lib/ of localsend/localsend and list the high-severity problems.
- Read your context and instructions
- Compiled the flutter senior review
Summary
Checker run on localsend/localsend app/lib (real output), high findings verified against the source.
| Severity | Count |
|---|---|
| high | 4 |
| medium | 4 |
| low | 22 |
High findings
high lib/config/init_error.dart:49 F11 TextEditingController _controller is never disposed
fix: Call _controller.dispose() in dispose(), before super.dispose().
high lib/pages/web_share_page.dart:93 F12 setState after await without a mounted check
fix: Add if (!mounted) return; after the await.
high lib/widget/dialogs/file_name_input_dialog.dart:22 F11 TextEditingController _textController is never disposed
fix: Call _textController.dispose() in dispose(), before super.dispose().
high lib/widget/dialogs/pin_dialog.dart:26 F11 TextEditingController _textController is never disposed
fix: Call _textController.dispose() in dispose(), before super.dispose().
The one change that matters most: add the mounted check in web_share_page.dart, it can throw when the user leaves the page while the request is running.
Connects securely to your tools. The creator never sees your data.
About this skill
Code an agent writes by default compiles, runs in the demo and then leaks controllers, crashes after a slow request or rebuilds the whole screen on every keystroke. This pack teaches your agent the rules a senior Flutter reviewer would flag.
Three skills that share one rule set:
- flutter-write: writes new screens, widgets and async flows with the rules, then runs the checker on its own code.
- flutter-review: reviews a file, folder or PR and reports each finding as severity, file:line and a concrete fix. It runs the checker first, then verifies every finding by reading the code.
- flutter-port: converts React Native, React, SwiftUI or Jetpack Compose screens to Flutter by meaning (useEffect cleanup to dispose(), LazyColumn to ListView.builder with keys, CSS to ThemeData), not line by line.
What is included:
- 40 rules (F01-F40), each with why, a bad snippet and a good snippet: widget classes instead of helper methods, const, keys, dispose, mounted checks after await, BuildContext across async gaps, null safety without !, sealed classes and pattern matching, theming, text scaling, Semantics, navigation and structure.
- A zero-dependency Node checker for 9 mechanical rules (undisposed controllers and subscriptions, setState and context after await, helper methods returning widgets, long build(), MediaQuery.of(context).size, ! density, hard-coded colors, print).
- A strict analysis_options.yaml: 49 lints plus strict-casts, strict-inference and strict-raw-types, each line explained. Every name was checked with dart analyze.
Tested on real open-source apps: compass_app 0 high findings, localsend 4, flutter-wonderous-app 6, material_3_demo 10. Every high finding was checked by hand.
Limits: the checker is regex-based, not the Dart analyzer, and finds 9 of the 40 rules; the agent reads the code for the rest. The analysis_options.yaml was verified by name, not run on a Flutter project.
Open source (MIT): https://github.com/MBotirjonDev/flutter-senior-review
Regex-based checker may flag false positives for external state libraries. Skips generated files and test suites. Requires Node 18+ to run the review script.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 2 days ago
- Free with an Agensi account
Requires