{"id":"ab8f7fba-9d76-4cda-b02e-63cd022b7f5f","shortId":"ncAAMk","kind":"skill","title":"android-navigation-deeplinks","tagline":"Handle navigation graphs, back stack behavior, app links, intents, and destination ownership for Android apps.","description":"# Android Navigation Deep Links\n\n## When To Use\n- Use this skill when the request is about: android navigation graph, deep link into android app, back stack issue in compose nav.\n- Primary outcome: Handle navigation graphs, back stack behavior, app links, intents, and destination ownership for Android apps.\n- Handoff skills when the scope expands:\n- `android-permissions-activity-results`\n- `android-testing-ui`\n\n## Workflow\n1. Confirm the user-visible journey, target device behavior, and failure states that matter.\n2. Identify the owning screens, activities, destinations, and state holders for the flow.\n3. Implement the flow with explicit loading, success, empty, and error handling.\n4. Validate accessibility, configuration changes, and back-stack behavior in the showcase apps.\n5. Escalate data, architecture, or release concerns to the specialized skills called out in the handoff notes.\n\n## Guardrails\n- Treat loading, empty, error, offline, and permission-denied states as first-class UI states.\n- Do not hide navigation or permission side effects inside reusable UI components.\n- Prefer lifecycle-aware APIs over manual callback chains.\n- Keep deep links, intents, and permission prompts testable and observable.\n\n## Anti-Patterns\n- Assuming the happy path is enough for product flows.\n- Hard-coding request codes or route strings in multiple places.\n- Triggering navigation directly from repositories or network layers.\n- Shipping flows without recovery UI for denied permissions or broken state.\n\n## Remediation Examples\n### Centralize route ownership\n```kotlin\nsealed interface OrbitRoute {\n    data object Board : OrbitRoute\n    data class Task(val taskId: String) : OrbitRoute\n}\n```\n\n### Preserve expected back-stack behavior\n```kotlin\nnavController.navigate(OrbitRoute.Task(taskId)) {\n    launchSingleTop = true\n    restoreState = true\n}\n```\n\n### Parse deep-link arguments in one place\n```kotlin\nval taskId = intent?.data?.getQueryParameter(\"taskId\")\nrequire(!taskId.isNullOrBlank()) { \"Missing taskId deep-link argument\" }\n```\n\n## Examples\n### Happy path\n- Scenario: Route the Compose showcase into a task details destination from a deep link.\n- Command: `cd examples/orbittasks-compose && ./gradlew :app:testDebugUnitTest`\n\n### Edge case\n- Scenario: Preserve expected Up and Back behavior when the XML activity is cold-started from a link.\n- Command: `cd examples/orbittasks-xml && ./gradlew :app:testDebugUnitTest`\n\n### Failure recovery\n- Scenario: Prevent confusion with permission, state, and release prompts.\n- Command: `python3 scripts/eval_triggers.py --skill android-navigation-deeplinks`\n\n## Done Checklist\n- The implementation path is explicit, minimal, and tied to the right Android surface.\n- Relevant example commands and benchmark prompts have been exercised or updated.\n- Handoffs to adjacent skills are documented when the request crosses boundaries.\n- Official references cover the chosen pattern and the main migration or troubleshooting path.\n\n## Official References\n- [https://developer.android.com/guide/navigation](https://developer.android.com/guide/navigation)\n- [https://developer.android.com/guide/navigation/design](https://developer.android.com/guide/navigation/design)\n- [https://developer.android.com/training/app-links](https://developer.android.com/training/app-links)\n- [https://developer.android.com/guide/components/intents-filters](https://developer.android.com/guide/components/intents-filters)","tags":["android","navigation","deeplinks","agent","skills","krutikjain","agent-skills","android-development","android-skills","androidx","claude-code","codex"],"capabilities":["skill","source-krutikjain","skill-android-navigation-deeplinks","topic-agent-skills","topic-android","topic-android-development","topic-android-skills","topic-androidx","topic-claude-code","topic-codex","topic-cursor","topic-jetpack-compose","topic-kotlin","topic-skills"],"categories":["android-agent-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/krutikJain/android-agent-skills/android-navigation-deeplinks","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add krutikJain/android-agent-skills","source_repo":"https://github.com/krutikJain/android-agent-skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (3,451 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:13:28.283Z","embedding":null,"createdAt":"2026-05-18T13:20:50.945Z","updatedAt":"2026-05-18T19:13:28.283Z","lastSeenAt":"2026-05-18T19:13:28.283Z","tsv":"'/gradlew':320,346 '/guide/components/intents-filters](https://developer.android.com/guide/components/intents-filters)':431 '/guide/navigation/design](https://developer.android.com/guide/navigation/design)':425 '/guide/navigation](https://developer.android.com/guide/navigation)':422 '/training/app-links](https://developer.android.com/training/app-links)':428 '1':82 '2':97 '3':110 '4':122 '5':136 'access':124 'activ':75,102,335 'adjac':396 'android':2,18,20,35,41,64,73,78,365,381 'android-navigation-deeplink':1,364 'android-permissions-activity-result':72 'android-testing-ui':77 'anti':202 'anti-pattern':201 'api':186 'app':11,19,42,57,65,135,321,347 'architectur':139 'argument':281,299 'assum':204 'awar':185 'back':8,43,54,129,266,330 'back-stack':128,265 'behavior':10,56,91,131,268,331 'benchmark':387 'board':254 'boundari':404 'broken':241 'call':147 'callback':189 'case':324 'cd':318,344 'central':245 'chain':190 'chang':126 'checklist':369 'chosen':409 'class':167,257 'code':215,217 'cold':338 'cold-start':337 'command':317,343,360,385 'compon':181 'compos':47,306 'concern':142 'configur':125 'confirm':83 'confus':353 'cover':407 'cross':403 'data':138,252,256,289 'deep':22,38,192,279,297,315 'deep-link':278,296 'deeplink':4,367 'deni':162,238 'destin':15,61,103,312 'detail':311 'developer.android.com':421,424,427,430 'developer.android.com/guide/components/intents-filters](https://developer.android.com/guide/components/intents-filters)':429 'developer.android.com/guide/navigation/design](https://developer.android.com/guide/navigation/design)':423 'developer.android.com/guide/navigation](https://developer.android.com/guide/navigation)':420 'developer.android.com/training/app-links](https://developer.android.com/training/app-links)':426 'devic':90 'direct':226 'document':399 'done':368 'edg':323 'effect':177 'empti':118,156 'enough':209 'error':120,157 'escal':137 'exampl':244,300,384 'examples/orbittasks-compose':319 'examples/orbittasks-xml':345 'exercis':391 'expand':71 'expect':264,327 'explicit':115,374 'failur':93,349 'first':166 'first-class':165 'flow':109,113,212,233 'getqueryparamet':290 'graph':7,37,53 'guardrail':153 'handl':5,51,121 'handoff':66,151,394 'happi':206,301 'hard':214 'hard-cod':213 'hide':172 'holder':106 'identifi':98 'implement':111,371 'insid':178 'intent':13,59,194,288 'interfac':250 'issu':45 'journey':88 'keep':191 'kotlin':248,269,285 'launchsingletop':273 'layer':231 'lifecycl':184 'lifecycle-awar':183 'link':12,23,39,58,193,280,298,316,342 'load':116,155 'main':413 'manual':188 'matter':96 'migrat':414 'minim':375 'miss':294 'multipl':222 'nav':48 'navcontroller.navigate':270 'navig':3,6,21,36,52,173,225,366 'network':230 'note':152 'object':253 'observ':200 'offici':405,418 'offlin':158 'one':283 'orbitrout':251,255,262 'orbitroute.task':271 'outcom':50 'own':100 'ownership':16,62,247 'pars':277 'path':207,302,372,417 'pattern':203,410 'permiss':74,161,175,196,239,355 'permission-deni':160 'place':223,284 'prefer':182 'preserv':263,326 'prevent':352 'primari':49 'product':211 'prompt':197,359,388 'python3':361 'recoveri':235,350 'refer':406,419 'releas':141,358 'relev':383 'remedi':243 'repositori':228 'request':32,216,402 'requir':292 'restorest':275 'result':76 'reusabl':179 'right':380 'rout':219,246,304 'scenario':303,325,351 'scope':70 'screen':101 'scripts/eval_triggers.py':362 'seal':249 'ship':232 'showcas':134,307 'side':176 'skill':29,67,146,363,397 'skill-android-navigation-deeplinks' 'source-krutikjain' 'special':145 'stack':9,44,55,130,267 'start':339 'state':94,105,163,169,242,356 'string':220,261 'success':117 'surfac':382 'target':89 'task':258,310 'taskid':260,272,287,291,295 'taskid.isnullorblank':293 'test':79 'testabl':198 'testdebugunittest':322,348 'tie':377 'topic-agent-skills' 'topic-android' 'topic-android-development' 'topic-android-skills' 'topic-androidx' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-jetpack-compose' 'topic-kotlin' 'topic-skills' 'treat':154 'trigger':224 'troubleshoot':416 'true':274,276 'ui':80,168,180,236 'updat':393 'use':26,27 'user':86 'user-vis':85 'val':259,286 'valid':123 'visibl':87 'without':234 'workflow':81 'xml':334","prices":[{"id":"a1359945-8c06-4b08-bf7f-884d07dd72a0","listingId":"ab8f7fba-9d76-4cda-b02e-63cd022b7f5f","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"krutikJain","category":"android-agent-skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:20:50.945Z"}],"sources":[{"listingId":"ab8f7fba-9d76-4cda-b02e-63cd022b7f5f","source":"github","sourceId":"krutikJain/android-agent-skills/android-navigation-deeplinks","sourceUrl":"https://github.com/krutikJain/android-agent-skills/tree/main/skills/android-navigation-deeplinks","isPrimary":false,"firstSeenAt":"2026-05-18T13:20:50.945Z","lastSeenAt":"2026-05-18T19:13:28.283Z"}],"details":{"listingId":"ab8f7fba-9d76-4cda-b02e-63cd022b7f5f","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"krutikJain","slug":"android-navigation-deeplinks","github":{"repo":"krutikJain/android-agent-skills","stars":8,"topics":["agent-skills","android","android-development","android-skills","androidx","claude-code","codex","cursor","jetpack-compose","kotlin","skills"],"license":"mit","html_url":"https://github.com/krutikJain/android-agent-skills","pushed_at":"2026-03-25T05:47:20Z","description":"Android skills repository for Kotlin, Compose, XML, testing, CI, release work, and legacy upgrades","skill_md_sha":"9e7c22468a627f45efe778574bbc73db6d7b2943","skill_md_path":"skills/android-navigation-deeplinks/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/krutikJain/android-agent-skills/tree/main/skills/android-navigation-deeplinks"},"layout":"multi","source":"github","category":"android-agent-skills","frontmatter":{"name":"android-navigation-deeplinks","description":"Handle navigation graphs, back stack behavior, app links, intents, and destination ownership for Android apps."},"skills_sh_url":"https://skills.sh/krutikJain/android-agent-skills/android-navigation-deeplinks"},"updatedAt":"2026-05-18T19:13:28.283Z"}}