Skip to main content

go-router-modular

星标16
分支2
更新时间2026年7月1日 13:22

Best practices and project structure for the go_router_modular Flutter package. Use this whenever you scaffold or edit a go_router_modular app — creating a feature's routes, adding a ChildRoute or ModuleRoute, registering a Module's binds/imports, writing navigation code (go/push), setting up main.dart / AppModule / AppWidget, wiring debug logs, or building bottom navigation / tabs / shell layouts (StatefulShellModularRoute, ShellModularRoute) — even if the user doesn't explicitly ask for "best practices". It enforces the project convention — the lib/src/modules/<feature>/ layout, a feature route file per feature, named-only navigation, name on every ChildRoute, synchronous modules with binds via the `..` cascade, Modular.configure logs gated on kDebugMode, and shell routes only for specific cases (tabs with preserved state, or persistent chrome).

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
3 个文件
SKILL.md
readonly