/crewforth:frontend-flutterfrom Crewforth
Provides Flutter-specific architecture guidance including state management, routing, widget cost modeling, and project structure conventions.
Ships in Crewforth. 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.
Apply only when the project IS Flutter — its pubspec.yaml depends on the SDK (flutter: sdk: flutter).
Otherwise do not use this skill: frontend and the project's own stack apply (see its Client stack order).
Trigger phrases: "riverpod", "go_router", "pubspec", "widget test", "analysis_options", "flutter_test", "golden test", "platform channel", "dart isolate", "gen-l10n"
For generic frontend discipline, applies the frontend skill; this file only covers what Flutter adds. Every rule
below was checked against Flutter's own documentation (docs.flutter.dev, dart.dev) or the page of the package or
platform it names; the depth and the sources are in references/, which also say what was not checked. Not used in a project on another stack (delete it if needed).
pubspec.yaml (the packages already chosen), analysis_options.yaml (the lint set and
formatter width), pubspec.lock, and how lib/ is already laid out. Follow them.setState, ValueNotifier/ChangeNotifier and InheritedWidget. A package is added only when the
user agrees, and recorded (adr). Never introduce a second state or routing approach beside the one in use.frontend's Client stack step does: options and trade-offs, none marked
recommended.package:flutter, and an architecture test reads its files and fails on such an import.features/<name>/) with view, view model and tests together, as frontend says.const constructors wherever possible; Flutter short-circuits the rebuild of a const subtree.setState (or the provider read) at the smallest subtree that needs it. A reusable
piece of UI is a StatelessWidget, not a helper function returning a widget.build() stays cheap: no I/O, parsing or allocation-heavy work in it — it runs on every ancestor rebuild.ListView.builder and friends), never a Column of every item.Opacity inside an animation (AnimatedOpacity/FadeInImage), no clipping while animating, and no
widget that forces a saveLayer without a reason. Detail: references/rebuilds-and-performance.md.MediaQuery.sizeOf (the whole window; cheaper than MediaQuery.of) or
LayoutBuilder (the space this widget is given). Breakpoints come from the project's design system; the
Material window classes are compact < 600 · medium 600–839 · expanded 840–1199 · large 1200–1599 · ≥ 1600 dp.MediaQuery.displayFeatures holds a hinge that separates the window, the panes split at the
hinge and no content is laid out on it.PageStorageKey), and support mouse, trackpad and keyboard where the app runs on desktop or a large screen.meetsGuideline, below). Detail and the test:
references/adaptive-and-accessible.md. The a11y skill holds the rules for every stack.Isolate.run / compute for one-off work, Isolate.spawn + ports for a long-lived worker. Spawned isolates have
no rootBundle and no UI. On the web there are no isolates: compute keeps it compiling and runs on the main thread.MethodChannel, EventChannel) are asynchronous; the Dart side handles
PlatformException and MissingPluginException explicitly, and the native handler runs on the platform's main
thread. Prefer generated, typed messages (pigeon) over string-matched method names. Detail:
references/platform-async-release.md.gen-l10n (ARB files, AppLocalizations.of(context)), plurals and placeholders in ICU form — never concatenated;
the i18n-integrity skill checks the files. An app in one language may keep every text in one central file instead.toUpperCase() / toLowerCase() use the language-independent
mapping (Turkish i becomes I, not İ), so text is cased through one helper that takes the locale.double; dates carry their time zone or are date-only on purpose (the frontend rules apply).
Amounts and other numbers that line up are drawn with FontFeature.tabularFigures(), so digits keep one width.testing skill owns the strategy)flutter_test), and enough integration tests (integration_test/, the
binding initialised) for the important flows. Tests use fakes of the repositories and services (the guide's
recommendation), which is why those sit behind abstract classes.matchesGoldenFile) only where pixels are the contract, fonts loaded first. They are generated
and compared in one place, a pinned container in CI; flutter test --update-goldens is not run on a developer's
machine, whose rendering differs.Financial, health or identity data, or anything the user would not want read off a lost phone or a backup:
references/sensitive-data.md.flutter run --profile); debug mode is not indicative and profile
mode does not run on an emulator or simulator. Frame budget: about 16 ms at 60 Hz, 8 ms at 120 Hz.--obfuscate --split-debug-info=<dir> where the target supports it, the symbols kept for flutter symbolize. Obfuscation is not encryption: no secret ships in the app. An app commits its pubspec.lock.references/platform-async-release.md.debugPrint prints in release mode too unless it sits behind a debug check or an assert; log through the
project's logger (the observability skill).frontend DoD)dart format --set-exit-if-changed . exits 0 · flutter analyze clean (0 issues, the project's lint set) ·
flutter test green — one run after the last edit, reported with its exit code and counts.package:flutter.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub crewforth/crewforth --plugin crewforth60 skills in this plugin
/a11yUse when building or changing UI, before shipping a user-facing screen, and when something cannot be
reached with a keyboard, read by a screen reader, or seen at low contrast.
/adrArchitecture Decision Record: context-decision-consequences, for decisions that are expensive to reverse.
Written under docs/adr/.
/api-designUse when an API contract is designed or changed: a new endpoint or resource, how its errors and pages
are returned, a field to add or remove, or a version to cut without breaking a consumer.
Other plugins' skills for the same job