riverpod-overrides

riverpod-overrides is a skill for Claude Code, Codex from serverpod/skills-registry. It costs 68 tokens per session (461 once invoked), scanned A, original, BSD-3-Clause.

A set of instructions for replacing Riverpod providers with test values or alternative implementations. Riverpod is a Dart and Flutter library for managing shared application state.

In plain words
What is it for?
Use it to mock providers in tests, inject alternative implementations, debug state, or change provider behavior within a Flutter widget subtree or Dart container.
Why use it?
It lets tests and development environments use controlled behavior instead of real services or production data. It also allows different parts of an app to use different provider behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to mock providers in tests, inject alternative implementations, debug state, or change provider behavior within a Flutter widget subtree or Dart container.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/serverpod/skills-registry/riverpod-overrides
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add serverpod/skills-registry --skill riverpod-overrides
Clone the repo
git clone --depth 1 https://github.com/serverpod/skills-registry

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for riverpod-overrides

README.md
[![agentmods](https://agentmods.dev/badge/skills/serverpod/skills-registry/riverpod-overrides/github.svg)](https://agentmods.dev/skills/serverpod/skills-registry/riverpod-overrides)
Your own site
<a href="https://agentmods.dev/skills/serverpod/skills-registry/riverpod-overrides"><img src="https://agentmods.dev/badge/skills/serverpod/skills-registry/riverpod-overrides/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for riverpod-overrides

Your own site · 80×15
<a href="https://agentmods.dev/skills/serverpod/skills-registry/riverpod-overrides"><img src="https://agentmods.dev/badge/skills/serverpod/skills-registry/riverpod-overrides.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 461 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00461
Opus 5 $0.00034 $0.00230
Sonnet 5 $0.00014 $0.00092
Haiku 4.5 $0.00007 $0.00046

Measured 10d ago against content hash 495824d77d3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

riverpod-overrides scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/riverpod/riverpod-overrides/SKILL.md · 56 lines

What it actually says

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 overrides to ProviderScope (usually at the root or around a subtree).
  • Dart: Pass overrides to ProviderContainer.

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

// Flutter
void main() {
  runApp(
    ProviderScope(
      overrides: [
        counterProvider.overrideWith((ref) => 42),
      ],
      child: MyApp(),
    ),
  );
}

// Dart
final container = ProviderContainer(
  overrides: [
    counterProvider.overrideWith((ref) => 42),
  ],
);

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 56 lines · 68 tokens per session scan A 495824d77d3a

Subscribe to this mod's changes

riverpod-overrides is a skill published in the GitHub repository serverpod/skills-registry (9 stars, last pushed 6mo ago), licensed BSD-3-Clause. It adds 68 tokens to every session and 461 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories