Android Navigation
Guidelines for type-safe Android navigation using Jetpack Compose, emphasizing route definitions and event hoisting.
Install
mkdir -p .claude/skills/android-navigation && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10786" && unzip -o skill.zip -d .claude/skills/android-navigation && rm skill.zipInstalls to .claude/skills/android-navigation
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Standards for Jetpack Navigation Compose (Type-safe)Key capabilities
- →Set up nested navigation
- →Convert string routes to objects
- →Refactor navigation events
How it works
It enforces type-safe routes using @Serializable objects and event hoisting.
Inputs & outputs
When to use Android Navigation
- →Setting up nested navigation graphs
- →Converting string routes to type-safe objects
- →Refactoring navigation event handling
About this skill
Android Navigation Standards
Priority: P0
Implementation Guidelines
Type-Safe Navigation
- Library: Navigation Compose 2.8.0+.
- Routes: Use
@Serializableobjects/classes instead of String routes. - Arguments: No manual bundle parsing. Use
.toRoute<T>().
Structure
- Graphs: Split large apps into nested navigation graphs (
navigationextension functions). - Hoisting: Hoist navigation events out of Screens. Composable screens should accept callbacks (
onNavigateToX).
Anti-Patterns
- Hardcoded Strings:
**No String Routes**: Use Typed Objects. - Passing NavController:
**No NavController in UI**: Hoist events.
References
When not to use it
- →Manual bundle parsing
- →Passing NavController in UI
Prerequisites
Limitations
- →Requires Navigation Compose 2.8.0+
How it compares
It replaces hardcoded strings and manual bundle parsing with type-safe objects.
Compared to similar skills
Android Navigation side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| Android Navigation (this skill) | 0 | 5mo | No flags | Intermediate |
| android-kotlin | 7 | 4mo | No flags | Intermediate |
| reviewing-changes | 1 | 3mo | No flags | Intermediate |
| kmp-cmp-app-builder | 0 | 4mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by li-lance
View all by li-lance →You might also like
android-kotlin
alinaqi
Android Kotlin development with Coroutines, Jetpack Compose, Hilt, and MockK testing
reviewing-changes
bitwarden
Guides Android code reviews with type-specific checklists and MVVM/Compose pattern validation. Use when reviewing Android PRs, pull requests, diffs, or local changes involving Kotlin, ViewModel, Composable, Repository, or Gradle files. Triggered by "review PR", "review changes", "check this code", "Android review", or code review requests mentioning bitwarden/android. Loads specialized checklists for feature additions, bug fixes, UI refinements, refactoring, dependency updates, and infrastructure changes.
kmp-cmp-app-builder
firdaus1453
>
using-chrisbanes-skills
chrisbanes
Use when a Kotlin, Android, or Jetpack Compose task is too broad for any single focused skill to obviously apply, especially for general review, refactor, architecture, state, performance, testing, or UI API design work.
compose-skill
tajemniktv
>
mobile-agent
Wolfof420Street
Mobile specialist for Compose Multiplatform, Kotlin Multiplatform, and cross-platform mobile development