AGENT SKILL
flutter-riverpod-state-skeleton
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
flutter-riverpod-state-skeleton
Purpose
Create the Riverpod state skeleton for one Flutter feature.
Use when
- The project standard is Riverpod
- The feature needs a provider or notifier scaffold
- Another skill will handle routing, repository, or UI wiring
Do NOT use when
- The project standard is GetX
- You only need a one-line local widget state
- You need the repository implementation in the same pass
Inputs required
- Feature name
- State model name
- Trigger methods or state events
Constraints
- Create only the Riverpod state shell
- Keep data fetching delegated to injected contracts
- Do not add routing or platform code
Step-by-step workflow
- Define the state model.
- Define the provider or notifier class.
- Wire the dependency injection surface.
- Add the minimal page-facing state entrypoint.
- Return the file list and next-step note.
Output contract
- Provider/notifier file
- State model file
- Optional provider export file
Validation checklist
- Provider compiles on its own
- State is typed
- No repository implementation was created
- No widget logic leaked into the notifier
Related skills
flutter-feature-contract-scaffoldflutter-go-router-route-mapflutter-firestore-repository
References
Real example
ProfileController exposes AsyncValue<Profile> backed by a repository contract.
Real file output sample
lib/features/profile/presentation/controllers/profile_controller.dart
lib/features/profile/presentation/providers/profile_providers.dart
04 同仓库更多 Skills
toolkit-i18n-operator
Use the toolkit-i18n CLI for repeated Flutter localization workflows with compact outputs, CSV validation, key coverage reporting, generated JSON exports, and safe non-mutating behavior.
★ 0
toolkit-design-operator
Use the toolkit-design CLI for repeated repository workflows.
★ 0
toolkit-ci-operator
Use the toolkit-ci CLI for repeated repository workflows.
★ 0
toolkit-arch-operator
Use the toolkit-arch CLI for repeated repository workflows, including Flutter i18n usage scans, layer checks, and localization coverage.
★ 0
web-testing
暂无简介
★ 0
web-state
暂无简介
★ 0