AGENT SKILL
flutter-firebase-auth-adapter
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
flutter-firebase-auth-adapter
Purpose
Create the Firebase Auth data adapter for one Flutter feature or app auth boundary.
Use when
- Firebase Auth SDK calls need to be isolated
- A repository or state layer will consume auth methods
- You need sign-in or sign-out SDK wrappers
Do NOT use when
- You only need route guards
- The project does not use Firebase Auth
- You need session state or UI wiring in the same pass
Inputs required
- Auth methods to wrap
- Current Firebase setup
- Domain auth model shape
Constraints
- Keep SDK calls in the adapter
- Return typed auth objects or primitives
- Do not wire router logic here
Step-by-step workflow
- Identify the Firebase Auth methods needed.
- Wrap each method in a data adapter.
- Map SDK user objects to typed outputs.
- Keep the adapter free of UI and routing.
- Return the adapter file list.
Output contract
- Firebase Auth adapter file
- Mapping helper if needed
- Auth method summary
Validation checklist
- SDK calls are isolated
- Adapter methods are typed
- No route or UI code was added
- Errors are surfaced clearly
Related skills
flutter-firebase-auth-stateflutter-go-router-redirect-guardflutter-firestore-repository
References
Real example
signInWithEmail wraps FirebaseAuth.signInWithEmailAndPassword.
Real file output sample
lib/features/auth/data/datasources/firebase_auth_data_source.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