ronjunevaldoz/kmp-agent-skills/kmp-deep-linking
Claude Code and agent skill by ronjunevaldoz/kmp-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Deep linking for Kotlin Multiplatform — Android App Links (Digital Asset Links), iOS Universal Links (Apple App Site Association), NavHost route integration, deep-link route parsing in commonMain, intent handling in AndroidActivity, and NSUserActivity/openURL handling in the iOS app delegate.
Install
npx vskill@latest install ronjunevaldoz/kmp-agent-skills/kmp-deep-linkingSKILL.md
The same SKILL.md was published earlier as ronjunevaldoz/kmp-agent-skills/kmp-deep-linking.
When to Use This Skill
Use when:
- Tapping a URL in email/browser should open a specific screen in the app
- Implementing App Links (Android) or Universal Links (iOS) verified against your domain
- Parsing URL parameters and mapping them to NavHost routes
- Supporting custom URL schemes (
myapp://) as a fallback for unverified deep links - Testing deep link entry points with unit tests
Trigger keywords: deep linking, App Links, Universal Links, deep link, AASA, Digital Asset Links, intent filter, route parsing, NavHost deep link, openURL, NSUserActivity, deep link handling, custom URL scheme, in-app linking, KMP deep link.
Freshness rule: App Links verification requires a valid assetlinks.json hosted at https://<yourdomain>/.well-known/assetlinks.json. The SHA-256 fingerprint in the file must match the app's signing certificate. On iOS, the apple-app-site-association file must be hosted at https://<yourdomain>/.well-known/apple-app-site-association (or at the domain root). Verify hosting via aasa-validator or Android App Links Assistant before shipping.
Recommendation First
Define deep-link routes as a DeepLink sealed class in commonMain. Android and iOS entry points (Activity intent, iOS application:openURL: / application:continueUserActivity:) parse the URL into a DeepLink and pass it to the NavController. The parser lives in commonMain so it can be unit tested without a device.
Route definition — commonMain
URL parser — commonMain (pure, testable)
NavHost route registration
Android — AndroidManifest.xml intent filters
Android — handle intent in Compose Activity
iOS — Universal Links and custom scheme
Add to iosApp/iosApp.swift (or AppDelegate.swift):
assetlinks.json (Android) — host at /.well-known/
apple-app-site-association (iOS) — host at /.well-known/
Testing the parser
Common Anti-Patterns
- Parsing URLs in the Activity/AppDelegate — URL parsing belongs in
commonMain
(DeepLinkParser) so it can be unit tested; Activities and delegates should only relay the raw URL string to the parser
- Deep link routes not registered in NavHost — if a route isn't in
navDeepLink { uriPattern },
the Compose Navigation library ignores the intent's data URI; register every path pattern
- Missing `android:autoVerify="true"` — without this attribute Android never initiates
App Links verification and the link opens in a browser chooser, not the app directly
- Trailing-slash mismatch —
assetlinks.jsonpaths and NavHosturiPatternmust agree
on whether paths end with /; normalize before matching
- Not handling `onNewIntent` — if the app is already running and receives a deep link,
onCreate is not called again; onNewIntent must relay the new intent to the NavController
Related Skills
kmp-navigation—NavHostsetup andNavControllerwiring;
deep links are registered as navDeepLink blocks inside composable { } builders
kmp-mvi— deep-link handling triggers aNavigateToside effect,
not a state mutation; the ViewModel emits a Channel-based Effect
kmp-unit-testing—DeepLinkParseris a pure object with no
platform dependencies; test it with plain JUnit @Test in commonTest
Output Style
When implementing deep linking, respond in this order:
- DeepLink sealed class — one subclass per linkable screen
- DeepLinkParser — pure regex-based parser with tests
- NavHost —
navDeepLink { uriPattern }blocks for each route - AndroidManifest — intent filter (App Links + custom scheme)
- Android Activity —
LaunchedEffect(intent)+onNewIntent - iOS —
continue userActivity+open urlhandlers - Server files —
assetlinks.jsonandapple-app-site-associationtemplates
Changelog
| Date | Change | |
|---|---|---|
| 2026-06-21 | Initial release. |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kmp-deep-linking/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ronjunevaldoz/kmp-agent-skills/kmp-deep-linking)