A skill that teaches Claude how to build wallet-connected Solana apps with Phantom Connect SDKs. Also covers DFlow spot token swaps and real-time market-data streaming.
개요
A skill that teaches Claude how to build wallet-connected Solana apps with Phantom Connect SDKs. Also covers DFlow spot token swaps and real-time market-data streaming. Once installed, Claude automatically uses this skill when you ask about: - Connecting Phantom wallets in React, React Native, or vanilla JS - Signing messages or transactions with Phantom - Building token-gated pages - NFT minting experiences - Crypto payment flows - Solana transactions and transfers - DFlow spot token swaps - Real-time market data (quotes, order book, priority fees) over WebSocket 1. Download or clone this repo 2. Zip the skill/ folder 3. Go to Claude.ai > Settings > Capabilities > Skills 4. Click "Upload skill" and select the zip All Phantom Connect integrations require: 1. — phantom.com/portal/login 2. — Get from Portal, required for Google/Apple social login 3.
README
Phantom Connect Skill for Claude
A skill that teaches Claude how to build wallet-connected Solana apps with Phantom Connect SDKs. Also covers DFlow spot token swaps and real-time market-data streaming.
What It Does
Once installed, Claude automatically uses this skill when you ask about:
- Connecting Phantom wallets in React, React Native, or vanilla JS
- Signing messages or transactions with Phantom
- Building token-gated pages
- NFT minting experiences
- Crypto payment flows
- Solana transactions and transfers
- DFlow spot token swaps
- Real-time market data (quotes, order book, priority fees) over WebSocket
Installation
Claude.ai
- Download or clone this repo
- Zip the
skill/folder - Go to Claude.ai > Settings > Capabilities > Skills
- Click “Upload skill” and select the zip
Claude Code (Personal)
git clone https://github.com/DFlowProtocol/dflow_phantom-connect-skill.git
cp -r dflow_phantom-connect-skill/skill ~/.claude/skills/dflow-phantom-connect
Claude Code (Project)
cp -r dflow_phantom-connect-skill/skill .claude/skills/dflow-phantom-connect
Using the Install Script
# Install to personal directory (default)
./install.sh
# Install to project directory
./install.sh --project
# Install to custom location
./install.sh --path /custom/path/skills/dflow-phantom-connect
Skill Structure
skill/
├── SKILL.md # Main skill instructions (required)
└── references/ # Detailed references (loaded as needed)
├── react-sdk.md # @phantom/react-sdk hooks, components, theming
├── react-native-sdk.md # @phantom/react-native-sdk setup, Expo, deep links
├── browser-sdk.md # @phantom/browser-sdk init, events, discovery
├── transactions.md # SOL/SPL transfers, signing, fee estimation
├── token-gating.md # Client-side and server-side token gating
├── nft-minting.md # Mint pages, Metaplex Core, compressed NFTs
├── payments.md # SOL/USDC payments, checkout verification
├── dflow-crypto-trading.md # DFlow spot swaps via /order
└── dflow-websockets.md # Real-time quote / order-book / priority-fee streaming
Example Prompts
"Create a Next.js app with Phantom wallet connection"
"Build a token-gated page that requires 100 BONK to access"
"Make an NFT mint page with quantity selector and status handling"
"Add crypto checkout to my e-commerce site"
"Help me send a Solana transaction with the React SDK"
"Convert this to use the Browser SDK instead of React"
"Add a DFlow swap flow to my app"
"Build a swap UI that lists wallet tokens on the FROM side"
"Show a live DFlow order book for a token pair"
SDK Choices
| Platform | Package | Use Case |
|---|---|---|
| React Web | @phantom/react-sdk |
Next.js, Vite, CRA |
| React Native | @phantom/react-native-sdk |
Expo, bare RN |
| Vanilla JS | @phantom/browser-sdk |
Vue, Angular, vanilla |
| Solana | @solana/web3.js |
Transactions, balances |
Prerequisites
All Phantom Connect integrations require:
- Phantom Portal Account — phantom.com/portal/login
- App ID — Get from Portal, required for Google/Apple social login
- Allowlisted URLs — Add domains and redirect URLs in Portal
For DFlow integrations:
- Dev endpoints work without an API key but are rate-limited
- Apply for an API key before releasing to production
- In production, quote and book stream access is granted per key (separate from
/order); request it from the DFlow team
How the Skill Works
The skill uses progressive disclosure. SKILL.md provides Claude with routing
instructions and core knowledge. When a specific topic comes up, Claude reads
the relevant file from references/ to get detailed implementation patterns.
This keeps context usage efficient.
Related Resources
Contributing
Contributions welcome! Please ensure updates reflect current SDK best practices.
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
MIT License — see LICENSE for details.
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add dflowprotocol/dflow_phantom-connect-skill