OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add starchild-ai-agent/official-skills --skill wechat-binding
WeChat binding: QR scan, bind, unbind, reconnect, status check.
npx skills add starchild-ai-agent/official-skills --skill wechat-binding
Connect / reconnect / disconnect the user's WeChat account so the agent can push messages via send_to_wechat.
The wechat tool stays built-in. This SKILL.md is the reference doc.
config/context/references/messaging-channels.md โ how to actually send messages once boundskills/tg-bot-binding/SKILL.md โ analogous Telegram flowwechat(action="qrcode") โ saves an image to workspace, returns qrcode (id) + file_path.file_path so the frontend renders the image. On TG/WeChat channel: send the image via send_to_telegram with the file_path.wechat(action="qrcode_status", qrcode=<id from step 1>). Returns bot_token once scan + confirm completes.wechat(action="connect", bot_token=<from step 4>). Optional: ilink_bot_id, ilink_user_id if the user has multiple WeChat accounts.| action | required | purpose |
|---|---|---|
status | โ | Current WeChat connection state. Use before reconnect, to verify binding. |
qrcode | โ | Generate QR code image (saved to workspace). Returns qrcode id + file_path. |
qrcode_status | qrcode | Poll whether user has scanned + confirmed. Returns bot_token on success. |
connect | bot_token | Complete a NEW WeChat connection (after first-ever QR scan). Optional: ilink_bot_id, ilink_user_id. |
disconnect | โ | Terminate current WeChat session (unlink). |
reconnect | bot_token | Re-establish a previously-bound WeChat (token from a fresh QR scan). |
connect โ first-time binding. The user has NEVER bound this WeChat before.reconnect โ the user was previously connected, the connection dropped (e.g. ilink session expired), and they just scanned a fresh QR.When in doubt, call status first:
connected: false + no prior history โ connectconnected: false + prior history exists โ reconnect| User channel | How to show the QR |
|---|---|
| Web | Include file_path in your reply โ frontend renders it inline |
| Telegram | send_to_telegram(file_path=<qr_path>, message_type="photo") |
| (You can't โ they're trying to bind WeChat in the first place. Tell them to open the web app.) |
qrcode_status after qrcode. Wait for user confirmation that they scanned + confirmed in WeChat. Auto-polling spams the upstream API.qrcode call generates a fresh image. Don't re-use an old qrcode id with a new image โ the upstream session is tied to the id.bot_token in chat. It's a credential. Once you have it from qrcode_status, immediately pass it to connect / reconnect and don't echo it back to the user.disconnect is destructive โ confirm with the user before calling it.