# flutter-riverpod-expert

Equips AI coding assistants with modern Riverpod state management practices. It guides code generation, AsyncNotifier patterns, and widget rebuild optimizations.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1100 installs · ★ 1
- Author: juparave
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/juparave/dotfiles/tree/HEAD/.claude/skills/flutter-riverpod-expert/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/flutter-riverpod-expert

## What it does

This skill guides coding assistants through modern Riverpod architecture in Flutter. It prioritizes code generation with `@riverpod` annotations and `riverpod_generator`. For handling asynchronous operations, the model uses `AsyncNotifierProvider` instead of legacy approaches, keeping state transitions and mutations predictable.

Rebuild efficiency receives heavy attention. The instructions differentiate `ref.watch()`, `ref.read()`, `ref.select()`, and `ref.listen()`. Subscribing to providers inside `ListView.builder` items degrades performance, so the assistant extracts child elements into standalone `ConsumerWidget` classes.

Configuring Riverpod 3.x requires caution with tooling dependencies. Because `riverpod_lint` 3.x relies directly on `analyzer_plugin`, adding `custom_lint` to `pubspec.yaml` breaks dependency resolution on version 3.1.8 and above. The skill enforces correct package declarations for both legacy and current setups.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add juparave/dotfiles --skill flutter-riverpod-expert -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/flutter-riverpod-expert/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/flutter-riverpod-expert/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add juparave/dotfiles --skill flutter-riverpod-expert -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/flutter-riverpod-expert/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add juparave/dotfiles --skill flutter-riverpod-expert -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/flutter-riverpod-expert/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install juparave/dotfiles flutter-riverpod-expert
```

2. **Manually: put the files in place**
- File: `.github/skills/flutter-riverpod-expert/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add juparave/dotfiles --skill flutter-riverpod-expert -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/juparave/dotfiles --path .claude/skills/flutter-riverpod-expert
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/flutter-riverpod-expert/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add juparave/dotfiles --skill flutter-riverpod-expert -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/juparave/dotfiles/tree/HEAD/.claude/skills/flutter-riverpod-expert/SKILL.md

## When to use it
- generate Riverpod providers using riverpod_generator
- structure asynchronous state and mutations with AsyncNotifier
- prevent unnecessary widget rebuilds using ref.select()
- configure riverpod_lint in analysis options without package conflicts

## Example prompts
- Build an AsyncNotifier for a shopping cart with optimistic item removal
- Refactor this product card widget using ref.select to minimize rebuilds
- Configure pubspec.yaml and analysis_options.yaml for Riverpod 3.x

## Similar
- [vercel-react-native-skills](https://affpapa.org/en/nevibecode/skills/vercel-react-native-skills.md) — skill · 255200 installs
- [animate-expo](https://affpapa.org/en/nevibecode/skills/animate-expo.md) — skill · 137900 installs
- [mobile-native](https://affpapa.org/en/nevibecode/skills/mobile-native.md) — skill · 86600 installs
- [aso](https://affpapa.org/en/nevibecode/skills/aso.md) — skill · 75900 installs
- [paywalls](https://affpapa.org/en/nevibecode/skills/paywalls.md) — skill · 71000 installs
- [swiftui-pro](https://affpapa.org/en/nevibecode/skills/swiftui-pro.md) — skill · 35200 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
