---
name: dflow
description: Landing skill for AI agents discovering DFlow. DFlow is a Solana
  trading protocol covering spot crypto, Kalshi prediction markets, and Proof
  KYC identity verification. The canonical skill content lives in two
  repositories — install whichever fits the use case (or both). Use when an
  agent asks how to integrate DFlow, swap tokens on Solana, trade Kalshi
  markets, gate features by Proof KYC, or monetize trades with a builder fee.
license: MIT
metadata:
  author: DFlow
  version: 1.0.3
  tags:
    - solana
    - trading
    - dex
    - prediction-markets
    - kyc
    - websocket
  mcp-server: pond.dflow.net/mcp
  mintlify-proj: dflow
---

# DFlow Skills Landing

DFlow is a Solana trading protocol. It supports [spot crypto swaps](https://pond.dflow.net/build/recipes/trading/trade-tokens) and [Kalshi prediction markets](https://pond.dflow.net/learn/prediction-markets), with [Proof KYC](https://pond.dflow.net/learn/proof) for identity verification on gated flows.

This file is a pointer for agents that auto-fetch `/skill.md`. The canonical skill content lives in the two repositories below. Install whichever fits the use case — they don't conflict.

## Skills Repos

### `DFlowProtocol/dflow-skills`

For agents driving the [DFlow Agent CLI](https://pond.dflow.net/ai/agent-cli) or [DFlow Trade API](https://pond.dflow.net/build/trading-api/introduction) directly. Backend-style flows: scripts, automation, server-side trade execution, headless trading agents.

```bash
npx skills add DFlowProtocol/dflow-skills
```

Includes seven focused skills:

| Skill                                                                                                                                | Scope                                                                                  |
| :----------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------- |
| [`dflow-spot-trading`](https://github.com/DFlowProtocol/dflow-skills/blob/main/skills/dflow-spot-trading/SKILL.md)                   | Swap any pair of Solana tokens via the DFlow CLI or Trade API.                         |
| [`dflow-kalshi-trading`](https://github.com/DFlowProtocol/dflow-skills/blob/main/skills/dflow-kalshi-trading/SKILL.md)               | Buy, sell, and redeem YES/NO outcome tokens on Kalshi prediction markets.              |
| [`dflow-kalshi-market-scanner`](https://github.com/DFlowProtocol/dflow-skills/blob/main/skills/dflow-kalshi-market-scanner/SKILL.md) | Discover and filter Kalshi events, markets, series, tags, and historical candlesticks. |
| [`dflow-kalshi-market-data`](https://github.com/DFlowProtocol/dflow-skills/blob/main/skills/dflow-kalshi-market-data/SKILL.md)       | Real-time orderbook, trade, and live-data streams for Kalshi markets.                  |
| [`dflow-kalshi-portfolio`](https://github.com/DFlowProtocol/dflow-skills/blob/main/skills/dflow-kalshi-portfolio/SKILL.md)           | View open positions, unrealized P&L, and reclaim rent from empty outcome accounts.     |
| [`dflow-proof-kyc`](https://github.com/DFlowProtocol/dflow-skills/blob/main/skills/dflow-proof-kyc/SKILL.md)                         | Integrate Proof identity verification so wallets can buy on Kalshi.                    |
| [`dflow-platform-fees`](https://github.com/DFlowProtocol/dflow-skills/blob/main/skills/dflow-platform-fees/SKILL.md)                 | Take a builder cut on swaps and PM trades (`platformFeeBps`, `platformFeeScale`).      |

### `DFlowProtocol/dflow_phantom-connect-skill`

For agents building full-stack web apps. Teaches Claude [Phantom's](https://phantom.app) wallet SDKs alongside DFlow's trading, prediction markets, and KYC APIs. Covers wallet connection, transaction signing, token swaps, prediction markets, and Proof KYC.

```bash
npx skills add https://github.com/DFlowProtocol/dflow_phantom-connect-skill
```

## Recommended Companions

### DFlow Docs MCP Server

Every skill defers reference details (parameter shapes, endpoints, error codes) to the [DFlow Docs MCP](https://pond.dflow.net/ai/mcp) at `pond.dflow.net/mcp`. The skills work without it but the agent will guess on field-level questions; with it, the agent looks things up canonically.

### `dflow` CLI

Skills that cover the CLI surface (spot trading, Kalshi trading, portfolio) assume the [`dflow` CLI](https://pond.dflow.net/ai/agent-cli) is on `PATH`:

```bash
curl -fsS https://cli.dflow.net | sh
dflow setup
```

`dflow setup` is interactive: it prompts for a wallet, password, and Solana RPC URL.

## Resources

- [DFlow docs](https://pond.dflow.net)
- [DFlow recipes](https://pond.dflow.net/build/recipes) — runnable code samples
- [DFlow Cookbook](https://github.com/DFlowProtocol/cookbook) — clone-and-go example repos
- [DFlow Docs MCP](https://pond.dflow.net/ai/mcp)
- [Production API key](https://pond.dflow.net/build/api-key)
- [Prediction market compliance](https://pond.dflow.net/legal/prediction-market-compliance) — geoblocking and jurisdictional requirements
- [Proof KYC](https://pond.dflow.net/learn/proof)
