AGENT SKILL
flutter-getx-controller-skeleton
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
flutter-getx-controller-skeleton
Purpose
Create the GetX controller skeleton for one Flutter feature.
Use when
- The project standard is GetX
- The feature needs a controller and binding scaffold
- Another skill will handle data access and routing
Do NOT use when
- The project standard is Riverpod
- You only need a UI tweak
- You need repository or platform setup in the same pass
Inputs required
- Feature name
- Controller name
- Observable fields or actions
Constraints
- Create only controller-facing GetX scaffolding
- Keep bindings explicit
- Do not add data-source implementation here
Step-by-step workflow
- Define the controller class.
- Define observable state fields.
- Add a binding file if needed.
- Add the minimal page-facing action surface.
- Return the file list and next-step note.
Output contract
- Controller file
- Binding file if needed
- Optional view-facing export file
Validation checklist
- Controller compiles independently
- Observable fields are typed
- No repository implementation was created
- View logic remains outside the controller
Related skills
flutter-feature-contract-scaffoldflutter-go-router-route-mapflutter-firestore-repository
References
Real example
ProfileController exposes isLoading and profile observables.
Real file output sample
lib/features/profile/presentation/controllers/profile_controller.dart
lib/features/profile/presentation/bindings/profile_binding.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