
Flutter Riverpod State Management
Guides an agent to write Flutter state management code using Riverpod providers, async state, and tests.
- Repository
- andrewyng/context-hub
- Stars
- 13,984
- Licence
- MIT
- Files
- 1 file
What it does
This skill gives an AI agent a reference guide for the Riverpod library, a popular way to manage data and app state in Flutter apps. Once installed, the agent follows its rules on choosing the right provider type, wiring up ProviderScope, using ref.watch versus ref.read, handling async data, and writing provider tests. It is advice and patterns only; it does not run anything on its own.
Great for
- Flutter developers who are adopting or maintaining Riverpod in an app
- Teams that want an AI assistant to follow consistent Riverpod conventions
- Developers writing tests for providers and needing override guidance
Skip it if
- Projects using a different state library such as Bloc or Provider alone, since the advice would not match their codebase
- Non-developers who only want to build a simple app without coding knowledge, because the output still needs a developer to review and run it
Try asking
- “Set up Riverpod in my new Flutter app with ProviderScope and a simple counter provider”
- “Convert this StatefulWidget that fetches user data into an AsyncNotifier”
- “Write unit tests for my cart provider using ProviderContainer and overrides”
- “Add riverpod_generator code generation to my existing providers”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the MIT licence and an attribution note.
riverpod.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip riverpod.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip riverpod.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Name the Riverpod version you use so the agent does not mix 2.x and 3.x patterns
- Ask the agent to mention whether ProviderScope is needed and whether a provider should be autoDispose
- Review generated code and run flutter test yourself, since the skill itself does not verify output
What's inside
- SKILL.md
Redistributed unmodified from andrewyng/context-hub under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.