flutter-clean-riverpod-skills

Agent skills for Flutter apps built with feature-first Clean Architecture,
Riverpod 3 (no code generation), Result-based error handling and
every SDK behind an application-owned contract.
They are extracted from a production Flutter app and encode the rules that kept
it consistent over time, with the why next to every rule, so an agent (and you)
can apply them with judgment instead of by rote. Each skill also ships
copy-ready Dart and, where it helps, a script.
What you get
| Skill | Use it when |
|---|
flutter-feature-scaffold | Adding a feature, deciding where a file belongs, reviewing layer dependencies. Includes a scaffold script and a boundary checker. |
flutter-result-errors | Writing data sources, repositories or providers that can fail. Sealed AppFailure, one catch boundary, how the UI folds failures. |
flutter-sdk-contracts | Touching Firebase, Sentry, PostHog, Dio, storage or any plugin. Contracts, adapters, no-ops, recording fakes. |
flutter-riverpod3 | Choosing provider types, writing notifiers, watch / read / listen / select, disposal, ref.mounted, Riverpod 3's automatic retry. |
flutter-ui-side-effects | Navigation, snackbars, dialogs or analytics reacting to state. <Feature>Listeners widgets, submission state, failure-to-copy mapping. |
flutter-testing | Testing data sources, notifiers, widgets, listeners and goldens through contract overrides; mock vs fake. |
The skills reference each other (for example flutter-testing points to the
recording fakes in flutter-sdk-contracts), so install the whole set.
The one rule worth remembering:
presentation ──▶ di ──▶ data
│ │ │
└──────▶ domain ◀───┘
Presentation never imports data/. A per-feature di/ file wires the repository
and exposes its contract, so data/ stays free of Riverpod and the rule has
no exceptions to erode.
Is this for you?
These skills are opinionated. If your stack differs, they will fight you.
| Concern | Choice |
|---|
| Architecture | Feature-first Clean Architecture, ports and adapters |
| State / DI | flutter_riverpod 3, explicit providers. No riverpod_generator / @riverpod, no StateNotifier, no GetIt |
| Errors | result_dart behind app-owned Result / AsyncResult typedefs, sealed AppFailure |
| HTTP | dio behind an app-owned ApiClient |
| Models | json_serializable + equatable |
Not using Riverpod? flutter-result-errors and flutter-sdk-contracts still
apply almost unchanged; the other four do not. Using Bloc? This is not the right
pack.
Install
Pick one of the methods below.
A. Claude Code plugin (recommended)
In Claude Code, add this repository as a marketplace, then install the plugin:
/plugin marketplace add Ethiel97/flutter-clean-riverpod-skills
/plugin install flutter-clean-riverpod-skills@flutter-clean-riverpod-skills
All six skills are installed together and are available in every project.
B. Copy the skills into your project (shared with your team)
Skills live in a .claude/skills/ folder. Committing it means everyone who
clones the project gets them.
git clone https://github.com/Ethiel97/flutter-clean-riverpod-skills.git /tmp/fcrs
# from the root of your Flutter project
mkdir -p .claude/skills
cp -R /tmp/fcrs/skills/* .claude/skills/
C. Copy the skills for yourself (all your projects)
git clone https://github.com/Ethiel97/flutter-clean-riverpod-skills.git /tmp/fcrs
mkdir -p ~/.claude/skills
cp -R /tmp/fcrs/skills/* ~/.claude/skills/
D. Other agents and Claude.ai
- Any agent that reads
SKILL.md folders: copy the folders under skills/ to
the directory your agent loads skills from. Each skill is a self-contained
folder with a SKILL.md.
- Claude.ai: zip a single skill folder (for example
skills/flutter-riverpod3)
and upload it from the skills section of the settings. Availability depends on
your plan, and you have to upload each skill separately.