Help us improve
Share bugs, ideas, or general feedback.
From weixin
Configures WeChat iLink bot channel: checks credentials/access status, generates QR code for login, polls scan confirmation, stores tokens.
npx claudepluginhub haojunyu/claude-plugins --plugin weixinHow this skill is triggered — by the user, by Claude, or both
Slash command
/weixin:configureThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manages WeChat iLink Bot login and credential storage. Credentials live in
Configures WeChat iLink bot channel: checks credentials/access status, generates QR code for login, polls scan confirmation, stores tokens.
Sets up WeChat iLink Bot login via QR code scanning and checks channel status. Guides through login flow, polls for scan result, and displays credential/access state.
Sets up WeChat channel connection via QR code login. Checks existing credentials, supports re-login, logout, and full reset.
Share bugs, ideas, or general feedback.
Manages WeChat iLink Bot login and credential storage. Credentials live in
~/.claude/channels/weixin/credentials.json.
Arguments passed: $ARGUMENTS
Read both state files and give the user a complete picture:
Credentials — check ~/.claude/channels/weixin/credentials.json for
token and baseUrl. Show set/not-set; if set, show token first 6 chars
masked.
Access — read ~/.claude/channels/weixin/access.json (missing file
= defaults: dmPolicy: "pairing", empty allowlist). Show:
What next — concrete next step based on state:
/weixin:configure login to scan QR code and connect."/weixin:access pair <code>."login — QR code loginThis is a TWO-STEP process. The scripts are in the plugin install directory.
Find the plugin root by looking for the login-qr.ts file:
~/.claude/plugins/cache/m1heng-plugins/weixin/*/login-qr.ts
Use ls to resolve the wildcard and get the actual path.
Step 1: Fetch and display QR code
bun <plugin-root>/login-qr.ts
This script:
https://ilinkai.weixin.qq.com/npx qrcode-terminal{"qrcode":"...","url":"..."}Wait for the user after showing the QR code. Tell them: "用微信扫描二维码,或在微信中打开上面的链接。扫码完成后告诉我。"
Extract the qrcode value from the last line of output — you'll need it
for step 2.
Step 2: Poll for scan result
After the user says they've scanned (or just proceed after showing the QR):
bun <plugin-root>/login-poll.ts <qrcode>
This script polls the WeChat API for scan status. It outputs one line:
scaned — user scanned, waiting for confirmation on phoneexpired — QR expired (exit code 1). Offer to re-run step 1.timeout — timed out (exit code 1). Offer to re-run step 1.{"token":"...","baseUrl":"...","accountId":"...","userId":"..."} — success!
Credentials saved and scanner added to allowlist. (exit code 0)On success, tell the user:
On scaned, tell the user "已扫码,请在微信上点击确认..." and note
the poll script is still running.
clear — remove credentialsDelete ~/.claude/channels/weixin/credentials.json.
baseurl <url> — set custom API base URLFor testing or alternative iLink endpoints. Read existing credentials.json,
update baseUrl, write back.
access.json is re-read on every inbound message — policy changes via
/weixin:access take effect immediately, no restart.https://ilinkai.weixin.qq.com/.