payment-assistant
它能做什么
这个技能帮助 AI 从你的 Binance 资金钱包向他人付款,或生成二维码和链接以收取付款。适合使用 Binance Pay 进行或收取加密货币付款的人。
适用场景
- ✓当你想扫描资金钱包中的付款二维码或付款链接付款的时候。
- ✓当你想查看某个付款订单状态的时候。
- ✓当你想生成二维码或付款链接以收取加密货币的时候。
技能链接
https://github.com/ccxt/ccxt/blob/master/.agents/skills/payment-assistant/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请支付我朋友刚刚发给我的这个 Binance Pay 二维码?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会从二维码或链接中读取付款数据,与你逐步完成确认,然后开始付款。之后它也可以查询订单状态。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
⚠️ CRITICAL: How to Handle QR Images
When user sends a QR code image or asks to pay:
Step 0: Check if user provided a PAYMENT LINK (text, not an image)
If the user provided text (not an image), and the text is a URL containing
app.binance.com/uni-qr/ or app.binance.com/qr/:
→ This is a payment link. Skip all decode steps. Go directly to purchase:
python3 payment_skill.py --action purchase --raw_qr "<the URL text>"
Otherwise (user sent an image, or text doesn't match above) → continue to Step 1.
Step 1: Try to READ the QR data directly (Vision)
Look at the QR code image and try to extract the actual data string (URL or EMV code).
- If you can read it →
--action purchase --raw_qr "<DATA>" - If you cannot read the data (only see logo/colors) → Go to Step 2
Step 2: Check for image file path
Does your platform provide the image attachment path in message metadata?
- If YES →
--action decode_qr --image "<PATH>" - If NO → Go to Step 3
Step 3: Ask user for help (DO NOT auto-use clipboard!)
"I cannot read the QR directly. Please copy to clipboard, then reply 'use clipboard'"
(Translate to user's language as needed)
Step 4: Only after user confirms → use clipboard
python3 payment_skill.py --action decode_qr --clipboard
⛔ FORBIDDEN:
- ❌
--clipboardwithout user explicitly saying "use clipboard" - ❌ Guessing or searching for image files
- ❌ Skipping the "ask user" step
✅ REQUIRED after decode_qr succeeds:
- Tell user the image source (e.g., "Decoded from clipboard" or "Decoded from file: xxx.jpg")
- Include
source_typefrom response in your message to user
🚀 Quick Start - Agent MUST Execute
When user sends a QR code image or asks to pay:
Step 1 - Get QR Data (Choose ONE method)
Method A: AI Vision (BEST - if your platform supports it)
1. Use your vision capability to read the QR code content directly from the image
2. Skip decode_qr entirely, go straight to purchase with the QR data
python3 payment_skill.py --action purchase --raw_qr "https://app.binance.com/uni-qr/xxx"
Method B: decode_qr with explicit image path (RECOMMENDED)
# Use the attachment path your platform provides
python3 payment_skill.py --action decode_qr --image "/path/to/attachment.jpg"
Method C: decode_qr from clipboard (Only when user explicitly says "use clipboard")
python3 payment_skill.py --action decode_qr --clipboard
Method D: decode_qr with base64 (For platforms that provide base64 image data)
python3 payment_skill.py --action decode_qr --base64 "iVBORw0KGgo..."
Step 2 - Purchase (IMMEDIATELY after getting QR data)
python3 payment_skill.py --action purchase --raw_qr "DECODED_QR_DATA"
Step 3 - Set amount (if needed)
python3 payment_skill.py --action set_amount --amount NUMBER
Step 4 - Confirm payment (after user confirms)
python3 payment_skill.py --action confirm
⚠️ IMPORTANT: After decode succeeds, IMMEDIATELY proceed to purchase. Do NOT stop and ask "Would you like to proceed?" - the user already said they want to pay. (Note: This applies to the decode → purchase transition only. You MUST still ask for explicit user confirmation before calling pay_confirm.)
📦 Prerequisites
Requires Python 3.8+ with these packages:
opencv-python- QR code decodingpyzbar- Barcode/QR detection (requires zbar system library)Pillow- Image processingrequests- API calls
Install Python packages:
pip install -r requirements.txt
System dependency for pyzbar:
- macOS:
brew install zbar - Linux (Debian/Ubuntu):
apt install libzbar0 - Windows: Usually works without extra setup
If you see "No QR decoder available", ensure both Python packages and system dependencies are installed.
⛔ STOP - READ THIS FIRST (Agent MUST Follow)
Before executing ANY command, you MUST follow these rules:
❌ NEVER DO
- NEVER use placeholder data like
'QR_CODE_DATA'or'test'- you must decode actual data from the QR image first - NEVER skip phases - follow the 3-step flow in order
- NEVER add extra command-line flags unless documented
- NEVER write inline Python/bash scripts to decode QR codes yourself. ALWAYS use
python3 payment_skill.py --action decode_qr. If it fails, debug the error and fix it — do NOT bypass with custom scripts. - NEVER silently corr
常见问题
它会在不与我确认的情况下付款吗?
技能包括付款的确认和取消步骤,因此每一笔付款都由你掌控。
它支持 PIX 二维码吗?
支持。技能说明,PIX 二维码会被自动识别。
如果 AI 无法读取二维码图片怎么办?
技能会请你把代码复制到剪贴板,并在使用该数据前进行确认。
详情
作者的原始描述
Binance Pay Assistant - Send and Receive crypto payments. Send: QR code payment from Funding Wallet (C2C + PIX). Use when user wants to buy/purchase/pay/transfer/send, confirm/cancel payment, or query order status. Requires QR code data. PIX QR codes (pix, br.gov.bcb.pix) are auto-detected. Receive: Generate QR codes and payment links to collect crypto. Use when user wants to receive/collect payment (generate receive link, receive QR). Do NOT use for earning, buying/selling crypto, or digital goods.
repo: ccxt/ccxt
热度
- GitHub 星标
- 45k
- 排名
- #6373
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
binance-agentic-wallet
45k帮你的智能体通过 baw 命令行管理 Binance Web3 钱包,包括登录、查询余额、转账、代币兑换和限价订单。
binance-sports-ai-analyzer
45k帮你的智能体查询世界杯比赛的预测、AI 分析和新闻洞察,并在你调整信号后重新计算胜率。
binance-tokenized-securities-info
45k帮你的智能体在 Binance Web3 上查询 Ondo 代币化美股,包括代币列表、公司信息、交易状态和链上价格。
binance
45k帮你的智能体通过 binance-cli 工具使用 Binance 现货、USD-M 合约和 Convert 功能。使用前需先完成身份验证设置。