Agent skill · Backend & API

dflow

Complete DFlow trading protocol SDK - the single source of truth for integrating DFlow on Solana. Covers spot trading, prediction markets, Swap API, Metadata API, WebSocket streaming, and all DFlow tools.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill dflow-sendaifun-skills-2 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 22 KB
Bundled scripts: none
Path: skills/api/dflow-sendaifun-skills-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Maps out a complete integration guide for DFlow on Solana, detailing Swap API (Imperative and Declarative), Order API, Prediction Market Metadata API, WebSocket streaming, and MEV protections. It includes example code snippets for imperative swap, trade API, and async order monitoring.

How it works

Describes core APIs and endpoints:

  • Swap API at https://quote-api.dflow.net for Imperative Swap (GET /quote, POST /swap) and Trade API (GET /order, and related monitoring for async execution).
  • Order flow: fetch order, sign transaction, send via Solana connection, and optionally poll /order-status for async trades.
  • Declarative swaps via GET /intent and POST /submit-intent with signed transactions.
  • Token and venue endpoints under the Token API and Venue API sections.
  • Execution modes distinguish synchronous (atomic) vs asynchronous (multi-transaction) with Jito integration for MEV protection.
  • Prediction Market Metadata API at https://api.prod.dflow.net, with Event, Events, and Forecast endpoints.
  • Includes code examples illustrating quote retrieval, swap transaction handling, signing, sending, and status polling.

When to use it

Triggered by use cases that require either precise route control or best-execution trading:

  • Use Imperative when exact route before signing is required, for complex or deterministic routes.
  • Use Declarative when prioritizing best execution, lower slippage, or need MEV protection.
  • Use asynchronous execution for multi-step or prediction-market trades, with status polling.

What it can touch

Tools referenced: web fetch calls to API_BASE endpoints, and Solana web3 interactions (Connection, Keypair, VersionedTransaction). The examples show signing transactions, sending via connection, and confirming transactions. It uses the API keys via the x-api-key header when present.

Caveats

License: MIT. Documentation notes MEV protection (Jito bundles) and the existence of an orchestrator program ID for the DFlow Swap Orchestrator. No guarantees of endpoint availability or query results beyond what's shown. No stated error handling beyond code examples. No promises about outcomes; behavior described is as specified in the API guide and code samples.

From the SKILL.md

# DFlow - Complete Integration Guide The definitive guide for integrating DFlow - a trading protocol that enables traders to exchange value across spot and prediction markets natively on Solana. ## What is DFlow? DFlow is a comprehensive trading infrastructure that provides: - **Trading Applications & Wallets** - Token swaps with intelligent routing and 99.9% token coverage - **Exchanges & Aggregators** - Access to billions in monthly routed volume across DEXes and Prop AMMs - **Financial Institutions & Market Makers** - Programmable execution layers with CLPs and async trades - **Prediction Market Platforms** - Discovery, pricing, routing, and settlement infrastructure ### Key Capabilities | Feature | Description | |---------|-------------| | Token Coverage | 99.9% with millisecond detection | | Infrastructure | Globally distributed, high-throughput optimization | | Execution | Advanced algorithms with JIT routing for best-price execution | | Markets | Support for both spot and prediction market trading | | MEV Protection | Enhanced sandwich protection with Jito bundles | ## API Overview DFlow provides two main API categories: ### 1. Swap API (Trading) **Base URL:** `https://quote

What's inside
Steps it walks through
  1. What is DFlow?
  2. Key Capabilities
  3. API Overview
  4. 1. Swap API (Trading)
  5. 2. Prediction Market Metadata API
  6. Authentication
  7. Quick Start
  8. Imperative Swap (3 Steps)
  9. Trade API (Unified - Recommended)
  10. API Reference
  11. Order API Endpoints
  12. Imperative Swap Endpoints
  13. Declarative Swap Endpoints
  14. Token API Endpoints
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the dflow skill do?

Complete DFlow trading protocol SDK - the single source of truth for integrating DFlow on Solana. Covers spot trading, prediction markets, Swap API, Metadata API, WebSocket streaming, and all DFlow tools.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill dflow-sendaifun-skills-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going