Skip to main content
The DFlow skill makes your AI assistant an expert at building Solana trading applications. It combines DFlow’s trading APIs — spot swaps, prediction markets, real-time streaming, and Proof KYC — with Helius infrastructure for transaction submission, fee optimization, asset queries, and on-chain monitoring.
Claude Code: /helius:dflow (via plugin) or auto-invoked (standalone). Codex: $helius-dflow (auto-discovered from .agents/skills/). API / Cursor / ChatGPT: Use the pre-built system prompt variants.

What It Covers

The DFlow skill routes the AI across both DFlow and Helius tools:

Prerequisites

This skill requires two MCP servers:

Helius MCP Server (Required)

The Helius MCP server provides blockchain tools for transaction submission, asset queries, and on-chain streaming.
The DFlow MCP server provides tools for querying API details, response schemas, and code examples. DFlow APIs can also be called directly via fetch if the MCP is not installed.
If you install via the Claude Code plugin, both MCP servers start automatically.

Standalone Installation

1

Clone the repository

2

Run the install script

Installs to ~/.claude/skills/helius-dflow/.Options:
  • ./install.sh --project — install to the current project
  • ./install.sh --path /custom/path — install to a custom directory
3

Install MCP servers

4

Set your API keys

Helius:
DFlow: REST dev endpoints work without an API key (rate-limited). WebSockets and production use require a key from pond.dflow.net/build/api-key.

Example Prompts

Once installed, ask in plain English:
  • “Build a swap interface using DFlow and Helius Sender”
  • “Create a prediction market trading UI”
  • “Stream real-time prices for this prediction market…”
  • “Build a trading bot that trades memecoins”
  • “Show me how to integrate Proof KYC for prediction markets”
  • “Build a portfolio dashboard with live token prices”

Composite Workflows

The DFlow skill excels at tasks that span multiple APIs. Here are common patterns the AI handles automatically:

Swap / Trading App

DFlow Trading API for quotes and routing, Helius Sender for transaction submission, DAS API for token lists, Priority Fee API for optimal fees.

Prediction Market UI

DFlow Metadata API for market discovery, DFlow Order API for trades, Proof KYC for identity verification, DFlow WebSockets for live prices, Helius Sender for submission.

Trading Bot

DFlow WebSockets for price signals, DFlow Order API for execution, Helius Sender for submission, LaserStream for fill detection at shred-level latency.

Portfolio + Trading Dashboard

Wallet API for holdings, DAS API for token metadata, DFlow WebSockets for live prices, DFlow Order API for trading.

What’s Included

  • SKILL.md — Routing logic, rules, and expert context for trading applications
  • prompts/ — Pre-built system prompt variants (openai.developer.md, claude.system.md, full.md) — see platform setup
  • references/ — Deep documentation files:
    • dflow-spot-trading.md — Imperative and declarative swap flows
    • dflow-prediction-markets.md — Prediction market order lifecycle
    • dflow-websockets.md — Real-time streaming (prices, orderbooks, trades)
    • dflow-proof-kyc.md — Identity verification for prediction markets
    • integration-patterns.md — Composite patterns (swap execution, token selector, CORS proxy, bots)
    • helius-sender.md — Transaction submission via Helius Sender
    • helius-priority-fees.md — Fee estimation strategies
    • helius-das.md — Digital Asset Standard API
    • helius-laserstream.md — gRPC streaming
    • helius-wallet-api.md — Wallet analysis and identity
    • helius-websockets.md — WebSocket subscriptions
    • helius-onboarding.md — Account setup and signup flow

Learn More

Build Skill

Core Helius skill for general Solana development

DFlow Documentation

Official DFlow API documentation

DFlow Cookbook

Code examples for DFlow integrations

GitHub

Source code and issue tracking