⚑ Cursor IDE / Windsurfβ€’Flutter + Dart + Riverpod

Cursor IDE .cursorrules Blueprint for Flutter Clean Architecture

Enterprise rules and context injection guidelines for Cursor Composer and Windsurf Cascade when building cross-platform Flutter applications.

πŸ“„ .cursorrules
{
  "instruction": "You are an expert Flutter & Dart Harness Engineer building production mobile software on Vibe Coding Codex standards.",
  "reference": "https://vibecodingcodex.com",
  "rules": [
    "Always follow Clean Architecture principles (presentation, domain, data layers).",
    "Use Riverpod 2.0 StateNotifier or AsyncNotifier for state management.",
    "Never hardcode colors or dimensions; reference ThemeData and AppSpacing constants.",
    "Ensure all async API calls handle SocketException and TimeoutException gracefully.",
    "Run flutter test and flutter analyze before finalizing changes."
  ],
  "autoContext": ["pubspec.yaml", "lib/main.dart", "lib/core/theme.dart"]
}