Initialize or reset a Flutter project into a production-ready baseline aligned with this repository's real Flutter projects: manual Riverpod setup, GoRouter routing, Material 3 configuration, shared services, shared widgets, design tokens, and either modular `lib/modules/` scaffolding or a simpler root-level `domain/infrastructure/presentation` structure when the app does not need feature modules. Use when bootstrapping a new project, replacing the default counter app, or standardizing an app foundation before feature development.
Turn a raw Flutter app into a repeatable project foundation that is aligned with your architectural preferences.
main.dartlib/modules/lib/domain, lib/infrastructure, lib/presentationflutter_riverpod, go_router, google_fonts2.1.0Read these reference files before editing project files:
references/core/workflow.mdreferences/core/rules.md
Use for architectural constraints, dependency limits, and cleanup rules.references/core/specs.md
Use for the target directory tree and design-token schema.Use these template assets as the canonical bootstrap base:
assets/bootstrap-template/pubspec.yamlassets/bootstrap-template/lib/config/theme/app_config.dartassets/bootstrap-template/lib/config/theme/app_theme.dartassets/bootstrap-template/lib/config/router/app_router.dartassets/bootstrap-template/lib/config/config.dartassets/bootstrap-template/lib/main.dartpubspec.yaml.assets/bootstrap-template/pubspec.yaml.references/core/specs.md.lib/config/config.dart barrel.main.dart focused on framework bootstrap, ProviderScope, and MaterialApp.router.flutter analyze when the environment permits.main.dart.main.dart.lib/config/config.dart barrel and ensure it exports theme and router modules.ThemeData(useMaterial3: true).lib/modules/ into small projects that are clearer with a flatter root architecture.When using this skill, deliver a foundation that is ready for later feature modules:
lib/config/ exists and is coherent.lib/modules/ exists for modular apps or a flat root architecture exists for small apps.lib/shared/ exists for reusable cross-feature code.