跳到正文
FunCoding

android-navigation

Implement screen routes and deep-link/App Link routing with Jetpack Compose Navigation on Android. Use when the primary task is Compose route configuration or external URL routing; defer typed-route APIs, XML/fragments, generic back-stack, and transition questions to their specific navigation skills.

Star
598
许可证
MIT
最近提交
2026年12月2日

skills/android/android-navigation/SKILL.md

在 GitHub 上查看

Android Navigation (Jetpack Compose)

Priority: P2 (MEDIUM)

Guidelines

  • Library: Use androidx.navigation:navigation-compose.
  • Type Safety: Use sealed classes for routes, never raw strings.
  • Deep Links: Configure intent-filter in Manifest and deepLinks in NavHost.
  • Validation: Validate arguments (e.g., proper IDs) before loading content.

Anti-Patterns

  • No String Routes: Use Screen.Product.route instead of "product/$id".
  • No Unvalidated Deep Links: Check resource existence before rendering.
  • No Missing Manifest: Deep links require autoVerify=true intent filters.

References

相似的 Skill

ask-matt

MAmattpocock/skills337k近 7 天新增 4,978 个 star

chief-of-staff

MAmattpocock/skills337k近 7 天新增 4,978 个 star

setup-matt-pocock-skills

MAmattpocock/skills337k近 7 天新增 4,978 个 star

subagent-driven-development

OBobra/superpowers331k近 7 天新增 4,772 个 star

autonomous-loops

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

autonomous-agent-harness

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star