navigation-3

Migrate Android Compose apps from Jetpack Navigation 2 to Navigation 3.

2|Updated May 12, 2026
One-click install
npx skills add https://github.com/youfengknight/Android-Code-Skills --skill navigation-3-youfengknight
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: navigation-3
Source: https://github.com/youfengknight/Android-Code-Skills/tree/main/android-skills/navigation/navigation-3
Command: npx skills add https://github.com/youfengknight/Android-Code-Skills --skill navigation-3-youfengknight

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you migrate an existing Jetpack Navigation (Navigation 2) Compose app to Jetpack Navigation 3 while preserving navigation behavior, back stack state, and UI patterns without getting stuck on route/state API changes.

Core Features & Use Cases

  • Migration guidance: Update dependencies and refactor navigation routes and architecture from NavController/NavHost concepts to Navigation 3’s back stack + NavDisplay model.
  • Type-safe routing & deep links: Implement strongly typed destinations (NavKey) and handle deep links with correct Up/back behavior.
  • Advanced navigation patterns: Build multi-backstack apps, conditional navigation flows (e.g., authenticated vs anonymous), and return results from flows.
  • Compose + architecture integration: Integrate with Hilt, ViewModel, Kotlin, and View interoperability for production-style setups.

Quick Start

Use the navigation-3 skill to migrate your Compose navigation from Navigation 2 to Navigation 3, including typed NavKeys, NavDisplay entryProvider wiring, and a deep-link strategy for your main destinations.

Frequently Asked Questions about navigation-3

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate my Android app from Jetpack Navigation 2 to Navigation 3?

Migrate to Navigation 3 by updating dependencies and refactoring NavController/NavHost concepts to the new back stack + NavDisplay model. This ensures reliable Compose-first navigation while preserving back stack state and UI patterns without getting stuck on route/state API changes.

How does type-safe routing work with deep links in Navigation 3?

Type-safe routing in Navigation 3 uses strongly typed destinations called NavKeys to handle deep links. This approach ensures correct Up and back behavior when integrating deep links into your main destinations during the migration process.

Can I build multiple back stacks and conditional navigation flows using Jetpack Navigation 3?

Yes, Navigation 3 supports building multi-backstack apps and conditional navigation flows like authenticated versus anonymous states. It uses NavKey-based strongly typed navigation and NavDisplay refactoring to control back stack behavior for these advanced patterns.

Does Navigation 3 work with Hilt and ViewModel for argument and result handling?

Navigation 3 integrates with Hilt and ViewModel for production-style setups. It provides specific integration patterns for ViewModel argument and result handling, ensuring your Compose architecture remains intact when returning results from navigation flows.

What is the best way to handle returning results from navigation flows in Compose?

The best way to return results is using NavKey-based strongly typed navigation within the NavDisplay model. This approach allows you to handle returning results from conditional flows while maintaining controlled back stack behavior during your migration.