Android legacy navigation
Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/android-legacy-navigation
Standards for Jetpack Navigation Component (XML) and SafeArgs. Use when working with XML-based Navigation Component or SafeArgs in Android. (triggers: navigation/*.xml, findNavController, NavDirections, navArgs)From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill android-legacy-navigationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.0 KB, 163 tokens by cl100k_base, as published. Nobody here has run it
Android Legacy Navigation Standards
Priority: P1
Implementation Guidelines
Setup
- Single Activity: Use one Host Activity with a
NavHostFragment. - SafeArgs: MANDATORY for passing data between fragments.
Graph Management
- Nested Graphs: Modularize
navigation/resources (e.g.,nav_auth.xml,nav_main.xml) to keep graphs readable. - Deep Links: Define explicit
<deepLink>in graph, not AndroidManifest intent filters (Nav handles them).
Anti-Patterns
- No Raw String Bundle Keys: Use SafeArgs generated type-safe classes.
- No Manual Fragment commit(): Use NavController for all navigation.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.