navigation-3

Guide Android app migration to Jetpack Navigation 3 with Kotlin and Compose.

Updated Jan 11, 2026
One-click install
npx skills add https://github.com/Kaito-Dogi/smopin --skill navigation-3-kaito-dogi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: navigation-3
Source: https://github.com/Kaito-Dogi/smopin/tree/main/.agents/skills/android-skills/navigation/navigation-3
Command: npx skills add https://github.com/Kaito-Dogi/smopin --skill navigation-3-kaito-dogi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kotlinx-navigation3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides comprehensive guidance on migrating and implementing Jetpack Navigation 3 in Android apps, addressing common navigation challenges and enhancing user experience.

Core Features & Use Cases

  • Migration Guide: Simplifies migration from Navigation 2 to Navigation 3.
  • Type-Safe Navigation: Ensures robust and predictable navigation flows using Kotlin types.
  • Deep Linking: Enables handling of deep links and maintaining context with Task stacks.
  • Conditional Navigation: Allows conditional access to destinations based on user status.
  • Modularized Code: Supports modularization using Hilt or Koin for clean navigation architecture.
  • ViewModel Integration: Facilitates passing arguments and returning results with ViewModels.
  • Recipes: Provides code examples for common navigation patterns and features.
  • Use Case: Enhance an e-commerce app by incorporating navigation components that provide smooth and consistent navigation across user workflows, including browsing products, viewing cart details, and processing orders.

Quick Start

Migrate your Android app to Jetpack Navigation 3 by following the guide in 'references/android/guide/navigation/navigation-3/migration-guide.md'.

Frequently Asked Questions about navigation-3

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

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

You can migrate from Navigation 2 to Navigation 3 by following the provided migration guide to transition your app's architecture. It covers updating routing logic, implementing type-safe navigation, and adjusting ViewModel integration.

How does type-safe navigation work in Jetpack Navigation 3?

Type-safe navigation in Jetpack Navigation 3 uses Kotlin types to ensure robust and predictable routing between destinations. This approach prevents runtime errors by validating navigation arguments at compile time.

Can I use Jetpack Navigation 3 with Hilt or Koin for modularized code?

Yes, Jetpack Navigation 3 supports modularized code using Hilt or Koin. This integration allows you to maintain a clean navigation architecture and inject dependencies across distinct feature modules.

Does Jetpack Navigation 3 support deep linking with Task stacks?

Yes, Jetpack Navigation 3 handles deep linking while maintaining context using Task stacks. This feature allows external links to navigate directly to specific app screens while preserving the back stack.

How do I pass arguments and return results using ViewModels in Navigation 3?

Jetpack Navigation 3 facilitates passing arguments and returning results through direct ViewModel integration. This allows screens to share data safely without relying on global state or complex manual serialization.

What are the prerequisites for implementing Jetpack Navigation 3?

Implementing Jetpack Navigation 3 requires Kotlin, Jetpack Compose, and the kotlinx-navigation3 library. You must have an existing Android project configured with these dependencies to utilize the type-safe routing.