- Use available MCP tools instead of shell commands (e.g. use the Dart SDK MCP and GitKraken MCP servers).
- Use Riverpod for state management instead of Provider.
- Prefer hooks over StatefulWidget for better readability and maintainability.
- Use Freezed for data classes to avoid manual implementation of
==and `hashCode. - Use Material for all styling. No hard coding.
- Prefer smaller, reusable components.
- Minimize diff size unless otherwise requested.
- Always analyze the code before declaring it finished.
- Stop yapping and give me the code unless I ask for an explanation.
- Never hard code colors.
Codegen: dart run build_runner build
Build: flutter build <platform>
Ask first:
- Package installation
- Deleting files
- Running build
- See
lib/src/app/router.dartfor our routes - Features go under
lib/src/features.- Each feature has its own folder with
data,domain,application, andpresentationlayers. datalayer (repositories): API calls, local storage.domainlayer (models, entities): data classes.applicationlayer (services): state management (providers), business logic.presentationlayer (pages): screens, other supporting widgets.
- Each feature has its own folder with
- Formatted
- Linted
- Run custom_lint