Resources
1Install
npx skillscat add hoangnguyen0403/agent-skills-standard/skills-android-navigation Install via the SkillsCat registry.
SKILL.md
Android Navigation Standards
Priority: P0
Implementation Guidelines
Type-Safe Navigation
- Library: Navigation Compose 2.8.0+.
- Routes: Use
@Serializableobjects/classes instead of String routes. - Arguments: No manual bundle parsing. Use
.toRoute<T>().
Structure
- Graphs: Split large apps into nested navigation graphs (
navigationextension functions). - Hoisting: Hoist navigation events out of Screens. Composable screens should accept callbacks (
onNavigateToX).
Anti-Patterns
- Hardcoded Strings:
**No String Routes**: Use Typed Objects. - Passing NavController:
**No NavController in UI**: Hoist events.