A concise set of Cursor Rules for Flutter MVVM architecture, repository pattern, and best practices, based on Flutter's recommended architecture.
- Copy
.cursor/rules/into your Flutter project, or - Reference this repo directly via Cursor Remote Rules (recommended): https://cursor.com/docs/context/rules#remote-rules-via-github
- Flutter architecture case study: https://docs.flutter.dev/app-architecture/case-study
- Flutter MVVM + repository architecture guidance
- Command/Result patterns
- UI, data/domain, and testing guidelines
Import rules directly from any GitHub repository you have access to—public or private.
- Open Cursor Settings → Rules, Commands
- Click + Add Rule next to Project Rules, then select Remote Rule (Github)
- Paste the GitHub repository URL containing the rule
- Cursor will pull and sync the rule into your project
- https://docs.flutter.dev/app-architecture/case-study
- https://docs.flutter.dev/app-architecture/case-study/ui-layer
- https://docs.flutter.dev/app-architecture/case-study/data-layer
- https://docs.flutter.dev/app-architecture/case-study/dependency-injection
- https://docs.flutter.dev/app-architecture/case-study/testing
- https://docs.flutter.dev/app-architecture/design-patterns/command
- https://docs.flutter.dev/app-architecture/design-patterns/result
- https://cursor.com/docs/context/rules#remote-rules-via-github
Improvements and extensions are welcome! Feel free to create an issue or pull request.
MIT License - see LICENSE for details.