chetan2921/flo/riverpod-overrides
Claude Code and agent skill by chetan2921/flo
- community
Checking that the SKILL.md file is still in the repository.
Override Riverpod providers for tests, debugging, or environment-specific behavior; ProviderScope and ProviderContainer overrides, overrideWith, overrideWithValue. Use when mocking providers in tests, injecting different implementations, or scoping provider behavior. Use this skill when the user asks about overrides, testing Riverpod, or mocking providers.
Install
npx vskill@latest install chetan2921/flo/riverpod-overridesSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/riverpod-overrides.
Riverpod — Provider overrides
Instructions
All providers can be overridden to change their behavior. Overrides are set on the container (ProviderScope in Flutter, ProviderContainer in Dart) via the overrides parameter. Use overrides for testing, debugging, different environments, or scoping (see riverpod-scoping).
Where to set overrides
- Flutter: Pass
overridestoProviderScope(usually at the root or around a subtree). - Dart: Pass
overridestoProviderContainer.
Override methods
Each provider type exposes methods whose names start with overrideWith, for example:
- overrideWith — Provide a new implementation (e.g. a function that returns a value or builds state).
- overrideWithValue — Replace with a fixed value (e.g. for FutureProvider/StreamProvider).
- overrideWithBuild — Custom build logic (e.g. for StreamProvider).
Check the provider's API for the exact method (e.g. Provider.overrideWith, FutureProvider.overrideWithValue).
Example: override a counter
Family overrides
- Single parameter: Override one specific argument:
userProvider('123').overrideWith((ref) => User(name: 'User 123')). - All parameters: Override the whole family:
userProvider.overrideWith((ref, arg) => User(name: 'User $arg')).
See riverpod-family and riverpod-testing for more test patterns.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/riverpod-overrides/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chetan2921/flo/riverpod-overrides)