AN

Android Navigation

Guidelines for type-safe Android navigation using Jetpack Compose, emphasizing route definitions and event hoisting.

Install

mkdir -p .claude/skills/android-navigation && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10786" && unzip -o skill.zip -d .claude/skills/android-navigation && rm skill.zip

Installs to .claude/skills/android-navigation

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Standards for Jetpack Navigation Compose (Type-safe)
52 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Set up nested navigation
  • Convert string routes to objects
  • Refactor navigation events

How it works

It enforces type-safe routes using @Serializable objects and event hoisting.

Inputs & outputs

You give it
Navigation requirements
You get back
Type-safe navigation implementation

When to use Android Navigation

  • Setting up nested navigation graphs
  • Converting string routes to type-safe objects
  • Refactoring navigation event handling

About this skill

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

When not to use it

  • Manual bundle parsing
  • Passing NavController in UI

Prerequisites

Navigation Compose 2.8.0+

Limitations

  • Requires Navigation Compose 2.8.0+

How it compares

It replaces hardcoded strings and manual bundle parsing with type-safe objects.

Compared to similar skills

Android Navigation side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
Android Navigation (this skill)05moNo flagsIntermediate
android-kotlin74moNo flagsIntermediate
reviewing-changes13moNo flagsIntermediate
kmp-cmp-app-builder04moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by li-lance

View all by li-lance

Android Dependency Injection (Hilt)

li-lance

Standards for Hilt Setup, Scoping, and Modules

00

angular-ssr

li-lance

Implement Angular SSR with hydration, TransferState caching, and per-route render modes. Use when configuring Angular Universal SSR, client hydration, static prerendering, or preventing double-fetching. (triggers: **/*.server.ts, server.ts, hydration, transferState, afterNextRender, isPlatformServer

00

php-concurrency

li-lance

Implement concurrency and non-blocking I/O in modern PHP. Use when implementing concurrent requests, async processing, or non-blocking I/O in PHP. (triggers: **/*.php, Fiber, suspend, resume, non-blocking, async)

00

react-performance

li-lance

Optimize React rendering, bundle size, and data fetching performance. Use when optimizing React rendering performance, reducing re-renders, or improving bundle size. (triggers: **/*.tsx, **/*.jsx, waterfall, bundle, lazy, suspense, dynamic)

00

common-workflow-writing

li-lance

Rules for writing concise, token-efficient workflow and skill files. Prevents over-building that requires costly optimization passes. Use when creating or editing workflow files, SKILL.md files, or new skill definitions. (triggers: .agent/workflows/*.md, SKILL.md, create workflow, write workflow, ne

00

common-security-standards

li-lance

Enforce universal security protocols for safe, resilient software. Use when implementing authentication, encryption, authorization, input validation, secret management, or any security-sensitive feature across any language or framework. (triggers: **/*.ts, **/*.tsx, **/*.go, **/*.dart, **/*.java, **

00

Search skills

Search the agent skills registry