From wechat
Configures WeChat channel in Claude Code: runs QR login via terminal or link, checks credentials status, clears credentials, sets custom API base URL.
npx claudepluginhub swim2sun/claude-code-wechatThis skill is limited to using the following tools:
Manages credentials in `~/.claude/channels/wechat/credentials.json`.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Manages credentials in ~/.claude/channels/wechat/credentials.json.
The server reads this file at boot.
Arguments passed: $ARGUMENTS
Read the credentials file and give the user a complete picture:
Credentials — check ~/.claude/channels/wechat/credentials.json. Show
set/not-set; if set, show accountId and userId fields, and mask the
token value (first 8 chars + ...).
What next — end with a concrete next step based on state:
/wechat:configure login to start the QR login
flow."--dangerously-load-development-channels server:wechat to enable the
channel."Available commands — always show at the end:
/wechat:configure login — 扫码登录微信/wechat:configure clear — 清除已保存的凭据/wechat:configure baseurl <url> — 设置自定义 API 地址login — QR login flowBefore running the script, tell the user: "脚本运行后,请按 ctrl+o 展开输出查看完整二维码,或直接在微信中打开输出中的链接完成登录。"
Then run directly:
bun ${CLAUDE_PLUGIN_ROOT}/login.ts
${CLAUDE_PLUGIN_ROOT} is automatically expanded by Claude Code to the plugin's
absolute path — do NOT substitute it yourself or search for the script.
This is a long-running command — it renders a QR code, then polls for scan confirmation. It may take up to 8 minutes. Set timeout to at least 8 minutes.
Do NOT read credentials first. Do NOT search for the script path. Just run it.
The script handles everything:
confirmed: saves credentialsOn success, tell the user:
On failure (expired/timeout), offer to run /wechat:configure login again.
clear — remove credentials~/.claude/channels/wechat/credentials.json if it exists; note the
accountId so the user knows what was removed.Bash to rm -f).<accountId> removed. The server will fail to
start without valid credentials."baseurl <url> — set custom API base URLmkdir -p ~/.claude/channels/wechat~/.claude/channels/wechat/credentials.json if present.baseUrl field, write back.{"baseUrl": "<url>"}.chmod 600 ~/.claude/channels/wechat/credentials.json<url>. This takes effect on next server start."credentials.json once at boot. Credential changes need a
session restart. Say so after saving.credentials.json must always be chmod 600 — it contains the bot token.