Command Palette

Search for a command to run...

Назад к скиллам
скилл № 11673

mobile-deep-linking

Use when the user asks about deep links, universal links, Android App Links, apple-app-site-association, assetlinks.json, custom URL schemes or deferred deep…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить mobile-deep-linking в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Mobile Deep Linking

Purpose

Guide for implementing deep linking across iOS and Android using universal links, custom URL schemes, and deferred deep linking.

Agent Protocol

Trigger

Phrases: "deep linking", "universal link", "app link", "URL scheme", "deferred deep link", "routing deep link", "link handler", "deep navigation"

Input Context

  • App navigation routes to be linkable
  • Domain for universal link hosting
  • Existing routing/navigation system
  • Attribution SDK (if deferred linking needed)

Output Artifact

Deep link configuration: apple-app-site-association JSON, Android intent filters, route mapping table, navigation handler code.

Response Format

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

Completion Criteria

  • Universal link opens app from Notes/Messages/Safari
  • Custom URL scheme opens app from internal sources
  • Route parameters extracted correctly and passed to navigation
  • Deferred deep link resolves after fresh install
  • Fallback URL redirects to store if app not installed

Max Response Length

6000 tokens

Architecture / Decision Trees

Linking Mechanism Decision

Production or development?
├── Production → Universal Links (iOS) / App Links (Android)
│   Benefits: no confirmation dialog, exclusive to your app, SEO-friendly
│   Requires: HTTPS domain with verification files
├── Development → Custom URL scheme (myapp://)
│   Benefits: works immediately, no server needed
│   Drawbacks: confirmation dialog, multiple apps can register same scheme
└── Both → Universal/App Links for production + URL scheme fallback
    URL scheme used when universal link format is needed for internal use

Deferred Deep Linking Decision

Need to attribute installs?
├── Yes → Branch, Adjust, or AppsFlyer
│   SDK stores click data before install, resolves on first launch
│   Use for: referral programs, ad attribution, personalized onboarding
├── Simple install tracking → self-hosted deferred link service or Play Install Referrer API
│   Note: Firebase Dynamic Links was shut down on 2025-08-25 — do not use
└── No deferred needed → Standard universal links only
    App must be installed for links to work

Routing Strategy

Navigation framework?
├── Jetpack Navigation (Android) → NavDeepLink with route patterns
│   Auto-extracts path/query params as arguments
├── SwiftUI / UIKit → Custom route registry
│   Parse URL → Match against route table → Navigate
├── Flutter → GoRouter deep link support
│   `router.config()` with initialLocation from deep link
├── React Native → React Navigation linking config
│   `linking.prefixes` + `linking.config` for route mapping
└── Expo → Expo Router + linking config
    Built-in deep link support with file-based routing

Workflow

  1. URI scheme vs universal link vs app link — Three mechanisms for deep linking with different characteristics. Custom URL scheme (e.g., myapp://path): simplest, works in development, shows confirmation dialog on iOS, no HTTPS requirement, no verification, can be claimed by multiple apps. Universal links (iOS): HTTPS URLs that open your app silently, require apple-app-site-association file on server, verified by Apple at install, only your app can claim the domain. Android App Links: equivalent to universal links, require intent-filter with autoVerify, verified by Google via Digital Asset Links JSON. For production, always use universal links / app links — custom schemes are for development only.

  2. Route configuration and mapping — Design a URL structure that mirrors your app's navigation hierarchy. URL path segments map to screen routes, query parameters map to screen arguments. Example: https://app.example.com/profile/42?tab=orders -> screen ProfileScreen with id=42, tab=orders. Maintain a route registry (array/table of pattern -> screen mappings) with support for path parameters (:id), wildcards (*), and optional segments. The parser iterates the registry and returns the first match. Support both path-based and query-based routing.

  3. Deep link setup — iOS — Create apple-app-site-association JSON file (no .json extension) and host at https://{domain}/.well-known/apple-app-site-association. The file maps appID (Team ID + Bundle ID) to allowed URL paths. iOS fetches this file at first install and periodically thereafter. Verify success via device console logs (swcutil or search for [CoreBroker]). In AppDelegate.swift, implement application(_:continue:restorationHandler:) to receive incoming NSUserActivity of type NSUserActivityTypeBrowsingWeb. Extract the webpageURL and pass to your deep link router.

  4. Deep link setup — Android — Add intent-filter to the activity in AndroidManifest.xml that should receive deep links. Include <data android:scheme="https" android:host="app.example.com" /> and android:autoVerify="true". For custom schemes, add

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/deep-link-analytics.md
  • references/deep-link-implementation.md
  • references/deep-link-routing.md
  • references/deep-link-setup.md
  • references/deep-linking-advanced.md
  • references/deep-linking-fundamentals.md
  • references/deep-linking-security.md
  • references/platform-differences.md
  • references/universal-links.md

FAQ

Что делает скилл mobile-deep-linking?

Use when the user asks about deep links, universal links, Android App Links, apple-app-site-association, assetlinks.json, custom URL schemes or deferred deep links. Produces link verification files and in-app routing for iOS and Android. Not for push notification handling (use mobile-push-notifications) or web routing.

Как установить скилл mobile-deep-linking?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mobile-deep-linking запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mobile-deep-linking с