wechat-pay

GitHub

在即时通讯会话中收集真实微信支付,支持用户明确指令下的下单与收款。通过创建订单生成二维码卡片,轮询状态直至支付成功,严格遵循金额确认与安全规范。

sdk/cloud/catalog/skills/wechat-pay/SKILL.md Prismer-AI/PrismerCloud

触发场景

用户明确要求付款、下单或收款 用户确认了具体金额

安装

npx skills add Prismer-AI/PrismerCloud --skill wechat-pay -g -y
更多选项

非标准路径

npx skills add https://github.com/Prismer-AI/PrismerCloud/tree/main/sdk/cloud/catalog/skills/wechat-pay -g -y

不安装直接使用

npx skills use Prismer-AI/PrismerCloud@wechat-pay

指定 Agent (Claude Code)

npx skills add Prismer-AI/PrismerCloud --skill wechat-pay -a claude-code -g -y

安装 repo 全部 skill

npx skills add Prismer-AI/PrismerCloud --all -g -y

预览 repo 内 skill

npx skills add Prismer-AI/PrismerCloud --list

SKILL.md

Frontmatter
{
    "name": "wechat-pay",
    "scope": "persistence",
    "description": "Collect a real WeChat Pay (微信支付) payment from inside an IM session. Use when a user in the conversation explicitly asks to pay \/ 下单 \/ 付款 \/ 收款 and has stated (or confirmed) an amount. Posts a Native 扫码 QR card into the session (which the bridge forwards to bound WeChat users), then confirms when the payment lands. Executes via `cloud pay create` \/ `cloud pay status`. This is the RUNTIME收款 capability — distinct from the wechatpay-skills coding-assistant skill, which only helps developers write integration code."
}

WeChat Pay (收款) in a session

This skill lets you collect a real WeChat Pay payment from a participant of the current conversation. The platform is a platform-direct merchant using Native (扫码) payment: you create an order, the cloud renders a QR card into the session, the bridge fans that QR out to the session's bound WeChat users, they scan & pay, and the cloud posts a settlement message + flips the card to 已支付.

⛔ Guardrails — real money

  1. Only on explicit user request with an explicit amount. Never invent a price, never round, never "helpfully" collect more. If the amount is unclear, ASK in the conversation first.
  2. Never alter the amount the user agreed to.
  3. One order per intent. Don't re-issue a QR for the same charge — poll the existing order with cloud pay status instead.
  4. This is online-only. If the cloud is unreachable the command fails — surface that to the user, do NOT fake a confirmation.

When to use

  • A user says "帮我下单 / 付款 / 收款 ¥X" or agrees to a quoted price.
  • You're a 客服 / 销售 / 咨询 agent closing a paid action.

CLI

# Create an order + post the QR card (amount in YUAN on the CLI)
cloud pay create --conversation <conversationId> --amount 9.9 --desc "咨询费"
# → prints orderId + status=pending; the QR is now visible in the session.

# Poll until paid (the cloud also posts a "✅ 已收款" message when it lands)
cloud pay status <orderId>
# → status: pending | succeeded | expired | closed

--conversation is the current session id. Get it from your dispatch context; if you don't have it, you are not in a session that can collect payment.

Flow

  1. Confirm the amount + purpose with the user (in YUAN).
  2. cloud pay create --conversation <id> --amount <yuan> --desc "<purpose>".
  3. Tell the user the QR is posted and to scan it in WeChat.
  4. Poll cloud pay status <orderId> (or wait for the settlement message). On succeeded, confirm to the user and continue your task.
  5. The Native QR expires in ~2h. If it expires before payment, create a new order.

Notes

  • Amounts: CLI takes yuan (9.9); the API stores 分. ¥9.9 → 990 分.
  • Errors surface the WeChat code + Request-Id — if a user reports a failure, that Request-Id is exactly what the wechatpay-skills troubleshooting flow consumes.

版本历史

  • f4c4a0c 当前 2026-10-19 02:42

同 Skill 集合

sdk/apc/skills/bug-reproduce/SKILL.md
sdk/apc/skills/code-review/SKILL.md
sdk/apc/skills/design-review/SKILL.md
sdk/apc/skills/doc-sync/SKILL.md
sdk/apc/skills/env-doctor/SKILL.md
sdk/apc/skills/git-ops/SKILL.md
sdk/apc/skills/impact-trace/SKILL.md
sdk/apc/skills/observability/SKILL.md
sdk/apc/skills/release-db-config-sync/SKILL.md
sdk/apc/skills/release-ota-promote/SKILL.md
sdk/apc/skills/release-preflight/SKILL.md
sdk/apc/skills/release-rollback/SKILL.md
sdk/apc/skills/release-tag/SKILL.md
sdk/apc/skills/releasing-prod/SKILL.md
sdk/apc/skills/releasing-test/SKILL.md
sdk/apc/skills/sdk-release/SKILL.md
sdk/apc/skills/spec-intake/SKILL.md
sdk/apc/skills/test-result-feedback/SKILL.md
sdk/apc/skills/test-runner/SKILL.md
sdk/apc/skills/ui-canvas/SKILL.md
sdk/cloud/catalog/skills/agent-meta/SKILL.md
sdk/cloud/catalog/skills/assets/SKILL.md
sdk/cloud/catalog/skills/browser-use/SKILL.md
sdk/cloud/catalog/skills/canvas-design/SKILL.md
sdk/cloud/catalog/skills/claim-agent-ownership/SKILL.md
sdk/cloud/catalog/skills/codebase-design/SKILL.md
sdk/cloud/catalog/skills/competitor-intelligence/SKILL.md
sdk/cloud/catalog/skills/diagnosing-bugs/SKILL.md
sdk/cloud/catalog/skills/doc-coauthoring/SKILL.md
sdk/cloud/catalog/skills/document-actions/SKILL.md
sdk/cloud/catalog/skills/domain-modeling/SKILL.md
sdk/cloud/catalog/skills/evidence-citations/SKILL.md
sdk/cloud/catalog/skills/frontend-design/SKILL.md
sdk/cloud/catalog/skills/image-generate/SKILL.md
sdk/cloud/catalog/skills/internal-comms/SKILL.md
sdk/cloud/catalog/skills/mcp-builder/SKILL.md
sdk/cloud/catalog/skills/meeting-actions/SKILL.md
sdk/cloud/catalog/skills/office-artifacts/SKILL.md
sdk/cloud/catalog/skills/okr/SKILL.md
sdk/cloud/catalog/skills/pkf-svg/SKILL.md
sdk/cloud/catalog/skills/pkf-writing/SKILL.md
sdk/cloud/catalog/skills/prismer-apple-notes/SKILL.md
sdk/cloud/catalog/skills/prismer-apple-reminders/SKILL.md
sdk/cloud/catalog/skills/prismer-ascii-video/SKILL.md
sdk/cloud/catalog/skills/prismer-blocked-page-recovery/SKILL.md
sdk/cloud/catalog/skills/prismer-box/SKILL.md
sdk/cloud/catalog/skills/prismer-codebase-inspection/SKILL.md
sdk/cloud/catalog/skills/prismer-computer-use/SKILL.md
sdk/cloud/catalog/skills/prismer-design-md/SKILL.md
sdk/cloud/catalog/skills/prismer-email-inbox-triage/SKILL.md

元信息

文件数
0
版本
f83b859
Hash
57d64f00
收录时间
2026-10-19 02:42

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-11 23:31
浙ICP备14020137号-1