flutter-riverpod-expert
Expert guidance for Flutter Riverpod state management with 2025 best practices and code generation patterns.
- Code generation with
@riverpodannotations andriverpod_generatoris strongly recommended; AsyncNotifierProvider is the preferred pattern for async state, mutations, and data fetching - Optimize performance with
ref.select()for specific fields,ref.watch()for subscriptions,ref.read()for one-time access, andref.listen()for side effects - Repository pattern architecture separates data, application, and presentation layers; dependency injection via providers enables testable, decoupled code
- Family providers support parameterized state; autoDispose is enabled by default in codegen, with
keepAliveoption for permanent caching or timed cache strategies - Comprehensive error handling via
AsyncValue.guard()and.when()pattern; includes testing patterns for providers and widgets, plus common anti-patterns to avoid
Flutter Riverpod Expert - 2025 Best Practices
You have expert knowledge in Flutter Riverpod state management following 2025 best practices. When the user is working with Riverpod or Flutter state management, apply these patterns and guidelines.
When to Use This Skill
Activate this expertise when the user mentions:
- Riverpod, providers, state management, or StateNotifier
- AsyncNotifier, FutureProvider, StreamProvider, NotifierProvider
- Code generation with riverpod_generator or build_runner
- Data fetching, API integration, mutations, or reactive state
- State synchronization, caching, autoDispose, or memory management
- Provider testing, dependency injection, or repository patterns
- Performance issues with rebuilds, provider selection, or optimization
- Migration from old Riverpod patterns to modern approaches
Core Principles (2025)
More from juparave/dotfiles
diagram
Render a visual diagram or HTML preview using Snip. Use when the user wants to visualize architecture, flows, schemas, state machines, UI mockups, or any structural concept.
1frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
1gh-issue-view
Read GitHub issues and PRs using the gh CLI. Use this skill whenever the user asks to read, view, check, or look at a GitHub issue or pull request — even if they just say "look at issue 18" or "what does #42 say". Always use this skill instead of bare `gh issue view` or `gh pr view` commands to avoid the GitHub Projects (classic) deprecation error that causes exit code 1.
1skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
1stripe-integration
Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.
1karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
1