Back to skills
SKILL.md
Android Navigation
ASecurityStandards for Jetpack Navigation Compose (Type-safe)
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added September 27, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add David-Li0406/meta-skill-evloving --skill android-navigation --agent claude-codeAre you the author of Android Navigation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-android-navigation)---
name: Android Navigation
description: Standards for Jetpack Navigation Compose (Type-safe)
metadata:
labels: [android, navigation, compose]
triggers:
files: ['**/*NavHost.kt', '**/*Graph.kt']
keywords: ['NavHost', 'navController', '@Serializable']
---
# Android Navigation Standards
## **Priority: P0**
## Implementation Guidelines
### Type-Safe Navigation
- **Library**: Navigation Compose 2.8.0+.
- **Routes**: Use `@Serializable` objects/classes instead of String routes.
- **Arguments**: No manual bundle parsing. Use `.toRoute<T>()`.
### Structure
- **Graphs**: Split large apps into nested navigation graphs (`navigation` extension 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.`
## References
- [Route Definitions](references/implementation.md)
Files in this skill
- SKILL.md
- references/implementation.md
Attribution
Comments
Loading comments…