Skip to content
Development
Skill

/android-legacy-navigation

Implement Jetpack Navigation Component with XML graphs and SafeArgs for type-safe fragment navigation. Use when working with XML-based navigation or SafeArgs in legacy Android projects; defer drawer and other UI-chrome work to UI skills.

From plugin
agent-skills-standard
538200 skills1 MCP
Install
$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill android-legacy-navigation --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/android-legacy-navigation

Context preview

The summary Claude sees to decide when to auto-load this skill.

Implement Jetpack Navigation Component with XML graphs and SafeArgs for type-safe fragment navigation. Use when working with XML-based navigation or SafeArgs in legacy Android projects; defer drawer and other UI-chrome work to UI skills.

SKILL.md

android-legacy-navigation.SKILL.md
name: android-legacy-navigation
description: Implement Jetpack Navigation Component with XML graphs and SafeArgs for type-safe fragment navigation. Use when working with XML-based navigation or SafeArgs in legacy Android projects; defer drawer and other UI-chrome work to UI skills.
metadata:
  triggers:
    files:
    - 'navigation/*.xml'
    keywords:
    - findNavController
    - NavDirections
    - navArgs

Android Legacy Navigation Standards

**Priority: P1 (HIGH)**

1. Set Up Single-Activity Architecture

  • Use one Host Activity with `NavHostFragment`.
  • Enable SafeArgs plugin — MANDATORY for passing data between fragments.

See [XML graph & SafeArgs examples](references/implementation.md) for NavHostFragment setup.

2. Manage Navigation Graphs

  • **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.

3. Navigate with SafeArgs

See [XML graph & SafeArgs examples](references/implementation.md) for type-safe navigation usage.

Anti-Patterns

  • **No Raw String Bundle Keys**: Use SafeArgs generated type-safe classes.
  • **No Manual Fragment commit()**: Use NavController for all navigation.

References

  • [XML Graph & SafeArgs](references/implementation.md)
Ships withagent-skills-standard

The portable SDLC standards layer for AI coding agents. Sync once, then work in your own runtime.

Get the whole plugin

Other skills on agent-skills-standard.