deep-link

deep-link is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 5 tokens per session (3,433 once invoked), scanned A, original, MIT.

A guide for connecting links and custom URL schemes to screens in a React Native app. Deep links are links that open a specific screen instead of only opening the app.

In plain words
What is it for?
Use it to configure web links, custom schemes, route parameters, and screen navigation for a React Native app.
Why use it?
Without this setup, links from websites, messages, or other apps may not open the intended mobile screen. It explains the iOS Universal Links, Android App Links, and React Navigation configuration involved.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Not installable on its own: it reads a path above its own folder, which only exists inside its repository. The line is import { linking } from '../src/navigation/linking';.

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add TheBeardedBearSAS/claude-craft
Claude Code
/plugin install claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deep-link

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/deep-link.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/deep-link)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/deep-link"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/deep-link.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,433 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00005 $0.03433
Opus 5 $0.00003 $0.01716
Sonnet 5 $0.00001 $0.00687
Haiku 4.5 $0.00001 $0.00343

Measured 2d ago against content hash 39eb9629e9fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

deep-link scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/reactnative/deep-link.md · 569 lines

How it starts

The opening of the file, as written. The whole thing — 569 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Configuration Deep Linking React Native

Tu es un développeur React Native senior. Tu dois configurer le deep linking (universal links iOS, app links Android) pour l'application.

Arguments

$ARGUMENTS

Arguments :

  • Domaine (ex: example.com, app.mysite.com)
  • (Optionnel) Scheme personnalisé (ex: myapp)

Exemple : /reactnative:deep-link example.com myapp

MISSION

Étape 1 : Configuration React Navigation

// src/navigation/linking.ts
import { LinkingOptions } from '@react-navigation/native';
import { RootStackParamList } from './types';

export const linking: LinkingOptions<RootStackParamList> = {
  // Préfixes acceptés
  prefixes: [
    'https://example.com',
    'https://www.example.com',
    'myapp://',  // Custom scheme
  ],

  // Configuration des routes
  config: {
    // Écran initial si pas de match
    initialRouteName: 'Home',

    screens: {
      // Route simple
      Home: '',
      About: 'about',

      // Route avec paramètre
      ProductDetail: {
        path: 'product/:id',
        parse: {
          id: (id: string) => id,
        },
      },

      // Route avec paramètres multiples
      UserProfile: {
        path: 'user/:userId/post/:postId',
        parse: {
          userId: (userId: string) => userId,
          postId: (postId: string) => parseInt(postId, 10),
        },
      },

      // Routes imbriquées (Tab Navigator)
      Main: {
        screens: {
          HomeTab: {
            path: 'home',
            screens: {
              Feed: 'feed',
              Trending: 'trending',
            },
          },
          ProfileTab: {
            path: 'profile',
            screens: {
              MyProfile: '',
              Settings: 'settings',
            },
          },
        },
      },

      // Route avec query params
      Search: {
        path: 'search',
        parse: {
          query: (query: string) => decodeURIComponent(query),
          category: (cat: string) => cat,
        },
        stringify: {
          query: (query: string) => encodeURIComponent(query),
        },
      },

      // Route catch-all pour le 404
      NotFound: '*',
    },
  },

  // Fonction pour récupérer l'URL initiale
  async getInitialURL() {
    // Vérifier si l'app a été ouverte via un deep link
    const url = await Linking.getInitialURL();
    if (url != null) {
      return url;
    }

    // Vérifier les notifications push (si applicable)
    const notification = await messaging().getInitialNotification();
    if (notification?.data?.link) {
      return notification.data.link as string;
    }

    return null;
  },

  // Listener pour les liens pendant que l'app est ouverte
  subscribe(listener) {
    // Écouter les liens React Native
    const linkingSubscription = Linking.addEventListener('url', ({ url }) => {
      listener(url);
    });

    // Écouter les notifications push
    const unsubscribeNotification = messaging().onNotificationOpenedApp(
      (notification) => {
        const link = notification.data?.link;
        if (link) {
          listener(link as string);
        }
      }
    );

    return () => {
      linkingSubscription.remove();
      unsubscribeNotification();
    };
  },
};

Read the full file on GitHub · 569 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 569 lines · 5 tokens per session scan A 39eb9629e9fb

Subscribe to this mod's changes

deep-link is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 3d ago), licensed MIT. It adds 5 tokens to every session and 3,433 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.