Store
AI Rules File

Flutter 3.47 + Dart 3.13 + Riverpod 3 AI Config Bundle

A drop-in rules file that makes Claude Code, Cursor, Windsurf, and Copilot write Flutter + Riverpod 3 correctly instead of legacy StateNotifierProvider syntax and unguarded BuildContext-after-await crashes.

Price

$36

Secure checkout · Instant download on payment

Created

Description

Riverpod 3.0 unified Ref, moved StateProvider/StateNotifierProvider/ChangeNotifierProvider to a legacy import, made failing providers retry automatically, and added Ref.mounted and an experimental Mutations API — all after most models' training cutoffs, so assistants default to stale 1.x/2.x syntax and raw setState sprawl. This bundle is a 578-line CLAUDE.md that encodes the correct patterns: the 4 @riverpod provider shapes, ref.watch/read/listen discipline, exhaustive AsyncValue pattern matching, autoDispose vs keepAlive (including the only_use_keep_alive_inside_keep_alive lint), the BuildContext-after-await crash rule, go_router navigation, Dart 3 sealed classes and pattern matching, a 15-mistake blocklist, and a pre-commit checklist. Ships with a README covering install for Claude Code, Cursor, Windsurf, and GitHub Copilot, plus a CUSTOMIZATION.md for adapting it to an older Riverpod major, Bloc, or a different navigation/data stack.

What's included

  • CLAUDE.md — 578-line Flutter 3.47 + Dart 3.13 + Riverpod 3 rules file (10 golden rules, feature-first project structure, the 4 @riverpod provider shapes, ref.watch/read/listen, exhaustive AsyncValue handling, autoDispose vs keepAlive, Riverpod-3.0-specific changes, widget/rebuild-scope rules, BuildContext-after-await, go_router, Dart 3 sealed classes/records, data-layer conventions, testing patterns, a 15-mistake blocklist, and a pre-commit checklist)
  • README.md — installation for Claude Code, Cursor, Windsurf, and GitHub Copilot
  • CUSTOMIZATION.md — adapt it to an older Riverpod major, Bloc/Cubit, plain Provider/setState, a different router or data layer, and house style
  • .cursor/rules/flutter-riverpod-config-bundle.mdc: native Cursor rule converted from CLAUDE.md, frontmatter included

Delivery

Instant download after Stripe checkout. File: nightforge-flutter-riverpod-config-bundle.zip