What problem does it solve?
This Skill addresses the challenges of designing, implementing, and reviewing navigation in Compose Multiplatform projects, ensuring clear route modeling, controlled navigation side effects, and minimal argument passing.
Core Features & Use Cases
- Navigation Modeling: Provides guidance on explicit and typed route models.
- NavController Ownership: Ensures a single owner for
NavController and controlled navigation events.
- Back Stack Management: Helps in managing back stack ownership and state.
- Navigation Policy: Offers recommendations for navigation policies like
popUpTo, inclusive, saveState, and restoreState.
- Argument Passing: Focuses on minimal and stable argument payloads.
- Conditional Navigation: Suggests shared state-based conditional navigation.
- Deep Links: Guides on explicit and non-overlapping deep-link patterns.
- Adaptive UI: Recommends adaptive navigation UI for different window sizes.
- Navigation Host Architecture: Provides advice on navigation host and app shell decomposition.
- Animated Transitions: Offers best practices for animated transitions.
- Destination Isolation: Emphasizes meaningful UI boundaries for each destination.
- Testability: Ensures navigation architecture is testable.
- Use Case: For a KMP project, this Skill can help streamline the navigation architecture, making it more robust and maintainable.
Quick Start
Run the skill on your Compose Multiplatform project to ensure adherence to best navigation practices.