common-accessibility
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Implement typed routing, nested routes, and auth guards using auto_route in Flutter. Use when the task explicitly uses auto_route or its generated router; defer generic deep-link setup and other routing libraries.
Claude Code
$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill flutter-auto-route-navigation --agent claude-code
Codex
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-auto-route-navigation -a codex -y
Cursor
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-auto-route-navigation -a cursor -y
Gemini CLI
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-auto-route-navigation -a gemini-cli -y
GitHub Copilot
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-auto-route-navigation -a github-copilot -y
OpenCode
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-auto-route-navigation -a opencode -y
Windsurf
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-auto-route-navigation -a windsurf -y
name: flutter-auto-route-navigation
description: Implement typed routing, nested routes, and auth guards using auto_route in Flutter. Use when the task explicitly uses auto_route or its generated router; defer generic deep-link setup and other routing libraries.
metadata:
triggers:
files:
- '**/router.dart'
- '**/app_router.dart'
keywords:
- AutoRoute
- AutoRouter
- router
- guards
- navigate
- pushcore/router/ ├── app_router.dart # Router configuration └── app_router.gr.dart # Generated routes
1. **Annotate pages** — Mark all screen/page widgets with `@RoutePage()`. 2. **Configure router** — Extend `_$AppRouter` and annotate with `@AutoRouterConfig`. 3. **Navigate with types** — Use generated route classes (e.g., `HomeRoute()`). Never use strings. 4. **Add guards** — Implement `AutoRouteGuard` for authentication/authorization logic. 5. **Handle parameters** — Constructors of `@RoutePage` widgets automatically become route parameters. 6. **Prefer declarative calls** — Use `context.pushRoute()` or `context.replaceRoute()`.
Use `children` in `AutoRoute` for tabs. Pass `children` parameter to define initial active sub-route.
See [implementation examples](references/implementation.md) for nested route navigation and router configuration patterns.
For full Router configuration and Auth Guard implementation: See [references/REFERENCE.md](references/REFERENCE.md).
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
The portable standards layer for AI coding agents. Sync once, then work in your own runtime.
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Define deterministic guardrails for agent tool calls — protected paths, test-file locks during bug fixes, post-edit formatters,…
Apply REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards for any framework. Use…
Audit structural debt, logic leakage, and monolithic components across Web, Mobile, and Backend codebases. Use when reviewing…
Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional…
Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.