Skip to content
Skillpedia
Mobile apps10k · #11924

navigation-3

What it does

This skill guides installing and migrating to Jetpack Navigation 3, the newer navigation library for Android. It also covers patterns such as deep links, multiple back stacks and bottom sheets. It is for Android developers moving to or building with Navigation 3.

When to use it

  • ✓When you want to migrate an Android app from Navigation 2 to Navigation 3.
  • ✓When you need several back stacks, such as separate tabs with their own history.
  • ✓When you want deep links, dialogs or bottom sheets handled through navigation.

Skill link

https://github.com/android/skills/blob/main/navigation/navigation-3/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/android/skills/blob/main/navigation/navigation-3/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Move my Android app from Navigation 2 to Navigation 3 and keep the same screens working.”

5 new skills a week. 1 minute to read.

How it works

The skill follows the migration guide, covering dependency updates, route changes and state handling. It then shows how to set up patterns such as deep links, scenes and results returned from flows.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.


Migration guide

  • Navigation 2 to Navigation 3 migration guide: Step-by-step guide to migrate an Android application from Navigation 2 to Navigation 3, covering dependency updates, route changes, state management, and UI component replacements.

Requirements

Developer documentation

  • Navigation 3. Search documentation for more information on basics, saving and managing navigation state, modularizing navigation code, creating custom layouts using Scenes, animating between destinations, or applying logic or wrappers to destinations.

Recipes

Code examples showcasing common patterns.

Basic API usage

Common UI

  • Common UI: Demonstrates how to implement a common navigation UI pattern with a bottom navigation bar and multiple back stacks, where each tab in the navigation bar has its own navigation history.

Deep links

Scenes

Use built-in Scenes

  • Dialog: Shows how to create a Dialog.

Create custom Scenes

  • BottomSheet: Shows how to create a BottomSheet destination.
  • List-Detail Scene: Demonstrates how to implement adaptive list-detail layouts using the Navigation 3 Scenes API.
  • Two pane Scene: Demonstrates how to implement adaptive two-pane layouts using the Navigation 3 Scenes API.

Material Adaptive

  • Material List-Detail: Demonstrates how to implement an adaptive list-detail layout using Material 3 Adaptive.
  • Material Supporting Pane: Demonstrates how to implement an adaptive supporting pane layout using Material 3 Adaptive.

Animations

  • Animations: Shows how to override the default animations for all destinations and a single destination.
  • Conditional Transitions: Shows how to implement conditional transition animations.

Common back stack behavior

  • Multiple back stacks: Shows how to create multiple top level routes, each with its own back stack. Top level routes are displayed in a navigation bar allowing users to switch between them. State is retained for each top level route, and the navigation state persists config changes and process death.

Conditional navigation

FAQ

Does it cover moving from string routes?

Yes. It points to a guide for moving to type-safe navigation in Compose as part of the migration.

Can it help with signed-in and signed-out flows?

Yes. It covers conditional navigation, such as showing different screens for logged-in and anonymous users.

Does it cover Hilt and ViewModel?

Yes. It includes integration with Hilt, ViewModel and Kotlin.

Details

Original description by the author

Learn how to install and migrate to Jetpack Navigation 3, and how to implement features and patterns such as deep links, multiple backstacks, scenes (dialogs, bottom sheets, list-detail, two-pane, supporting pane), conditional navigation (such as logged-in navigation versus anonymous), returning results from flows, integration with Hilt, ViewModel, Kotlin, and view interoperability.

repo: android/skills

Popularity

GitHub stars
10k
Ranking position
#11924
License
Apache-2.0
Updated
10/29/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills