Design, scaffold, refactor, or audit Flutter code using a Clean Architecture aligned with this repository's real project style: `domain`, `infrastructure`, and `presentation` layers for modular features, manual Riverpod dependency injection, explicit datasource and repository contracts, optional local and remote repositories, Isar-friendly entities, and no `usecase` layer. Use when creating a new module, restructuring an existing feature, wiring datasources/repositories/providers, shaping shared services, or reviewing architectural boundaries in a Flutter codebase.
Build production-oriented Flutter modules with explicit separation of concerns and predictable generation order.
lib/modules/<feature_name>/domain/, infrastructure/, presentation/ExternalService -> DataSource -> Repository -> Provider/Notifierlib/modules/ for medium and large appsdomain/, infrastructure/, presentation/ layout for smaller appsConsumerWidget by default; use only when controllers or lifecycle are requiredConsumerStatefulWidget2.1.0Read these reference files before generating or refactoring code:
references/core/architecture.md
Use for the creation order, folder structure, dependency chain, and canonical implementation patterns.references/core/constraints.md
Use for non-negotiable architectural rules, banned imports, layer boundaries, and widget selection guardrails.references/core/data-schema.md
Use for the expected shape of entities, models, repositories, failures, notifiers, and provider chains.Load these examples when the request matches their scenario:
references/examples/products-module.md
Use for remote + local + offline-first module creation.references/examples/settings-module.md
Use for local-only modules without API integration.references/core/constraints.md before writing code.references/core/architecture.md. Do not jump directly to presentation.domain independent from Flutter UI and transport concerns.Map<String, dynamic> limited to models and external boundaries.ref.When completing a feature request with this skill:
_entity.dart, _model.dart, _repository.dart, _repository_impl.dart, _provider.dart, _notifier.dart.