access
Manage WeChat channel access — approve pairings, edit allowlists, set DM policy. Use when the user asks to pair, approve someone,…
Set up the WeChat channel — scan QR code to login, check channel status. Use when the user asks to configure WeChat, login, or check channel status.
$ npx -y skills add m1heng/claude-plugin-weixin --skill configure --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/configureContext preview
The summary Claude sees to decide when to auto-load this skill.
Set up the WeChat channel — scan QR code to login, check channel status. Use when the user asks to configure WeChat, login, or check channel status.
name: configure description: Set up the WeChat channel — scan QR code to login, check channel status. Use when the user asks to configure WeChat, login, or check channel status. user-invocable: true allowed-tools: - Read - Write - Bash(ls *) - Bash(mkdir *) - Bash(bun *)
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:
1. **Credentials** — check `~/.claude/channels/weixin/credentials.json` for `token` and `baseUrl`. Show set/not-set; if set, show token first 6 chars masked.
2. **Access** — read `~/.claude/channels/weixin/access.json` (missing file = defaults: `dmPolicy: "pairing"`, empty allowlist). Show:
3. **What next** — concrete next step based on state:
This 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:
**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:
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.
Delete `~/.claude/channels/weixin/credentials.json`.
For testing or alternative iLink endpoints. Read existing credentials.json, update `baseUrl`, write back.
---
= not configured, not an error.
session restart. Say so after saving.
`/weixin:access` take effect immediately, no restart.
WeChat's QR scanner OR when opened in WeChat's built-in browser.
WeChat (微信) channel plugin for Claude Code — receive and reply to WeChat messages directly in your terminal. Uses the WeChat iLink Bot API with HTTP long-poll. No public webhook needed.