Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add phantom/phantom-agent-kit --skill setup-react-native-appgit clone --depth 1 https://github.com/phantom/phantom-agent-kitWrote 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.
[](https://agentmods.dev/skills/phantom/phantom-agent-kit/setup-react-native-app)<a href="https://agentmods.dev/skills/phantom/phantom-agent-kit/setup-react-native-app"><img src="https://agentmods.dev/badge/skills/phantom/phantom-agent-kit/setup-react-native-app/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/phantom/phantom-agent-kit/setup-react-native-app"><img src="https://agentmods.dev/badge/skills/phantom/phantom-agent-kit/setup-react-native-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.00802 |
| Opus 5.5 | $0.00012 | $0.00321 |
| Sonnet 5.5 | $0.00006 | $0.00160 |
| Haiku 4.5 | $0.00003 | $0.00080 |
Grade A, and why
setup-react-native-app 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scaffold React Native App with Phantom Connect
When to use
- User asks to set up a React Native app with Phantom Connect
- User wants to create a mobile wallet integration
- User wants to scaffold a Phantom integration for iOS/Android
Workflow
Step 1: Install Dependencies
npx expo install @phantom/react-native-sdk react-native-get-random-values @expo/browser expo-web-browser expo-crypto
Step 2: Add the Polyfill (CRITICAL — Must Be First Import)
In your app's entry file (e.g. App.tsx or index.ts), add this as the very first import:
import "react-native-get-random-values"; // MUST be the first import
import { PhantomProvider } from "@phantom/react-native-sdk";
// ... other imports
This is non-negotiable. The polyfill must execute before any other code that uses crypto.
Step 3: Configure app.json
Add the custom URL scheme and required plugins:
{
"expo": {
"scheme": "your-app-scheme",
"plugins": [
[
"expo-web-browser"
]
]
}
}
Step 4: Wrap App in PhantomProvider
import "react-native-get-random-values";
import { PhantomProvider } from "@phantom/react-native-sdk";
export default function App() {
return (
<PhantomProvider
config={{
appId: "your-app-id-from-phantom-portal",
providers: ["google", "apple"],
addressTypes: ["solana"],
scheme: "your-app-scheme",
redirectUrl: "your-app-scheme://callback",
}}
>
<YourApp />
</PhantomProvider>
);
}
Mobile-specific config fields:
scheme— Your app's custom URL scheme, must matchapp.json.redirectUrl— Deep link URL using your custom scheme for OAuth callbacks.
Step 5: Use Hooks (Same as React SDK)
The hooks API is identical to @phantom/react-sdk:
import {
useConnect,
useAccounts,
useDisconnect,
useSolana,
} from "@phantom/react-native-sdk";
function WalletScreen() {
const { connect, isConnected } = useConnect();
const { accounts } = useAccounts();
const { disconnect } = useDisconnect();
const handleConnect = async () => {
try {
await connect();
} catch (error) {
console.error("Connection failed:", error);
}
};
if (!isConnected) {
return <Button title="Connect" onPress={handleConnect} />;
}
const solanaAccount = accounts.find((a) => a.chain === "solana");
return (
<View>
<Text>Address: {solanaAccount?.address}</Text>
<Button title="Disconnect" onPress={disconnect} />
</View>
);
}
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.
- 2mo ago First seen · 126 lines · 30 tokens per session scan A f2b2e8c2c793
setup-react-native-app is a skill published in the GitHub repository phantom/phantom-agent-kit (23 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 802 once invoked, about $0.0001 per session on Opus 5.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-08-30.
setup-react-native-app compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup-react-native-appphantom/phantom-agent-kit | Skill | 23 | 2mo ago | MIT | A | 30 | Claude Code |
| amethystvitorpamplona/amethyst | Skill | 1.6k | yesterday | MIT | C | 0 | Claude Code, Codex |
| bitcoin-infrastructure-bluewalletclaude-dev-suite/claude-dev-suite | Skill | 47 | 4d ago | MIT | A | 59 | Claude Code |
| seeker-connectsolana-mobile/solana-mobile-skills | Skill | 8 | 16d ago | Apache-2.0 | A | 142 | Claude Code, Codex |
| solana-mobile-publishingsolana-mobile/solana-mobile-skills | Skill | 8 | 16d ago | Apache-2.0 | A | 76 | Claude Code, Codex |
| integration-privysolana-mobile/solana-mobile-skills | Skill | 8 | 16d ago | Apache-2.0 | A | 87 | Claude Code, Codex |
| solana-mobilesolana-mobile/solana-mobile-skills | Skill | 8 | 16d ago | Apache-2.0 | A | 89 | Claude Code, Codex |