AGENT SKILL
flutter-firebase-auth-state
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
flutter-firebase-auth-state
Purpose
Create the auth session state layer that consumes a Firebase Auth adapter.
Use when
- You need session state, not SDK wrapping
- Route guards depend on auth status
- A controller or provider must react to sign-in state
Do NOT use when
- You need the Firebase SDK wrapper itself
- The feature does not affect auth state
- You need route declarations in the same pass
Inputs required
- Auth state source
- Signed-in and signed-out states
- Consumer type: Riverpod, GetX, or router guard
Constraints
- Keep session state typed
- Do not call Firebase SDKs directly
- Do not create routes here
Step-by-step workflow
- Define the session state model.
- Consume the auth adapter stream or methods.
- Expose sign-in, sign-out, and session data.
- Document the consumer surface.
- Return the state file list.
Output contract
- Session state file
- Optional provider or controller file
- Auth state summary
Validation checklist
- Session state is typed
- SDK access remains behind the adapter
- Route guard consumers are documented
- No router tree was created
Related skills
flutter-firebase-auth-adapterflutter-go-router-redirect-guardflutter-riverpod-state-skeleton
References
Real example
authStateProvider exposes AsyncValue<User?> to the router guard.
Real file output sample
lib/features/auth/presentation/controllers/auth_controller.dart
lib/features/auth/presentation/providers/auth_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