
Compose Navigation
This implements Navigation Compose with type-safe routing using Kotlin serialization, which is the modern approach over string-based routes. You get NavHost setup, argument passing between screens, deep links, nested graphs for flows like authentication, and the adaptive NavigationSuiteScaffold for responsive layouts. The skill correctly emphasizes passing IDs rather than complex objects and shows practical patterns like bottom navigation with state restoration. If you're building any multi-screen Compose app, this covers the standard navigation infrastructure you need. The type safety alone makes it worth using over the old string-based approach, since you catch routing errors at compile time instead of runtime.
- skills.sh installs
- 438
- GitHub stars
- 1K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill compose-navigation --agent claude-codeInstalls into .claude/skills of the current project.
Files
Navigation 3
Overview
Implement state-driven navigation in Jetpack Compose using Navigation 3. Unlike Navigation Compose, Navigation 3 models navigation as application state rather than through a NavController. This skill covers navigation keys, back stack management, ViewModel scoping, entry decorators, adaptive layouts, deep links, animations, state restoration, and testing.
Setup
Add the Navigation 3 dependencies:
// build.gradle.kts
dependencies {
implementation("androidx.navigation3:navigation3-runtime:1.0.0-alpha08")
implementation("androidx.navigation3:navigation3-ui:1.0.0-alpha08")
// Lifecycle integration
implementation("androidx.lifecycle:lifecycle-viewmodel-navigation3:2.9.2")
// Serialization
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1")
}
// Enable serialization plugin
plugins {
kotlin("plugin.serialization") version "2.2.0"
}
Core Concepts
1. Define Navigation Keys
Navigation destinations are represented by immutable serializable objects.
import kotlinx.serialization.Serializable
@Serializable
data object Home
Sponsors
Details
- Repository
- github.com/new-silvermoon/awesome-android-agent-skills
- Categories
- DevOps & CI/CD, AI & Agent Building, Mobile Development
- First seen
- Jun 3, 2026
More from new-silvermoon/awesome-android-agent-skills
All 17- Rxjava To Coroutines Migration347
- Android Testing869
- Gradle Build Performance809
- Compose Ui760
- Android Gradle Logic738
- Android Architecture701
- Kotlin Concurrency Expert684
- Compose Performance Audit596
- Android Emulator Skill578
- Android Viewmodel576
- Android Coroutines569
- Android Accessibility560
- Android Data Layer531
- Android Retrofit495
- Coil Compose464
- Xml To Compose Migration451