payment-assistant
Installation
SKILL.md
⚠️ CRITICAL: How to Handle QR Images
When user sends a QR code image, you MUST follow this order:
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!)
Chinese: "我无法直接读取二维码。请复制图片到剪贴板,然后回复"用剪贴板""
English: "I cannot read the QR directly. Please copy to clipboard, then reply 'use clipboard'"