repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | { |
| #2 | "skillId": "dflow-phantom-connect", |
| #3 | "name": "dflow-phantom-connect", |
| #4 | "description": "Build Solana wallet-connected apps with Phantom Connect SDKs and DFlow 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, swap tokens with DFlow, trade prediction markets, or integrate Proof KYC verification. Covers @phantom/react-sdk, @phantom/react-native-sdk, @phantom/browser-sdk, DFlow spot trading, DFlow prediction markets, and DFlow Proof identity verification. Do NOT use for Ethereum or EVM wallet integrations, or non-DFlow DEX routing.", |
| #5 | "category": "pump-protocol", |
| #6 | "path": "dflow-phantom-connect/SKILL.md", |
| #7 | "url": "https://x402.wtf/api/skills/dflow-phantom-connect", |
| #8 | "tags": [ |
| #9 | "dflow", |
| #10 | "solana", |
| #11 | "phantom", |
| #12 | "connect" |
| #13 | ], |
| #14 | "requiredEnv": [], |
| #15 | "homepage": null, |
| #16 | "attestation": { |
| #17 | "status": "pending", |
| #18 | "isFormallyVerified": false, |
| #19 | "attestationPda": null, |
| #20 | "verificationTimestamp": null |
| #21 | }, |
| #22 | "markdown": "---\nname: dflow-phantom-connect\ndescription: \"Build Solana wallet-connected apps with Phantom Connect SDKs and DFlow 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, swap tokens with DFlow, trade prediction markets, or integrate Proof KYC verification. Covers @phantom/react-sdk, @phantom/react-native-sdk, @phantom/browser-sdk, DFlow spot trading, DFlow prediction markets, and DFlow Proof identity verification. Do NOT use for Ethereum or EVM wallet integrations, or non-DFlow DEX routing.\"\nlicense: MIT\nmetadata:\n author: DFlow & Phantom Connect\n version: 1.0.0\n tags: [solana, phantom, wallet, trading, prediction-markets, kyc]\n mcp-server: pond.dflow.net/mcp\n---\n\n# Phantom Connect + DFlow Skill\n\n## Instructions\n\n### Step 1: Identify What the User Wants to Build\n\nDetermine the domain, then route to the right references.\n\n**Wallet connection and Solana interactions:**\n\n- Connecting a Phantom wallet (React, React Native, vanilla JS)\n- Signing messages or transactions\n- Token-gated access\n- NFT minting\n- Crypto payments\n- Solana transfers (SOL or SPL tokens)\n\n**DFlow trading:**\n\n- Spot token swaps (imperative or declarative)\n- Prediction market discovery, trading, and redemption\n- Proof KYC identity verification\n\nMany tasks combine both (e.g., a swap UI needs wallet connection AND DFlow trading). Read all relevant references before writing code.\n\n### Step 2: Read the Relevant References\n\n**Phantom Connect SDKs** (wallet connection, signing, auth):\n\n- `references/react-sdk.md` — React hooks, components, theming, PhantomProvider\n- `references/react-native-sdk.md` — Expo config, polyfills, deep links, mobile auth\n- `references/browser-sdk.md` — BrowserSDK init, events, wallet discovery, vanilla JS\n\n**Solana patterns** (transactions, gating, minting, payments):\n\n- `references/transactions.md` — SOL/SPL transfers, signing, fee estimation\n- `references/token-gating.md` — client-side and server-side token-gated access\n- `references/nft-minting.md` — mint pages, Metaplex Core, compressed NFTs\n- `references/payments.md` — SOL/USDC payments, checkout with backend verification\n\n**DFlow trading** (swaps, prediction markets, KYC):\n\n- `references/dflow-crypto-trading.md` — spot token swaps, imperative vs declarative trades, slippage, priority fees, platform fees\n- `references/dflow-prediction-markets.md` — market discovery, trading, redemption, maintenance windows, fee models\n- `references/dflow-websockets.md` — real-time price, trade, and orderbook streaming via WebSocket\n- `references/dflow-proof.md` — Proof KYC verification (required for prediction market trades, usable for any gated feature)\n\n### Step 3: Ask the Right Questions\n\nBefore implementing, ask questions based on the domain:\n\n**For Phantom Connect tasks:**\n\n- Which platform? (React, React Native, vanilla JS)\n- Do they need social login (Google/Apple) or extension only?\n\n**For DFlow spot trades:**\n\n- Imperative or declarative? If unsure, suggest starting with imperative.\n- Dev or production endpoints? If production, remind them to apply for an API key at pond.dflow.net/build/api-key.\n- Platform fees? If yes, what bps and what fee account?\n- Client environment? (web, mobile, backend, CLI)\n\n**For DFlow prediction markets:**\n\n- Settlement mint? (USDC or CASH — these are the only two)\n- Dev or production endpoints? If production, remind them to apply for an API key at pond.dflow.net/build/api-key.\n- Platform fees? If yes, use `platformFeeScale` for dynamic fees.\n- Client environment? (web, mobile, backend, CLI)\n\n### Step 4: Implement\n\nFollow the patterns in the reference files. Key rules by domain:\n\n**Phantom Connect:**\n\n- All SDK details (provider setup, hooks, components, auth providers) are in the SDK reference files. Read them before writing Phantom integration code.\n\n**DFlow Trading:**\n\n- Dev endpoints (`dev-quote-api.dflow.net`, `dev-prediction-markets-api.dflow.net`, `wss://dev-prediction-markets-api.dflow.net/api/v1/ws`) work without an API key but are rate-limited. Production requires a key from pond.dflow.net/build/api-key.\n- Prediction market trades require Proof KYC before buying or selling outcome tokens. Browsing and discovery do not require KYC.\n- Prediction markets also require geoblocking for restricted jurisdictions.\n\n### Step 5: Handle Errors\n\nEach reference file contains domain-specific error handling. Key cross-cutting concerns:\n\n- User rejects a transaction or signature request\n- Wallet not connected when a signed action is attempted\n- DFlow API returns 429 (rate limited) — retry with backoff or get a production API key\n- `route_not_found` from DFlow — check amount units (must be atomic), check liquidity, check mint addresses\n\n## Examples\n\n### Example 1: React wallet connection\n\nUser says: \"Add Phantom wallet login to my Next.js app\"\n\nActions:\n\n1. Read `references/react-sdk.md`\n2. Install `@phantom/react-sdk`\n3. Wrap app in PhantomProvider with desired auth providers and appId\n4. Use `useModal` hook for a connect button\n5. Use `useAccounts` to display the connected wallet address\n\nResult: Working wallet connection with social login and extension support\n\n### Example 2: Token-gated page\n\nUser says: \"Build a page that only BONK holders can see\"\n\nActions:\n\n1. Read `references/react-sdk.md` and `references/token-gating.md`\n2. Set up wallet connection\n3. Query the BONK token balance for the connected wallet\n4. Conditionally render content based on balance threshold\n5. For production: add server-side signature verification\n\nResult: Page that checks wallet token balance and gates content\n\n### Example 3: DFlow token swap\n\nUser says: \"Add a swap feature using DFlow\"\n\nActions:\n\n1. Ask: imperative or declarative? Platform fees? Client environment?\n2. Read `references/dflow-crypto-trading.md`\n3. If unsure on trade type, suggest imperative `/order` flow (simpler, synchronous)\n4. Connect wallet with Phantom, sign and submit transaction to Solana RPC\n\nResult: Working swap UI with DFlow routing\n\n### Example 4: Prediction market trade\n\nUser says: \"Let users buy YES/NO positions on prediction markets\"\n\nActions:\n\n1. Ask: settlement mint (USDC or CASH)? Platform fees? Client environment?\n2. Read `references/dflow-prediction-markets.md` and `references/dflow-proof.md`\n3. Build market discovery UI from Metadata API\n4. Gate trades behind Proof KYC verification\n5. Use /order endpoint to trade settlement mint into outcome tokens\n\nResult: Prediction market UI with KYC-gated trading\n\n### Example 5: Swap UI with wallet connection\n\nUser says: \"Build a full swap page with wallet connect and DFlow\"\n\nActions:\n\n1. Ask: which platform? Imperative or declarative swap? Platform fees?\n2. Read the relevant SDK reference AND `references/dflow-crypto-trading.md`\n3. Set up wallet connection with Phantom\n4. Build swap form, proxy `/order` calls through backend\n5. Sign transaction with connected wallet, submit to RPC\n\nResult: End-to-end swap page combining Phantom wallet and DFlow trading\n\n## Resources\n\n- Phantom Portal: phantom.com/portal\n- Phantom Docs: docs.phantom.com\n- SDK Examples: github.com/phantom/wallet-sdk/tree/main/examples\n- Phantom MCP Server: docs.phantom.com/resources/mcp-server\n- DFlow MCP Server: pond.dflow.net/mcp\n- DFlow MCP Docs: pond.dflow.net/build/mcp\n- DFlow Docs: pond.dflow.net/introduction\n- DFlow Cookbook: github.com/DFlowProtocol/cookbook\n" |
| #23 | } |
| #24 |