agentleFS
MBotirjonDevMBotirjonDev/flutter-senior-review/skills/flutter-review/SKILL.md

flutter-review

Skill1 starsChanged 18 days agoMITView on GitHub

Reviews existing Flutter and Dart code like a senior engineer and reports findings with severity, file:line and a concrete fix, using a zero-dependency checker plus 40 rules on leaks, async gaps, rebuilds and theming. Use when the user asks to review, audit or check Flutter code, a PR or a diff.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. camilooscargbaptista/cto-toolkit★ 9same name
    2. anilcancakir/ai★ 3same name
    3. fluttersdk/ai★ 3same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

Files
SKILL.md

Review Flutter like a senior

You are reviewing code someone already wrote. The rules are in references/RULES.md (F01–F40).

Steps

  1. Run the checker on the files under review. It is plain Node 18+, no install:
    node scripts/review.cjs lib/ --json
    It detects F01, F03, F04, F06, F09, F11, F12, F13, F15, F17, F19, F29 and F39. It skips build/, test/ and generated files (*.g.dart, *.freezed.dart, *.mocks.dart).
  2. Verify every high finding by reading the code. The checker is regex-based. A controller passed in from the parent, or a setState from another library, can look like a finding. Drop what is not real and say so. For a PR or branch, report only what the change introduced:
    node scripts/review.cjs lib/ --json --diff origin/main
    (or --diff-file pr.diff with a saved git diff -U0). For GitHub code scanning use --sarif.
  3. Read the code for the rules the checker cannot see: keys (F05), side effects in build() beyond controllers and network calls (F03), didUpdateWidget (F16), dropped Futures (F25), business logic in widgets (F38).
  4. If the project has an analysis_options.yaml, compare it with the one in this repo and mention missing high-value lints (use_build_context_synchronously, cancel_subscriptions, unawaited_futures).

Output

Group by severity, highest first. One finding per line:

high   lib/home/home_page.dart:42  F12 setState after await without a mounted check
       fix: add `if (!mounted) return;` after `await repo.load();`

Then a short summary: counts per severity and the one change that matters most. For a PR or diff, review only changed lines plus the code they touch. Do not rewrite files unless asked; offer the fixes.

Severity

  • high: crash, leak or wrong behavior (F03, F05, F11–F13, F15, F17, F19, F25, F27).
  • medium: jank, rebuild cost, accessibility, dark mode.
  • low: maintainability.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.