Claude Code:
/helius:phantom (via plugin) or auto-invoked (standalone). Codex: $helius-phantom (auto-discovered from .agents/skills/). API / Cursor / ChatGPT: Use the pre-built system prompt variants.What It Covers
The Phantom skill routes the AI across both Phantom SDKs and Helius tools:Key Rules
The Phantom skill enforces critical patterns that prevent common frontend mistakes:- Always use
@phantom/react-sdkfor React (neverwindow.phantom.solanaor@solana/wallet-adapter-react) - Always use
@phantom/browser-sdkfor vanilla JS and@phantom/react-native-sdkfor React Native - Never expose Helius API keys in client code — only
https://sender.helius-rpc.com/fastis browser-safe without an API key - Proxy everything else through your backend — never open Helius WebSockets directly from the browser
- Always submit transactions via Helius Sender with
skipPreflight: true,maxRetries: 0, and a Jito tip - Use
getPriorityFeeEstimateMCP tool — never hardcode priority fees
Composite Patterns
The skill provides five end-to-end reference patterns for complex applications:- Swap UI — Aggregator → Phantom sign → Helius Sender submit
- Portfolio Viewer — Phantom connection → backend proxy → DAS/Wallet API
- Real-time Dashboard — Phantom connection → server WebSocket → client relay
- Token Transfer — Build VersionedTransaction → Phantom sign → Sender submit
- NFT Gallery — Phantom wallet → backend DAS query → display NFTs
Prerequisites
This skill requires the Helius MCP server. For embedded wallets (Google/Apple sign-in), you also need a Phantom Portal account with an App ID and allowlisted redirect URLs. If you install via the Claude Code plugin, the MCP server starts automatically. For standalone installation, add it manually:Standalone Installation
If you want the Phantom skill without the full plugin, install it directly:1
Clone the repository
2
Run the install script
~/.claude/skills/helius-phantom/.Options:./install.sh --project— install to the current project (.claude/skills/helius-phantom/)./install.sh --path /custom/path— install to a custom directory
3
Install the Helius MCP server
4
Set your API key
setHeliusApiKey MCP tool inside Claude Code. If you need a new account, see Helius CLI or use the autonomous signup flow via MCP tools.Example Prompts
Once installed, ask in plain English:- “Build a swap UI with Phantom wallet”
- “Build a portfolio viewer that shows tokens after connecting Phantom”
- “How do I proxy my Helius API key in Next.js?”
- “Build a real-time dashboard with wallet connection”
- “Add token gating to my React app using Phantom”
- “Build an NFT minting page with Phantom and Metaplex Core”
What’s Included
The skill installs two components:SKILL.md— Routing logic, rules, and expert context that guide the AI’s behaviorprompts/— Pre-built system prompt variants (openai.developer.md,claude.system.md,full.md) — see platform setupreferences/— 16 deep documentation files:react-sdk.md— Phantom React SDK (@phantom/react-sdk)browser-sdk.md— Phantom Browser SDK (@phantom/browser-sdk)react-native-sdk.md— Phantom React Native SDK (@phantom/react-native-sdk)transactions.md— Transaction signing patternstoken-gating.md— Token-gated access controlnft-minting.md— NFT minting with Phantompayments.md— Crypto payment flowsfrontend-security.md— API key proxying and CORSintegration-patterns.md— End-to-end composite patternshelius-das.md— DAS API referencehelius-sender.md— Sender referencehelius-priority-fees.md— Priority fee referencehelius-wallet-api.md— Wallet API referencehelius-websockets.md— WebSocket referencehelius-enhanced-transactions.md— Enhanced Transactions referencehelius-onboarding.md— Account setup reference
Learn More
Helius MCP
The MCP server that powers this skill’s tools
Claude Code Plugin
One-click install of MCP + skills
Build Skill
General Solana development with Helius
GitHub
Source code and issue tracking