Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

xiaodou-open-platform Skill

Repository ↗

by xiaodou-official★ 5231 skills

Install

What it does

个人支付接口:小豆支付开放平台——个人可申请的支付宝、微信支付接口。个人支付接口无需营业执照,身份证+银行卡即可接入;RSA2 签名、webhook 验签、持牌机构清算、次日中午前到账。China individual payment API: Alipay + WeChat Pay.

  • Connects Instruction files the AI reads
  • Account or key No key found in README or SKILL.md
  • Category Automation and agents
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/skill/xiaodou-official-xiaodou-open-platform.svg)](https://mcp.popnx.com/en/skills/xiaodou-official-xiaodou-open-platform)

Similar Skills

Same kind of work, ordered like the Skills list

Compared with similar ones
This one
xiaodou-open-platform
skillsnacosanatomyleon
Makerxiaodou-officialvercel-labsalibabawheresryan22leon-ai
Skills11111
GitHub stars52339,90833,52827,99617,691
Last code changeNov 9, 2026Nov 17, 2026Nov 18, 2026Oct 19, 2026Nov 13, 2026
License–MITApache-2.0MITMIT

1 skills (instruction sets) by xiaodou-official that an AI reads and follows · not an MCP server

How a Skill differs from MCP

MCP = the hands

Connects the AI to an outside service or data, such as reading Notion or creating an invoice. A program or server has to be running.

Skill = the manual

A text file that teaches the AI how to do a task. It connects to nothing.

Some overlap: a few Skills run scripts that call tools, and a few MCP servers only send knowledge. Start from the task you want done.

Works with

Claude CodeCodexCursorGitHub Copilot

From the maker’s README and the folders in the repo

Install

Is it safe?

  • Who made it

    GitHub account xiaodou-official (organization) is only 1 months old: take extra care

  • Use and upkeep

    ★ 523 stars · code last changed Nov 9, 2026

  • Any scripts?

    No, plain text files the AI reads and follows

  • Uses the internet?

    No scripts, so it does not go online by itself

  • Changes machine-wide settings?

    No hooks or writes to machine settings found

Checked automatically from the repo files at commit 7ae5fe1 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself

First: which AI do you use?

Pick your app and this page shows only how to install it there

Option 1Upload to claude.ai (web and app)

  1. Download from GitHub

    This skill has no license, so we do not hand out a ZIP from our site. Download it from GitHub and arrange the folder yourself, or use "Let the AI install it" above, which is easier

    Download from GitHub (whole repo) ↗

    Unzip it, then zip only the skill folder again. The ZIP must have a xiaodou-open-platform-integration folder with SKILL.md at the top level, no loose files

  2. Open Skills on claude.ai and upload

    +Create skillUpload a skillpick xiaodou-open-platform-integration.zip

    Open claude.ai/customize/skills ↗

  3. No Upload button? Turn on file creation first

    SettingsCapabilitiesCode execution and file creation

    Turn on Code execution and file creation first (newer menus: Create and edit files) · personal plans: Settings → Capabilities · Team/Enterprise: an admin turns it on under Organization settings → Plugins & skills · every plan, including Free

Upload once; it works in claude.ai and Claude Desktop, and in recent Claude Code signed in with a Claude account (not with an API key)

Cowork and cloud sessions use the skills turned on in your claude.ai account, not ~/.claude/skills on your computer (Claude Desktop scheduled tasks run locally and still load it)

Checked against official docs Nov 12, 2026 · Source: support.claude.com, support.claude.com, code.claude.com

Option 1Let Claude Code install it

Copy this sentence and paste it into a Claude Code chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Restart Claude Code, then type /skill or ask for a matching task and Claude picks it up

Checked against official docs Nov 12, 2026 · Source: code.claude.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.claude/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

  3. Restart Claude Code, then type /skill or ask for a matching task and Claude picks it up

Skills you install yourself work in the ChatGPT desktop app, Codex CLI and the Codex IDE extension · ChatGPT on the web and mobile cannot use skills you install yourself, only skills that come with a plugin from the directory

ChatGPT desktop app

The ChatGPT desktop app has Codex built in, and Codex reads skills from ~/.agents/skills

Option 1Let ChatGPT install it

Open Codex in the ChatGPT desktop app and paste this sentence into the chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Option 2Put the folder there yourself

Put the xiaodou-open-platform-integration folder at ~/.agents/skills/xiaodou-open-platform-integration

~ is your home folder ($HOME)

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

After installing

  • ChatGPT desktop app: open Skills in the sidebar to see that the skill is there
  • To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
  • Codex picks up newly installed skills by itself; if one does not show up, restart Codex

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

ChatGPT on the web and mobile

Skills you install yourself do not work here; only skills that come with a plugin from the directory

To use this skill with ChatGPT, use the ChatGPT desktop app as above

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

Option 1Let Codex install it

Copy this sentence and paste it into a Codex chat · Works in Codex inside the ChatGPT desktop app, Codex CLI and the IDE extension

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Codex picks up newly installed skills by itself; if one does not show up, restart Codex · To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

  3. Restart Codex, then ask for a matching task; Codex lists the skill

Option 1Let Cursor install it

Copy this sentence and paste it into a Cursor chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

In Cursor’s Agent chat, type / and pick skill

Checked against official docs Nov 12, 2026 · Source: cursor.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.cursor/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

  3. In Cursor’s Agent chat, type / and pick skill

Option 1Let the AI install it

For other apps that read skills. The sentence gives the paths for Claude Code, Codex and Cursor so the AI picks the one for your app · Copy this sentence into the app’s chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Checked against official docs Nov 12, 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com

For Terminal users

Other apps that support Agent Skills (such as Gemini CLI or GitHub Copilot) use different folders. Check that app’s guide, then copy the folder with the SKILL.md there.

View on GitHub ↗

Skill folders checked against the official Claude Code, Codex and Cursor guides on Nov 11, 2026

View the original SKILL.md

The text below comes from the maker’s repo, not from PopNx MCP

5,232 characters · Open the full file on GitHub

---
name: xiaodou-open-platform-integration
description: 小豆支付开放平台商家接入 Skill。用于帮助商家开发者(及其 AI 编码助手)把开放平台支付接起来:RSA2 请求签名(XD-Signature-v1)、下单/重拉起/查单/关单/退款、收银页终端能力矩阵(PC 扫码 / 手机支付宝手势主按钮 / 手机微信外推荐路径 / 微信内零点击)、平台事件通知验签(XD-Webhook-v1)与 eventId 去重、**平台响应验签(XD-Response-v1)**、错误码排障、上线检查清单与凭证轮换(含密钥标识 kid 格式与本地派生);也覆盖**新渠道商户的微信支付开通与拉起**(平台统一配置 appid 与授权目录、开通前置、subOpenid 取用与页面拉起)。触发词:开放平台接入、商家 API、XD-Signature-v1、XD-Response-v1、XD-Webhook-v1、qrCode 渲染、payUrl 中转链、收银页分端、多到账账号、比例分账、上线检查清单、密钥轮换、kid 密钥标识、公钥指纹、notifyUrl 回调地址、returnUrl 返回商家、商家小票、配置提交即生效、feeProjection 费率投影、易支付/彩虹支付插件兼容、submit.php、mapi.php、api.php、Sub2API、New API、微信支付开通、微信 JSAPI 拉起、subOpenid。
---

# 小豆支付开放平台 · 商家接入 Skill

> 本 Skill 与同仓 `docs/` 是**同一份内容源的两个形态**:`docs/` 给人读,本目录给 AI 编码助手直接消费。两者**同属一个 `skillVersion`**——但**两个下载包各有各的 `contentHash`**(文档包 ≠ Skill 包),且 **Skill 包内不含 `MANIFEST.json`**。核对版本请以门户下载页/发布记录登记的那一对(包 ↔ hash)为准,不要拿一个包的 hash 去对另一个包。
> 术语:本 Skill 是给**商家开发者**用的接入资料;「支付机构官方 Skill」是另一件东西,不要混用。

## 何时用

商家要「把开放平台支付接进自己的服务端/页面」时用。典型任务:

- 写一个能通过验签的下单请求(六头 + 规范串)。
- 决定收款页怎么呈现(自渲染官方收款码 / 渲染收银页二维码 / 302 跳转)。
- 接平台事件通知并做去重与幂等落账。
- 排一个 `401/403/409/422/429/503`。
- 上线前逐条自检;或轮换签名密钥。
- **系统里已经装了易支付 / 彩虹支付类插件**(Sub2API、New API 等),只填网关地址 / 商家 ID / 商户密钥,不想改代码。

## 已有易支付 / 彩虹支付插件(Sub2API、New API 等)

如果商家系统里已经装了易支付/彩虹支付类插件,**不要按本 Skill 的 RSA2 七接口重写**,走协议兼容面即可:

- 建单:`submit.php`(GET/POST 表单)或 `mapi.php`(GET/POST,JSON)。
- 查单:`api.php`,`act=order` 查单笔、`act=query` 查商户状态;GET/POST 表单均可,参数放 query、body 或同值镜像到两处(同键不同值会被拒绝)。
- 通知:平台用 **GET** 请求商家 `notify_url`;商家返回纯文本 `success`(大小写不敏感,`SUCCESS` 也接受)。
- 签名:MD5(剔除 `sign`/`sign_type`/空值 → ASCII 排序 → `k=v&…` → 直接接密钥 → 小写 hex)。
- 明确不做:`act=orders` 批量、`act=change`、`qrcode.php`、JSON body 建单。
- 实测客户端:独角数卡(GET submit)、V2Board(GET submit)、[Sub2API](https://github.com/Wei-Shaw/sub2api)(POST mapi / POST api,参数镜像 query+body)、[New API](https://github.com/QuantumNous/new-api)(go-epay v0.0.5,POST submit 表单、`device=pc`,`notify_url`/`return_url` 必须是 https 完整地址)。
- 人读版:`docs/13-epay-compat-integration.md`(**不在 Skill 包内**,按本文「路径基准」另取)。

## 铁律(先记这七条,能避免绝大多数事故)

1. **签名只认规范串**:请求 11 行、响应 8 行、事件 7 行,**三套不同**,不要复用同一段拼串代码。请求与响应两侧的 `Content-Type` 都取「小写去 `;` 参数」后的值——**没带这个头时该行是空行**(`GET` 且无请求体就是这样);**所有 `POST` 必须带 `Content-Type: application/json`**(含无请求体的重拉起/关单)。
2. **重试复用同一个 `requestId` 与同一份请求体**(body 逐字节相同,含「不传 body」本身),**但 nonce 必须换新**;`409` 的正确动作是**查单**,不是换单号重下单。业务摘要成员见 `references/api-workflow.md` §2——**`returnUrl` 在摘要内,改了再重试就是 `409`**。
3. **收银页打开 / 回跳 / 用户点完成都不是支付终态**;终态只认查单与经验签的事件。
4. **`UNKNOWN` 不判死**:不重新下单、不重发退款、不提示买家失败,等事件或查单收敛。
5. **收款材料只从响应取**:`payUrl`/`qrCode` 用原值,不拼接、不转发第三方、不进日志;查询接口两者**恒为空**,需要新码走重拉起。
6. **事件必须用原始字节验签 + 按 `eventId` 去重**,成功才回 2xx 且 body 字节正好是 `success`。
7. **私钥永不进浏览器、不进仓库、不进日志**;费率**不要写死进代码**:入账以每单 `feeProjection` 为准(对外统一档与手续费见仓库 `README.md`),单独约定过的费率与限额以门户「费率说明」页/平台答复为准。

**能力事实(2026-11-09 口径)**:**微信 JSAPI 已开放**——仅限买家在微信内打开收银页时调起;微信外手机浏览器与商家 App 内没有「直接拉起」形态。**新渠道商户的微信渠道首次开通**须同时满足「连续 7 个自然日每天至少 1 笔成功交易」与「保证金净额 ≥¥168」(只缴 ¥168 不能免 7 天;已开微信渠道的商户不受影响);微信渠道开通与实名只在**北京时间 08:00–18:00** 开放。建单/重拉起**不传** `subOpenid` 即走平台桥接页(推荐),携带 `subOpenid` 为自管形态。**商户单可选买家标识** `buyerId`/`buyerPhone`(仅摘要落库、不参与业务摘要;平台单禁止;商户支付宝单在强制模式下二选一必传)。**比例分账已支持**:`SINGLE` / `ROUND_ROBIN` / `RATIO` 三种方式,`RATIO` 为 2–4 个参与账号、配置面每项 `0 < shareBps < 10000`、合计 10000bps,`RENORMALIZE` 后单笔生效腿可只剩 1 条;查询接口只读返回 `routing.ratios` 配置快照,写面在商家后台。

## 工作流

```text
① 读 references/signature-spec.md   → 用 examples/ 里对应语言实现签名,先跑通 golden 向量
② 读 references/api-workflow.md     → 下单 → (需要新材料时)重拉起 → 查单;幂等三层怎么用
③ 读 references/terminal-matrix.md  → 决定收款页形态(PC 扫码 / 手机分端 / 微信推荐路径 / 宿主内跳浏览器)
④ 读 references/webhook-verification.md → 接事件、验签、去重、幂等落账、返回 success
⑤ 读 references/error-codes.md      → 按 code 分派错误,不要按 message 判错
⑥ 读 references/go-live-checklist.md → 上线前逐条自检(平台不提供沙箱)
⑦ 读 references/key-management.md   → 生成/轮换/停用/应急吊销;注意轮换是原子的
⑧ 新渠道商户收微信时读 references/wechat-jsapi-setup.md → 平台统一配置(无需自绑公众号)、开通前置、subOpenid 与拉起
```

## 资产

| 资产 | 路径 | 在 Skill 包里可取到? | 说明 |
| --- | --- | --- | --- |
| 四语言签名示例 | `examples/{node,java,php,python}/`(索引见 [`examples/README.md`](./examples/README.md)) | ✅ 在包内 | 与 `docs/` 同源的参考实现:请求签名四语言 + 事件验签 / **响应验签**(Node),含 golden 向量 |
| 人读文档(15 篇) | `docs/` | ❌ 不在包内 | 含 API 参考与终端能力矩阵;用门户「开发者文档」页的「下载文档包」或公开仓的 `docs/` |
| 本地收银 demo | `demo/h5-cashier/` | ❌ 不在包内 | 零依赖,loopback + mock,全链可跑(含负向用例);用公开仓全量目录 |

> **路径基准(别踩这个坑)**:本 Skill 有**两种落地形态**,可用路径不一样——
> - **Skill 下载包**(门户「开发者文档」页的「下载接入包(含示例与 Skill)」按钮打出的 `.tar.gz`):按登记文件集只含 `skill/**` 与 `examples/**`,**`docs/`、`demo/` 与仓库根 `README.md` 不在包内**。所以本文档、`references/` 与 `examples/README.md` 里所有指向 `docs/…`、`demo/…`、`README.md` 的引用在这个形态下**都取不到**——请如实告诉用户「人读文档要另外下载」,不要凭路径猜文件位置、更不要因此编造内容。
> - **公开仓(完整目录)**:`skill/` 与 `examples/`、`docs/`、`demo/` 同级存在,三者都能取到。
> - 只把 `skill/` 目录单独拷进编码助手的技能目录时,连 `examples/` 也会取不到(`skill/examples/` 里的相对引用按包根解析);这时把 `examples/` 一并带上。
>
> **不要**把示例代码复制进 `skill/` 内形成第二份源——那一定会漂移。

## 边界(不要做的事)

- 不要照抄 demo 的样式去仿造平台收银页;真实收银页由平台承载且**品牌中立**。
- 不要为「微信在手机浏览器直接拉起支付」「微信 PC 原生扫码直出付款码」写代码——**平台没有这些形态**(微信支付只能在微信内调起;PC 扫码是中转链)。
- 不要在自有 App 的 WebView 内嵌收银页;必须跳系统浏览器。
- 不要把 mock 全绿当成「生产可用」:**mock 只证明签名与解析没错**,生产首单必须真实验证。
- 不要把易支付兼容面当成 RSA2 七接口:两者的端点、签名(MD5 vs RSA2)与回调形态不同;已有插件走兼容面,不要重写。
- 平台**暂不提供**沙箱/测试应用/回调模拟器;替代路径=本地 demo + 上线检查清单 + 首单人工陪跑(不承诺 SLA)。

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

From GitHub

GitHub stars
523
Maker
xiaodou-official
License
No license stated This repo states no license. By default the author keeps all rights: ask before you share it or use it commercially.
Last code change
Nov 9, 2026
SKILL.md files in the repo (including translated copies and templates)
1
Topics
aggregate-payment, ai-agent, alipay, card-key, claude-skill, epay, epay-protocol, faka, llm-tools, new-api, openapi, payment