Agent Skills: Android Navigation (Jetpack Compose)

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.

UncategorizedID: hoangnguyen0403/agent-skills-standard/android-navigation

Install this agent skill to your local

pnpm dlx add-skill https://github.com/HoangNguyen0403/agent-skills-standard/tree/HEAD/skills/android/android-navigation

Skill Files

Browse the full folder contents for android-navigation.

Download Skill

Loading file tree…

skills/android/android-navigation/SKILL.md

Skill Metadata

Name
android-navigation
Description
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.

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