chetan2921/flo/riverpod-scoping
Claude Code and agent skill by chetan2921/flo
- community
Checking that the SKILL.md file is still in the repository.
Scope Riverpod providers to a subtree using overrides and dependencies; page-specific behavior, ListView optimization, avoiding passing family parameters. Use when changing provider behavior for one page or widget, or when optimizing rebuilds. Use this skill when the user asks about scoping providers or provider scope.
Install
npx vskill@latest install chetan2921/flo/riverpod-scopingSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/riverpod-scoping.
Riverpod — Scoping providers
Instructions
Scoping means changing a provider's behavior for only part of the app by overriding it in a non-root ProviderScope. Use cases: page-specific customization (e.g. theme for one page), performance (e.g. rebuild only the item that changed in a ListView), or avoiding passing family parameters through the tree.
Note: Scoping is complex and may be reworked in future Riverpod versions. Use with care.
Opt-in: dependencies
By default you cannot scope a provider. Opt in by setting dependencies on the provider. The first scoped provider usually has dependencies: const [].
Listening to a scoped provider
Use ref.watch/ref.read as usual. If another provider listens to a scoped provider, that listening provider must list the scoped provider in its dependencies:
Only scoped providers need to be listed in dependencies; non-scoped providers do not.
Setting the scoped value: overrides
Use overrides on a ProviderScope that wraps the subtree where the scoped value should apply:
That way the detail page sees '123' as the current item ID without it being passed down manually. See riverpod-overrides for override syntax.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/riverpod-scoping/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-scoping)