/flutter-code-quality:review-gatefrom flutter-code-quality
Audits Flutter changes before commit or PR, reporting formatting, analysis, test, and convention findings. Runs dart format, flutter analyze, and flutter test on changed files.
Ships in flutter-code-quality. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Audit without editing application code. If the user requested implementation and fixes, return findings to that workflow so it can fix them and rerun affected checks; do not force a second permission request for already-authorized work. During a review-only task, report findings without making those fixes. Tool frontmatter is a Claude Code hint, not a portable security boundary; the same read-only audit rule applies in Codex.
Read the project profile using ../architecture/references/flutter-profile.md. The
script validates every supplied field but does not infer missing intent from packages.
Missing configuration makes convention checks advisory, not a requirement to adopt Bloc,
Freezed, AppTokens or ARB. Explicit tokens: none and l10n: none skip the respective checks.
Resolve resources relative to this loaded SKILL.md, on either host. The gate requires Flutter, Dart >=3.9, Python 3, Git for diff scope, and its isolated Dart parser package. Prepare once after installation/update; this does not add dependencies to the app:
bash "<skill-directory>/scripts/prepare.sh"
Then run from the Flutter app root (the directory containing pubspec.yaml):
bash "<skill-directory>/scripts/check.sh"
Options:
--skip-tests: explicit lint-only run; never describe it as tests passing.--all: audit all Dart files in lib/, test/ and integration_test/.--base REF: compare a PR against its merge-base commit, plus working changes and
untracked files. Resolve the intended merge base first. Cannot accompany --all.--profile PATH: choose a profile explicitly; a missing file is an error.With no base, changed files are compared with HEAD. Untracked and renamed files are included without staging. Monorepo scope is confined to this app. A clean Git scope stays empty; it does not silently scan the whole app. Non-Git projects scan all source/test files. Analysis and tests remain whole-app. For a large workspace, run in each affected Flutter package, respecting its workspace tooling.
Exit status: 0 no blockers (possibly warnings), 1 blocking findings, 2 unable to complete a required check. A missing parser, invalid profile or malformed Dart is not a pass. Inspect output before retrying; install missing prerequisites only within task scope.
Convention strictness never downgrades formatter/analyzer/test failures or detected credentials. Do not suppress a check merely to obtain a green report.
Inspect changed async logic for failure, disposal and out-of-order results; assess test coverage against behavior. Inspect changed golden images before accepting new baselines. Check whether new dependencies and components were needed. For a small edit, use relevant existing tests; do not demand a new golden matrix for every widget.
Report BLOCKING, WORTH FIXING, and NOTES with file:line, evidence and impact. Separate checks that passed, were skipped, and could not run. Say when nothing blocks; do not manufacture findings or claim design verification based on compilation alone.
scripts/check.sh (opens in a new tab)scripts/dart_checks/bin/check.dart (opens in a new tab)scripts/dart_checks/lib/checks.dart (opens in a new tab)scripts/dart_checks/pubspec.lock (opens in a new tab)scripts/dart_checks/pubspec.yaml (opens in a new tab)scripts/dart_checks/test/checks_test.dart (opens in a new tab)scripts/prepare.sh (opens in a new tab)scripts/scope.py (opens in a new tab)scripts/syntax_checks.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/a11y-and-rtlImplement or review Flutter semantics, keyboard access, text scaling, localization, and RTL behavior for affected user-facing controls./architecturePlace or refactor Flutter feature code using the project’s existing architecture and dependency boundaries. Use for structural changes, not every new file./codebase-conventionsFind and reuse existing Flutter components, styles, assets, and naming conventions before adding or changing UI code.npx claudepluginhub draz26648/flutter_craft_skills --plugin flutter-code-qualityOther plugins' skills for the same job