# Deep links and universal links

> Deep links and universal links is an open-source agent skill for developer tools. Gates incoming app links so only allow-listed routes open, with verified hosts. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/deep-links-and-universal-links
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** deep-links-and-universal-links
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill sets up a single gate for every link that opens a React Native app, covering custom schemes, iOS universal links and Android App Links, on both cold and warm starts. The gate only opens routes listed in an allow-list, checks dynamic segments and query values by kind, drops unknown tracking parameters, and refuses oversized or repeated values. Refused cold links land on the first screen, while refused warm links change nothing.

The skill covers the pieces around that gate: a contract that lists verified hosts per app variant, generated apple-app-site-association and assetlinks.json files for hosting, and an app config helper that writes the matching associated domains and Android intent filters. Links into guarded screens wait until the guard opens and then open once. Secrets such as reset or magic-link tokens are limited to verified https links, and links never trigger actions or forward URLs.

It includes a checker script that replays hostile URLs through the gate and reports failures, plus a helper that writes or verifies the hosted well-known files. Expected inputs are an Expo Router app using expo-linking and Jest, with the app's own domains and signing details supplied by the developer.

## When your agent uses it

> Gates every incoming link: custom schemes, universal links (AASA), App Links (assetlinks), a route allow-list. Use when adding a deep link, scheme, associated domain or share link. Not for routes (navigation-and-routing).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/deep-links-and-universal-links)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/deep-links-and-universal-links)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/deep-links-and-universal-links)

## Features

- **Single link gate:** Routes every incoming URL, cold or warm, through one synchronous entry point.
- **Route allow-list:** Lists which screens links may open, with typed path segments and query keys.
- **Value checks:** Validates slugs, UUIDs and integers, and refuses control characters or oversized values.
- **Verified host contract:** Keeps verified hosts per app variant and generates matching native config entries.
- **Hosted well-known files:** Generates apple-app-site-association and assetlinks.json for deployment on each host.
- **Pending link handling:** Holds links aimed at guarded screens until sign-in completes, then opens them once.
- **Link checker:** Replays hostile URLs through the gate and reports FAIL lines to fix before release.

## Good for

- Add a deep link that opens a task detail screen from a shared URL
- Set up universal links and App Links for a React Native app's domain
- Make a password reset link open only over verified https
- Check that hostile or malformed URLs are refused by the link gate
- Hold a link to a signed-in screen until the user finishes sign-in

## Install

### Claude Code

This skill ships in the `react-native` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills
```

Or copy only this skill to `~/.claude/skills/deep-links-and-universal-links`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/deep-links-and-universal-links &&
cp -R "$tmp/skills/deep-links-and-universal-links" ~/.claude/skills/deep-links-and-universal-links &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/deep-links-and-universal-links` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/deep-links-and-universal-links` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/deep-links-and-universal-links &&
cp -R "$tmp/skills/deep-links-and-universal-links" ~/.agents/skills/deep-links-and-universal-links &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/deep-links-and-universal-links` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/deep-links-and-universal-links` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/deep-links-and-universal-links &&
cp -R "$tmp/skills/deep-links-and-universal-links" ~/.cursor/skills/deep-links-and-universal-links &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/deep-links-and-universal-links` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/deep-links-and-universal-links
```

Or copy the folder to `~/.gemini/skills/deep-links-and-universal-links` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/deep-links-and-universal-links`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/deep-links-and-universal-links &&
cp -R "$tmp/skills/deep-links-and-universal-links" ~/.copilot/skills/deep-links-and-universal-links &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/deep-links-and-universal-links` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/deep-links-and-universal-links` into your agent's skills folder as `deep-links-and-universal-links`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Deep links and universal links need from my project?

It expects an Expo Router app with expo-linking and Jest, and it wires verified links through the app config. Domains, team ids and signing fingerprints are supplied by the developer.

### Does Deep links and universal links change how links are handled in my app?

Yes. It adds one gate file at src/app/+native-intent.tsx and an allow-list of linkable routes, and it asks the developer to deploy the generated well-known files to each host.

### Which link types does Deep links and universal links cover?

Custom schemes, iOS universal links through the apple-app-site-association file, and Android App Links through assetlinks.json.

### Is device testing included?

The skill points to device testing guidance and a Maestro flow, but its own verification was run in Jest and config checks, not yet on a device.

### How do I install Deep links and universal links in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/deep-links-and-universal-links to use it in all your projects, or to .claude/skills/deep-links-and-universal-links in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

### Does Deep links and universal links run scripts?

Yes. It runs JavaScript and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Deep links and universal links?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Deep links and universal links?

The closest alternatives to Deep links and universal links are Debug menu and test hooks, Expo router, Ci pipeline and gates, Expo router and Expo project bootstrap.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Debug menu and test hooks](https://ai-powered.com/skills/debug-menu-and-test-hooks): Debug menu and test hooks is an open-source agent skill for developer tools.
- [Expo router](https://ai-powered.com/skills/expo-router-scaledockhq): Expo router is an open-source agent skill for developer tools.
- [Ci pipeline and gates](https://ai-powered.com/skills/ci-pipeline-and-gates): Ci pipeline and gates is an open-source agent skill for developer tools.
- [Expo router](https://ai-powered.com/skills/expo-router): Expo router is an open-source agent skill for developer tools.
- [Expo project bootstrap](https://ai-powered.com/skills/expo-project-bootstrap): Expo project bootstrap is an open-source agent skill for developer tools.
- [Expo brownfield](https://ai-powered.com/skills/expo-brownfield): Expo brownfield is an open-source agent skill for developer tools.
- [App startup and bootstrap](https://ai-powered.com/skills/app-startup-and-bootstrap): App startup and bootstrap is an open-source agent skill for developer tools.
- [Architecture and boundaries](https://ai-powered.com/skills/architecture-and-boundaries): Architecture and boundaries is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/deep-links-and-universal-links
