AGENT SKILL
android-navigation
Navigation for Android using Jetpack Compose Navigation and App Links. Use when implementing navigation flows, deep links, or backstack handling in Android. (triggers: **/*Screen.kt, **/*Activity.kt, **/NavGraph.kt, NavController, NavHost, composable, navArgument, deepLinks)
- License 许可
- MIT
- 最近更新
- 2026-06-24
- Stars
- ★ 66
- Forks
- 24
01 前言 Front Matter
- name
- android-navigation
- description
- Navigation for Android using Jetpack Compose Navigation and App Links. Use when implementing navigation flows, deep links, or backstack handling in Android. (triggers: **/*Screen.kt, **/*Activity.kt, **/NavGraph.kt, NavController, NavHost, composable, navArgument, deepLinks)
02 资源文件 6
- 参考文档evals/evals.json28.0 KB
- 参考文档references/functions-methods.md4.0 KB
- 参考文档references/identifiers.md5.1 KB
- 参考文档references/packages-files.md3.0 KB
- 参考文档references/testing.md1.2 KB
- 参考文档references/types-errors.md4.1 KB
03 SKILL.md 正文
Android Navigation (Jetpack Compose)
Priority: P2 (OPTIONAL)
Navigation and deep linking using Jetpack Compose Navigation.
Guidelines
- Library: Use
androidx.navigation:navigation-compose. - Type Safety: Use sealed classes for routes, never raw strings.
- Deep Links: Configure
intent-filterin Manifest anddeepLinksin NavHost. - Validation: Validate arguments (e.g., proper IDs) before loading content.
Anti-Patterns
- No String Routes: Use
Screen.Product.routeinstead of"product/$id". - No Unvalidated Deep Links: Check resource existence before rendering.
- No Missing Manifest: Deep links require
autoVerify=trueintent filters.