본문으로 건너뛰기
Skillpedia
기타45k · #6373

payment-assistant

하는 일

AI가 Binance 펀딩 지갑에서 암호화폐로 누군가에게 결제하거나, QR 코드와 링크를 만들어 결제를 받도록 돕습니다. Binance Pay로 암호화폐 결제를 하거나 받는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓펀딩 지갑에서 QR 코드나 결제 링크로 결제하고 싶을 때.
  • ✓결제 주문의 상태를 확인하고 싶을 때.
  • ✓암호화폐를 받기 위해 QR 코드나 결제 링크를 만들고 싶은 경우.

스킬 링크

https://github.com/ccxt/ccxt/blob/master/.agents/skills/payment-assistant/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ccxt/ccxt/blob/master/.agents/skills/payment-assistant/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“친구에게 받은 이 Binance Pay QR 코드로 결제해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 QR 코드나 링크에서 결제 데이터를 읽고, 확인 단계를 사용자와 함께 진행한 뒤 결제를 시작합니다. 이후에는 주문 상태도 확인할 수 있습니다.

기술 내용 (원본 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:

  • ❌ --clipboard without 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_type from 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 decoding
  • pyzbar - Barcode/QR detection (requires zbar system library)
  • Pillow - Image processing
  • requests - 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

  1. NEVER use placeholder data like 'QR_CODE_DATA' or 'test' - you must decode actual data from the QR image first
  2. NEVER skip phases - follow the 3-step flow in order
  3. NEVER add extra command-line flags unless documented
  4. 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.
  5. NEVER silently corr
자주 묻는 질문

제가 확인하지 않아도 결제하나요?

아니요. 스킬에는 결제마다 확인과 취소 단계가 있어, 각 결제에 대한 통제권이 사용자에게 있습니다.

PIX 코드도 작동하나요?

예. 스킬은 PIX QR 코드를 자동으로 감지한다고 말합니다.

AI가 QR 이미지를 읽지 못하면 어떻게 하나요?

스킬은 코드를 클립보드에 복사한 뒤 확인하고 나서 그 데이터를 사용하라고 요청합니다.

상세 정보

작성자의 원본 설명

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬