/weixin:weixin-configure [clear]from weixin
Connects or disconnects your WeChat account via QR code scan. Useful for setting up WeChat messaging integrations.
Ships in weixin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Manage your WeChat connection.
IMPORTANT: All commands must run from the plugin root directory (where package.json is), NOT from the skills directory.
Run as a single Bash command:
cd "${CLAUDE_PLUGIN_ROOT:-$(dirname $(dirname $0))}" && bun install --no-summary 1>&2 && bun src/cli-login.ts
If the user provides clear as an argument, append clear:
cd "${CLAUDE_PLUGIN_ROOT:-$(dirname $(dirname $0))}" && bun install --no-summary 1>&2 && bun src/cli-login.ts clear
The script handles everything: checking existing accounts, displaying the QR code, polling for scan result, and saving credentials.
IMPORTANT — QR Code display: The script outputs a line like:
Scan the QR code above with WeChat, or open this URL:
https://....
Always extract and show this URL to the user explicitly. In environments where the terminal QR code is not visible (e.g. Codex TUI background terminal), this URL is the only way for the user to scan. Tell the user to open the URL in a browser and scan the QR code with WeChat.
IMPORTANT — Privacy: NEVER show file system paths (such as the plugin root directory, cache paths, or home directory paths) to the user. These paths contain the user's system username and are private. If you need to refer to re-running this skill, say $weixin:weixin-configure clear — never paste an absolute path.
After connecting, tell the user the next step based on their platform:
Claude Code:
claude --dangerously-load-development-channels plugin:weixin@cc-weixin
Do NOT mention claude --channels plugin:weixin@cc-weixin (without --dangerously-load-development-channels) — this requires an official allowlist and is not yet available.
Codex:
~/cc-weixin/plugins/weixin/start-codex.sh
This starts both the Codex App Server and the WeChat bridge in one command. Run it in a terminal and keep it running. WeChat conversations are processed in the background — Codex TUI does not display them directly.
If the user wants to reset/re-login, tell them to run: $weixin:weixin-configure clear
Do NOT show any absolute path commands for clearing credentials.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub qufei1993/cc-weixin --plugin weixin2 skills in this plugin