/programming:af-bootstrapfrom programming
Scaffold a new Flutter app from zero in the layered clean-architecture + rx_notifier MVVM shape — folder tree, DI bootstrap, pubspec + codegen, main.dart wiring.
Ships in programming. Installing the plugin adds it to Claude Code.
Use this to stand up a brand-new app in this architecture, or to lay the
foundational rings (tree + DI bootstrap + main wiring) into an empty Flutter
project. For a single feature in an app that already exists, use /af-feature.
Read ONLY skills/absolute-flutter/references/01-architecture.md. It is the
spine: folder tree, the inward dependency rule, DI bootstrap order, and the
main.dart / app_widget.dart wiring. Pull in _conventions.md only if you
are unsure of a naming rule. Do not read the other eleven references unless the
user asks you to also generate that layer's internals.
assets/templates/app_scaffold/tree.md and create
lib/ exactly as it describes (empty folders are fine). Package name is
app; every import is package:app/....assets/templates/app_scaffold/main.dart and
app_widget.dart. Rename the App* anchors only if the app prefixes differ.
Keep main.dart to bootstrap-only.assets/templates/config/pubspec.partial.yaml
into pubspec.yaml, and copy analysis_options.yaml + build.yaml to the
project root. These enforce package-imports lint and the 120-col formatter.it()-resolve only what is registered before it. The bindings themselves
come from /af-di; build them in this order.domain/app_error.dart,
domain/abstract_use_case.dart) — nothing above the domain compiles without
these. Generated by /af-usecase.AbstractGateway + LoggedClient/NonLoggedClient +
DioException.asAppError()) — generated by /af-gateway.app_widget.dart resolves: AppColors /
AppText (/af-design-system) and AppRouter (/af-navigation)./af-feature.await AppDI.setupDI() (or the two-phase setup) must complete BEFORE
runApp in main.dart.app_widget.dart holds NO logic — only theme + routerConfig: AppRouter.config.dart run build_runner build --delete-conflicting-outputs after any DTO
exists, then flutter analyze.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
13 commands in this plugin
/af-design-system/af-design-system — design tokens + context surfaceSet up the design system — ThemeExtension token palettes accessed via BuildContext extensions (context.colors/text/icons), raw hex in one class, atoms./af-di/af-di — wire dependency injectionWire dependency injection — add or order an AbstractBinding (get_it) for a layer or feature, in the two-phase ordered bootstrap./af-feature/af-feature — full vertical feature slicenpx claudepluginhub felipeoff/my-claude-code-skills --plugin programming