agentsclimarketplace

Android legacy navigation

Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/android-legacy-navigation

Standards for Jetpack Navigation Component (XML) and SafeArgs. Use when working with XML-based Navigation Component or SafeArgs in Android. (triggers: navigation/*.xml, findNavController, NavDirections, navArgs)From its SKILL.md

Install
npx -y skills add ComeOnOliver/skillshub --skill android-legacy-navigation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.0 KB, 163 tokens by cl100k_base, as published. Nobody here has run it

Android Legacy Navigation Standards

Priority: P1

Implementation Guidelines

Setup

  • Single Activity: Use one Host Activity with a NavHostFragment.
  • SafeArgs: MANDATORY for passing data between fragments.

Graph Management

  • 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 (Nav handles them).

Anti-Patterns

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

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.