AGENT SKILL
flutter-go-router-route-map
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
flutter-go-router-route-map
Purpose
Create the go_router route map for one Flutter app or feature slice.
Use when
- Routes need to be declared
- A route hierarchy or shell route is missing
- Another skill will handle guards or deep-link wiring
Do NOT use when
- You only need a redirect rule
- The task is purely about state or UI
- The app does not use
go_router
Inputs required
- Route list
- Shell route requirements
- Initial entrypoint
Constraints
- Define route objects only
- Keep redirect rules out of this skill
- Do not add widget business logic
Step-by-step workflow
- List the route paths.
- Create the
GoRoutetree. - Add shell routes if needed.
- Wire page builders to typed parameters.
- Return the router file and the route list.
Output contract
- Router file
- Route tree summary
- Page builder path list
Validation checklist
- Route paths are typed
- The router tree is singular
- No guard logic was mixed in
- Deep links can target the declared routes
Related skills
flutter-go-router-redirect-guardflutter-go-router-deeplink-wireupflutter-firebase-auth-state
References
Real example
Route /profile/:id maps to ProfilePage(userId: ...).
Real file output sample
lib/app/router/app_router.dart
lib/features/profile/presentation/pages/profile_page.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