Token导航 LogoToken导航

Agent Skill · 开发

dflow-platform-fees(dflow 平台费用)

dflow-platform-fees 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

dflow-platform-fees 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 17,643。

总安装 392周安装 16GitHub Stars 公开资料未说明下载 125核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dflow-platform-fees(dflow 平台费用)
来源仓库:https://github.com/dflowprotocol/dflow-skills
仓库路径:skills/dflow-platform-fees
安装命令:
npx skills add https://github.com/dflowprotocol/dflow-skills --skill dflow-platform-fees
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dflowprotocol/dflow-skills --skill dflow-platform-fees

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

dflow-platform-fees 允许在应用通过 DFlow Trade API 路由的交易中收取费用,支付至开发者控制的代币账户。主要用于构建者向终端用户 monetize 分发渠道,属于 builder→user 收费模型。

费用通过 /order 参数设置,具体编码方式和模式矩阵请查阅 DFlow docs MCP。仅支持 API 层调用,不适合用于直接自我交易场景,需配合业务逻辑实现收益分配。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/dflow-platform-fees

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dflowprotocol/dflow-skills --skill dflow-platf…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

dflow-platform-fees 怎么安装?

在终端执行 npx skills add https://github.com/dflowprotocol/dflow-skills --skill dflow-platform-fees。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

dflow-platform-fees 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

dflow-platform-fees 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

dflow-platform-fees 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

dflow-platform-fees 用的人多吗?

公开数据是累计安装 392 次,近一周安装 16 次,下载 125 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

dflow-platform-fees 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
dflow-platform-fees

dflow 平台费用 · 本页

392—接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

DFlow Platform Fees

Collect a fee on trades your app routes through the DFlow Trade API, paid to a builder-controlled token account on successful execution. This is the builder→user fee — builders monetizing their distribution.

Prerequisites

  • DFlow docs MCP (https://pond.dflow.net/mcp) — install per the repo README. This skill is the recipe; the MCP is the reference. Exact parameter encoding, response shapes, and the full mode matrix live there — don't guess.

Surface

API only. Platform fees are /order parameters on the Trade API. The dflow CLI is for direct self-trading, not for monetizing a distribution product, so it doesn't expose platform-fee flags — don't hunt for a --platform-fee-bps option.

Which host depends on API-key status, same as the other trading skills: prod https://quote-api.dflow.net with x-api-key, dev https://dev-quote-api.dflow.net.

Two fee models

Pick based on what trades you're fee-ing.

Fixed — platformFeeBps

Flat percentage of the trade in basis points (1 bps = 0.01%). platformFeeBps: 50 → 0.5% fee. Works on spot and PM trades. The only option for spot.

Dynamic — platformFeeScale (PM outcome tokens only)

Probability-weighted fee that scales with market uncertainty:

fee = k * p * (1 - p) * c
  • k = platformFeeScale, 3-decimal precision (platformFeeScale: 50 → k = 0.050).
  • p = the all-in price (includes all fees + filled price), 0–1.
  • c = contract size.
  • Paid in the settlement mint (USDC or CASH).

p * (1 - p) peaks at p = 0.5 and is zero at p = 0 / p = 1 — so you charge the most on coin-flip markets, scale down as markets approach certainty, and charge nothing at redemption (p = 1). If your revenue model assumes a take on redemption, rework it.

*Example.* platformFeeScale = 50, user buys 100 YES contracts at p = 0.40: fee = 0.050 * 0.40 * 0.60 * 100 = 1.20 → $1.20 on a $40 buy.

Dynamic fees are not available on spot.

Core /order parameters

Full param details and encoding → docs MCP, or read the pages directly: /build/trading/platform-fees, /build/recipes/trading/platform-fees.

  • platformFeeBps — fixed fee in bps. Works everywhere.
  • platformFeeScale — dynamic fee coefficient. PM outcome tokens only.
  • platformFeeMode — which side pays the fee: outputMint (default) or inputMint.
  • feeAccount — the SPL token account that receives the fee. Must already exist before the trade; DFlow won't create it.

Mode matrix — who can pay the fee in which token

Trade typeAllowed platformFeeMode
Imperative spotinputMint or outputMint
Declarative spotoutputMint only
PM outcome-token tradesAlways settlement mint (USDC / CASH), regardless of what you pass

Easy trap when porting from imperative to declarative: inputMint mode silently becomes invalid.

Fee accounts (ATAs)

You need one ATA per token you collect in. A builder collecting in USDC and SOL needs a USDC ATA and a SOL ATA, both already created, both controlled by the builder's wallet. Pass the relevant one as feeAccount per request — DFlow reads it, validates it matches the mode's token, and transfers on success.

For PM: the fee ATA must be a settlement-mint ATA (USDC or CASH), since that's the only token PM fees can be paid in.

What to ASK the user (and what NOT to ask)

Ask if missing:

  1. Which trade types do you want to collect fees on — spot, PM outcome tokens, or both? Scopes which fee model(s) are relevant: spot-only → platformFeeBps only; PM → either; both → usually platformFeeBps on spot + platformFeeScale on PM (per-request choice).
  2. Rate — bps value for fixed; k value for dynamic.
  3. Collection token(s) — which token(s) do you want the fee paid in, and do you already have a matching ATA owned by the builder wallet?
  4. Imperative or declarative? Only matters for spot and only matters for platformFeeMode — declarative can only fee in outputMint.
  5. DFlow API key. Platform fees are an HTTP-only feature (params on the user's own /order call) — there's no CLI flag for them, so you're always plumbing the key into the script's HTTP client. **Ask with a clean, neutral question: *"Do you have a DFlow API key?"*** Don't presuppose where the key lives — phrasings like *"do you have it in env?"* or *"is DFLOW_API_KEY set?"* nudge the user toward env-var defaults they didn't ask for. Surface the choice; don't silently fall back to env or to dev. It's one DFlow key everywhere — same x-api-key unlocks Trade API + Metadata API, REST + WebSocket. Yes → prod https://quote-api.dflow.net + x-api-key. No → dev https://dev-quote-api.dflow.net, rate-limited. Pointer: https://pond.dflow.net/build/api-key.

Do NOT ask about:

  • RPC, signing, slippage — orthogonal to fees; the base trading skill handles them.
  • Anything about who the *user* is — platform fees are a per-request parameter, not a wallet-level setting.

Gotchas (the docs MCP won't volunteer these)

  • Don't set platformFeeBps if you're not collecting. The API factors a declared fee into slippage tolerance; if the fee isn't actually taken onchain, the slippage budget gets "spent" on nothing and user pricing worsens. Only pass a nonzero value when there's a real feeAccount at the other end.
  • Redemption is fee-exempt under dynamic fees. platformFeeScale returns 0 at p = 1. There's no "take a cut on redemption" knob.
  • Dynamic fees are outcome-token trades only. platformFeeScale is not supported on spot. Use platformFeeBps there.
  • Declarative spot fees can only be in outputMint. Imperative has both modes; declarative narrows. Easy regression.
  • PM fees are always in the settlement mint. Passing platformFeeMode: "inputMint" on a PM buy doesn't mean "collect in USDC because USDC is the input" — it's silently invalid. The fee settles in USDC/CASH regardless because that's the settlement mint.
  • feeAccount must exist before the trade. DFlow doesn't create it for you. If it's missing, the trade fails.
  • One ATA per collected token. USDC fee account ≠ SOL fee account ≠ CASH fee account. Create what you need upfront.
  • Fees only apply on successful trades. Failed / cancelled / reverted trades → no fee charged, no transfer. Don't count failures as fee-bearing volume.

Platform fees vs DFlow's PM trading fees

Two different things that both use the word "fee":

  • Platform fees (this skill) — builder→user. Defined by the builder via /order params, transferred to the builder's feeAccount on success. Applies to any trade type.
  • DFlow PM trading fees + rebates — builder→DFlow, with a partial VIP rebate flow back from DFlow→builder. Charged on prediction-market outcome-token trades only (formula roundup(0.07 × c × p × (1 − p)) + (0.01 × c × p × (1 − p))), tiered by rolling 30-day PM volume (Frost / Glacier / Steel / Obsidian). Builders above $100k/30D volume may additionally qualify for the VIP rebate schedule. Details: /build/prediction-markets/prediction-market-fees.

Don't mix them up when calculating net economics. Platform fees on a spot trade are just a line item between user and builder — DFlow isn't in that loop.

When something doesn't fit

Defer to the docs MCP for exact parameter encoding, the code recipe at /build/recipes/trading/platform-fees (runnable, covers both platformFeeBps and platformFeeScale), and the FAQ entries on slippage interaction.

Sibling skills

  • dflow-spot-trading — build the base spot /order call; layer these params on top. Also covers priority fees and sponsored / gasless flows.
  • dflow-kalshi-trading — build the base PM /order call; layer these params on top. Also covers priority fees and sponsored / gasless flows (including predictionMarketInitPayer).

平台分布

Codex

33.72%
按下载量换算42

Claude

32.78%
按下载量换算41

Cursor

18.13%
按下载量换算23

Gemini CLI

8.48%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills