Agent skill

Phantom Connect and DFlow

by internet-court in internet-court/internet-court-skill

Builds Solana wallet-connected apps with Phantom Connect SDKs for React, React Native and vanilla JS, plus DFlow spot swaps and market-data streaming.

MITAuto-check passedBusiness, Finance & HR

Install Phantom Connect and DFlow

skills CLI
$ npx skills add internet-court/internet-court-skill --skill dflow-phantom-connect -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install internet-court/internet-court-skill dflow-phantom-connect --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/vendored/dflow/dflow-phantom-connect .claude/skills/dflow-phantom-connect && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dflow-phantom-connect
GitHub stars
6.6k
Token cost
~1.8k tokens
SKILL.md length
846 words
Files
11 (incl. references)
Skills in repo
80
Repo updated
First seen
Licence
MIT

At a glance

Builds Solana wallet-connected apps with Phantom Connect SDKs for React, React Native and vanilla JS, plus DFlow spot swaps and market-data streaming.

  • Works in 5 steps: Identify What the User Wants to Build → Read the Relevant References → Ask the Right Questions → …
  • Connecting a Phantom wallet in a React, React Native or vanilla JS app
  • SKILL.md covers Instructions, Examples and Resources
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

The skill routes each task to reference files by domain. Phantom references cover the React SDK, the React Native SDK and the browser SDK, and Solana pattern references cover transfers and signing, token gating, NFT minting and SOL or USDC payments with backend verification. DFlow references cover spot swaps through its order endpoint (quote, sign, submit, confirm) and live quote, order-book and priority-fee streaming. Many tasks combine both, so all relevant references are read before any code is written.

Before implementing, the agent asks which platform you target, whether you want social login or the extension only, whether you have a DFlow API key (a production host with an `x-api-key` header, or a rate-limited development host), where the client runs, and whether platform fees apply. Browser apps keep the key on the backend and proxy DFlow HTTP and WebSocket calls through it. It is not for Ethereum or EVM wallets or for DEX routing outside DFlow. The excerpt is truncated.

When your agent uses it

  • Connecting a Phantom wallet in a React, React Native or vanilla JS app
  • Signing messages or transactions on Solana
  • Building a token-gated page or an NFT mint page
  • Adding DFlow token swaps or live market-data streaming

Example prompts

  • “Add a Connect Phantom button to my React app and show the connected address.”
  • “Build a token-gated page that checks whether the visitor's wallet holds a given SPL token.”
  • “Add a SOL to USDC swap screen using DFlow, with the API key kept on the backend.”

Requirements

  • A Phantom wallet or Phantom Connect app setup
  • A DFlow API key for production use (a rate-limited dev host works without one)

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Identify What the User Wants to Build
  2. Read the Relevant References
  3. Ask the Right Questions
  4. Implement
  5. Handle Errors

What it can do on your machine

Read from SKILL.md and the folder at commit fa89195. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Phantom Connect and DFlow loads about 1.8k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 135 tokens; SKILL.md has 846 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~135
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from internet-court/internet-court-skill at commit fa89195, republished under its MIT licence (© internet-court). 846 words, ~1,790 tokens.

Download SKILL.mdSave it as .claude/skills/dflow-phantom-connect/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
dflow-phantom-connect
description
Build Solana wallet-connected apps with Phantom Connect SDKs and DFlow spot trading. Use when user asks to connect a Phantom wallet, integrate Phantom in React, React Native, or vanilla JS, sign messages or transactions, build token-gated pages, mint NFTs, accept crypto payments, or swap/stream tokens with DFlow. Covers @phantom/react-sdk, @phantom/react-native-sdk, @phantom/browser-sdk, and DFlow spot trading and market-data streaming. Do NOT use for Ethereum or EVM wallet integrations, or non-DFlow DEX routing.
license
MIT
metadata.author
DFlow & Phantom Connect
metadata.version
1.1.0
metadata.tags
solana, phantom, wallet, trading, market-data
metadata.mcp-server
pond.dflow.net/mcp

Phantom Connect + DFlow Skill

Instructions

Step 1: Identify What the User Wants to Build

Determine the domain, then route to the right references.

Wallet connection and Solana interactions:

  • Connecting a Phantom wallet (React, React Native, vanilla JS)
  • Signing messages or transactions
  • Token-gated access
  • NFT minting
  • Crypto payments
  • Solana transfers (SOL or SPL tokens)

DFlow trading & market data:

  • Spot token swaps (quote, sign, submit, confirm)
  • Live prices, order-book depth, or priority-fee streaming

Many tasks combine both (for example, a swap UI needs wallet connection AND DFlow trading). Read all relevant references before writing code.

Step 2: Read the Relevant References

Phantom Connect SDKs (wallet connection, signing, auth):

  • references/react-sdk.md: React hooks, components, theming, PhantomProvider
  • references/react-native-sdk.md: Expo config, polyfills, deep links, mobile auth
  • references/browser-sdk.md: BrowserSDK init, events, wallet discovery, vanilla JS

Solana patterns (transactions, gating, minting, payments):

  • references/transactions.md: SOL/SPL transfers, signing, fee estimation
  • references/token-gating.md: client-side and server-side token-gated access
  • references/nft-minting.md: mint pages, Metaplex Core, compressed NFTs
  • references/payments.md: SOL/USDC payments, checkout with backend verification

DFlow (swaps, streaming):

  • references/dflow-crypto-trading.md: spot swaps via /order (atomic units, base58 mints, quote-without-wallet, priority/platform/sponsor fees)
  • references/dflow-websockets.md: real-time quote, order-book, and priority-fee streaming (browser proxies through the backend)
Step 3: Ask the Right Questions

Before implementing, ask questions based on the domain:

For Phantom Connect tasks:

  • Which platform? (React, React Native, vanilla JS)
  • Do they need social login (Google/Apple) or extension only?

For DFlow tasks:

  • Do you have a DFlow API key? (Yes: prod host with x-api-key. No: dev host, rate-limited. Prod key: pond.dflow.net/get-started/api-key.) It's one key for everything DFlow.
  • Client environment? (web, mobile, backend, CLI) Browser apps keep the key on the backend and proxy DFlow HTTP and WebSocket through it.
  • Platform fees? If yes, what bps and which builder-owned fee account (which must already exist)?
Step 4: Implement

Follow the patterns in the reference files. Key rules by domain:

Phantom Connect:

  • All SDK details (provider setup, hooks, components, auth providers) are in the SDK reference files. Read them before writing Phantom integration code.

DFlow:

  • Trades are synchronous: one /order call returns a signed-ready transaction that you sign, submit, and confirm.
  • As a security best practice, keep the DFlow API key on the backend, not in browser code. Browser apps proxy DFlow HTTP (/order serves no CORS) and the WebSocket streams through their backend.
  • Dev endpoints (dev-quote-api.dflow.net) work without a key but are rate-limited; production requires a key from pond.dflow.net/get-started/api-key. In production, quote and book stream access is granted per key.
Step 5: Handle Errors

Each reference file contains domain-specific error handling. Key cross-cutting concerns:

  • User rejects a transaction or signature request
  • Wallet not connected when a signed action is attempted
  • DFlow API returns 429 (rate limited): retry with backoff or get a production API key
  • route_not_found from DFlow: a likely cause is insufficient liquidity for the pair at that size; also check the mint addresses and that amount is in atomic units

Examples

Example 1: React wallet connection

User says: "Add Phantom wallet login to my Next.js app"

Actions:

  1. Read references/react-sdk.md
  2. Install @phantom/react-sdk
  3. Wrap app in PhantomProvider with desired auth providers and appId
  4. Use useModal hook for a connect button
  5. Use useAccounts to display the connected wallet address

Result: Working wallet connection with social login and extension support

Show full SKILL.md (312 more words)Show less
Example 2: Token-gated page

User says: "Build a page that only BONK holders can see"

Actions:

  1. Read references/react-sdk.md and references/token-gating.md
  2. Set up wallet connection
  3. Query the BONK token balance for the connected wallet
  4. Conditionally render content based on balance threshold
  5. For production: add server-side signature verification

Result: Page that checks wallet token balance and gates content

Example 3: DFlow token swap

User says: "Add a swap feature using DFlow"

Actions:

  1. Ask: API key? Client environment? Platform fees?
  2. Read references/dflow-crypto-trading.md
  3. Use the /order flow: request the order (proxy through the backend in a browser), deserialize the returned transaction, sign, submit, and confirm
  4. In a browser, sign and send with the Phantom SDK (see references/transactions.md); server-side, sign with a keypair and submit through your RPC

Result: Working swap with DFlow routing

Example 4: Full swap page with wallet connection

User says: "Build a full swap page with wallet connect and DFlow"

Actions:

  1. Ask: which platform? API key? Platform fees?
  2. Read the relevant SDK reference AND references/dflow-crypto-trading.md
  3. Set up wallet connection with the Phantom SDK
  4. Build the swap form; proxy /order through the backend so the key stays server-side
  5. Sign and send with the Phantom SDK, then confirm

Result: End-to-end swap page combining Phantom wallet and DFlow trading

Example 5: Live order book

User says: "Show a live order book for a token pair"

Actions:

  1. Read references/dflow-websockets.md
  2. Stand up a backend relay that holds the key, opens /book-stream with the x-api-key header, and relays frames to the browser
  3. Subscribe with { op: "subscribe", base_mint, quote_mint }; render the batched per-slot updates[]
  4. Reconnect and re-subscribe on drop

Result: Live streaming order book, key kept server-side

Resources

  • Phantom Portal: phantom.com/portal/login
  • Phantom Docs: docs.phantom.com/introduction
  • SDK Examples: github.com/phantom/phantom-connect-sdk/tree/main/examples
  • Phantom MCP Server: docs.phantom.com/resources/mcp-server
  • DFlow MCP Server: pond.dflow.net/mcp
  • DFlow MCP Docs: pond.dflow.net/ai/mcp
  • DFlow Docs: pond.dflow.net/introduction

© internet-court, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files (references) in vendored/dflow/dflow-phantom-connect of internet-court/internet-court-skill.

  • SKILL.md
  • LICENSE
  • references/browser-sdk.md
  • references/dflow-crypto-trading.md
  • references/dflow-websockets.md
  • references/nft-minting.md
  • references/payments.md
  • references/react-native-sdk.md
  • references/react-sdk.md
  • references/token-gating.md
  • references/transactions.md

Open the folder on GitHubat commit fa89195

Compare with similar skills

Phantom Connect and DFlow next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Phantom Connect and DFlow compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Phantom Connect and DFlow this skillinternet-court/internet-court-skill6.6k—~1.8kAutomated safety check: PassMIT
Solana Develophanto/EloPhanto106—~1.4kAutomated safety check: PassMIT
Solana Devaiskillstore/marketplace433—~2.4kAutomated safety check: PassMIT
Helius Phantomsendaifun/skills1301 repos~4.7kAutomated safety check: NotesMIT
Solana Kit Migrationsendaifun/skills1301 repos~2.6kAutomated safety check: PassApache-2.0
@pierre/diffs Code Renderingpierrecomputer/pierre6.3k2 repos~803Automated safety check: PassApache-2.0

Similar skills

  • Solana Dev

    elophanto/EloPhanto

    A skill your agent uses when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", or "deploy…

    106 GitHub stars~1.4k tokensUpdated 10 days ago
    Backend & APIsAuto-check passed
  • Solana Dev

    aiskillstore/marketplace

    A skill your agent uses when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "deploy to…

    433 GitHub stars~2.4k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Helius Phantom

    sendaifun/skills

    Build frontend Solana applications with Phantom Connect SDK and Helius infrastructure.

    130 GitHub starsUsed in 1 repo~4.7k tokens
    MobileAuto-check: notes
  • Solana Kit Migration

    sendaifun/skills

    Helps developers understand when to use @solana/kit vs @solana/web3.js (v1), provides migration guidance, API mappings, and handles edge cases for Solana JavaScript SDK transitions

    130 GitHub starsUsed in 1 repo~2.6k tokens
    Business, Finance & HRAuto-check passed
  • @pierre/diffs Code Rendering

    pierrecomputer/pierre

    Guides an agent through using @pierre/diffs to render syntax-highlighted files and diffs, and to build editing and review surfaces in React or plain JavaScript.

    6.3k GitHub starsUsed in 2 repos~803 tokens
    DevelopmentAuto-check passed
  • React Best Practices

    shapeshift/web

    Comprehensive React and Next.js performance optimization guide with 40+ rules for eliminating waterfalls, optimizing bundles, and improving rendering.

    206 GitHub starsUsed in 1 repo~2k tokens
    DevelopmentAuto-check passed

More from internet-court/internet-court-skill

All 80 skills in this repo
  • Kleros IPFS Upload

    internet-court/internet-court-skill

    Uploads one Kleros-related file per paid request to IPFS through the Kleros x402 gateway for 0.01 USDC on Base, returning a CID that Kleros contracts can reference.

    6.6k GitHub stars~4.9k tokensUpdated 1 mo ago
    Auto-check: notes
  • 0G Compute Network Guide

    internet-court/internet-court-skill

    Guides building on the 0G Compute Network, a decentralized GPU marketplace for AI inference and fine-tuning, with SDK patterns and CLI commands.

    6.6k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • PNP Prediction Markets on Solana

    internet-court/internet-court-skill

    Creates, trades and settles permissionless prediction markets on Solana with any SPL token as collateral, including social-media and custom-oracle markets.

    6.6k GitHub stars~7.5k tokensUpdated 1 mo ago
    Auto-check: notes
  • BNB Chain MCP Server

    internet-court/internet-court-skill

    Connects an agent to the BNB Chain MCP server to read blocks and contracts, move tokens and NFTs, register ERC-8004 agents and use Greenfield storage.

    6.6k GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • GenLayer ERC-7710 Connector

    internet-court/internet-court-skill

    Specifies how a GenLayer Intelligent Contract decision about an agent's performance becomes an ERC-7710 revocation or policy change, through a relayer or bridge and an EVM controller.

    6.6k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • GenLayer Agent Supervision Adapter

    internet-court/internet-court-skill

    Specifies how a GenLayer Intelligent Contract should supervise an AI agent, with review rubrics, evidence schemas and continue, warn, constrain or revoke decisions.

    6.6k GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed

Questions about Phantom Connect and DFlow

What does Phantom Connect and DFlow do?

Builds Solana wallet-connected apps with Phantom Connect SDKs for React, React Native and vanilla JS, plus DFlow spot swaps and market-data streaming. The skill routes each task to reference files by domain. Phantom references cover the React SDK, the React Native SDK and the browser SDK, and Solana pattern references cover transfers and signing, token gating, NFT minting and SOL or USDC payments with backend verification.

When should I use Phantom Connect and DFlow?

Phantom Connect and DFlow fits situations like: connecting a Phantom wallet in a React, React Native or vanilla JS app; signing messages or transactions on Solana; building a token-gated page or an NFT mint page; adding DFlow token swaps or live market-data streaming.

How do I install Phantom Connect and DFlow in Claude Code?

Run `npx skills add internet-court/internet-court-skill --skill dflow-phantom-connect -a claude-code`. Or copy the skill folder (vendored/dflow/dflow-phantom-connect in internet-court/internet-court-skill) into .claude/skills/dflow-phantom-connect in your project. Claude Code loads it when a task matches its description.

How do I install Phantom Connect and DFlow in Codex?

Run `npx skills add internet-court/internet-court-skill --skill dflow-phantom-connect -a codex`. Or copy the skill folder (vendored/dflow/dflow-phantom-connect in internet-court/internet-court-skill) into .agents/skills/dflow-phantom-connect in your project. Codex loads it when a task matches its description.

Can I use Phantom Connect and DFlow in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add internet-court/internet-court-skill --skill dflow-phantom-connect -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dflow-phantom-connect, .gemini/skills/dflow-phantom-connect, .github/skills/dflow-phantom-connect and .opencode/skills/dflow-phantom-connect in your project.

What does Phantom Connect and DFlow need to run?

SKILL.md names no scripts, command-line tools or credentials: Phantom Connect and DFlow is instructions for the agent only. Our summary lists: A Phantom wallet or Phantom Connect app setup; A DFlow API key for production use (a rate-limited dev host works without one).

Does Phantom Connect and DFlow access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Phantom Connect and DFlow safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Phantom Connect and DFlow use?

Phantom Connect and DFlow is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Phantom Connect and DFlow use?

About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Phantom Connect and DFlow?

Skills that share tags, products or a category with Phantom Connect and DFlow: Solana Dev (elophanto/EloPhanto, 106 stars), Solana Dev (aiskillstore/marketplace, 433 stars), Helius Phantom (sendaifun/skills, 130 stars) and Solana Kit Migration (sendaifun/skills, 130 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Phantom Connect and DFlow?

internet-court (a GitHub organization) maintains it in internet-court/internet-court-skill, which has 6,551 GitHub stars. The repository holds 80 skills in this directory. The repository was last updated on August 19, 2026.

Source: internet-court/internet-court-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.