android-navigation-3
Skill2 starsChanged 5 months agoMITView on GitHub
Use for Android Navigation 3 setup, migration from Navigation Compose, typed routes, deep links, back stack handling and navigation tests.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- super-android-kotlin-firebaseSkill
- accessibilitySkill
- agp9-kotlin-migrationSkill
- android-architectureSkill
- android-coreSkill
- code-review-refactorSkill
- compose-contextual-design-systemSkill
- compose-performanceSkill
- context-aware-ui-designSkill
- debuggingSkill
- dependency-injectionSkill
- dependency-upgrade-safetySkill
- design-test-gateSkill
- edge-to-edge-adaptive-uiSkill
- firebase-ai-logicSkill
- firebase-authSkill
- firebase-cloud-functionsSkill
- firebase-coreSkill
- firebase-crashlytics-analyticsSkill
- firebase-emulator-ciSkill
- firebase-messagingSkill
- firestore-costs-quotasSkill
- firestoreSkill
- gradle-buildSkill
- jetpack-composeSkill
- kotlin-coreSkill
- macrobenchmark-baseline-profilesSkill
- networking-retrofit-ktorSkill
- play-store-releaseSkill
- r8-proguard-optimizationSkill
- room-datastoreSkill
- screen-ux-auditSkill
- security-privacySkill
- testingSkill
- ui-state-designSkill
- workmanager-background-syncSkill
- xml-to-compose-migrationSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Add or update navigation tests for critical flows.
- Distinctive: line 34
Do not pass large objects as route arguments.
- Distinctive: line 35
Do not put business logic inside route definitions.
- Distinctive: line 36
Do not create duplicate NavHost owners.
- Distinctive: line 38
Prefer typed route patterns when the project already uses them.
- Distinctive: line 51
Do not assume these companion skills are installed.
- Distinctive: line 91
Use $super-android-kotlin-firebase to migrate this app to Navigation 3.
- Distinctive: line 92
Use $super-android-kotlin-firebase to add typed routes and deep links safely.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
Implement or migrate modern Android navigation without breaking screens, route arguments, deep links or back stack behavior.
When to use
- Adding Navigation 3 to an Android app.
- Migrating from Navigation Compose or custom navigation.
- Fixing typed routes, deep links, nested graphs or back stack issues.
Inputs to inspect
build.gradle.ktsandlibs.versions.tomlMainActivity.ktand app entry pointsNavHost, routes and feature navigation filesAndroidManifest.xmldeep linksscreens/*and ViewModel event flow
Required workflow
- Map current destinations, arguments and deep links.
- Choose typed routes or preserve the existing route convention.
- Move navigation decisions to route-level event handling.
- Add or update navigation tests for critical flows.
- Validate back behavior, process recreation and deep links.
Rules
- Do not pass large objects as route arguments.
- Do not put business logic inside route definitions.
- Do not create duplicate NavHost owners.
- Preserve existing deep links unless the user approves a migration.
- Prefer typed route patterns when the project already uses them.
Related existing skills
Local skills to invoke
- jetpack-compose
- android-core
- testing
- edge-to-edge-adaptive-ui
External companion skills to use when installed
Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.
- aldefy/compose-skill — use for deeper Jetpack Compose, Material 3, design-to-code, theming or Compose architecture guidance.
- android/skills — use for official Android workflow alignment around edge-to-edge, adaptive UI, Navigation 3, R8, AGP or testing setup.
Files commonly touched
settings.gradle.ktsbuild.gradle.ktsgradle/libs.versions.tomlMainActivity.ktfeature/*/navigation/*AndroidManifest.xmlandroidTest/*Navigation*
Commands to validate
./gradlew assembleDebug
./gradlew test
./gradlew connectedDebugAndroidTestCommon mistakes to avoid
- Navigating directly from deep reusable Composables.
- Changing route strings without migration notes.
- Forgetting saved state and process death.
- Testing only happy-path forward navigation.
Checklist
- Destinations and arguments documented.
- Deep links preserved or explicitly migrated.
- Back stack behavior tested.
- Navigation events flow from UI state/events.
- Validation commands provided.
Example prompts
- Use $super-android-kotlin-firebase to migrate this app to Navigation 3.
- Use $super-android-kotlin-firebase to add typed routes and deep links safely.
Expected response style
Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.
References
- ../../docs/audits/FUENTES_LOCALES.md
- references/navigation-3-patterns.md
- references/migration-from-navigation-compose.md
- references/deep-links-and-back-stack.md
- templates/typed-route-template.md
- templates/navigation-host-template.md
- templates/navigation-test-template.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

