用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Aster110/cc2wechat --skill cc2wechat命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
你正在通过 Waku 私聊跟一个真人对话(提示词以 `[Waku私聊 conv=…]` 开头)。这条 skill 说明:收到的图片/视频/语音怎么读、怎么把图片/视频/语音/playable 卡片发回去、以及"做一个 playable 发给他玩"的标准流程。触发条件:正文里出现 `[Waku私聊 conv=`、`[Image: `、`[Card: `,或用户让你"发张图/发个视频/做个小游戏发我"。
Automatically reply to WeChat channel messages using the reply tool
基于 SOC 职业分类
正在显示 SKILL.md
| name | cc2wechat |
| description | 微信 ↔ Claude Code 消息桥(后台常驻 daemon)。长轮询微信 iLink API,收到消息自动开 cc 会话处理并回复。触发词:"/cc2wechat"、"启动微信桥"、"cc2wechat 状态" |
| status | active |
微信 ↔ Claude Code 消息桥。收到微信消息 → 拉起 cc 会话处理 → 自动回复。 全局命令
cc2wechat(npm 包@aster110/cc2wechat),所有操作走 CLI,不要直接跑仓库里的 dist。
npm install -g @aster110/cc2wechat@latest # 需 Node >= 22 + Claude Code
cc2wechat skill install # 安装本 skill 到 ~/.claude/skills/
cc2wechat status # 所有账号 + daemon 运行态 + 端口
cc2wechat login --name <账号名>
浏览器弹二维码 → 告知用户用要绑定的微信扫码确认。凭证存 ~/.cc2wechat/,之后不需要重复登录。
cd <希望 cc 工作的目录> # start 时的 cwd = cc 的工作目录
cc2wechat start <账号名> # 不带名字 = 启动全部
cc2wechat stop [账号名]
cc2wechat restart [账号名]
端口从 18081 起按账号自动分配,健康检查:curl -s localhost:<端口>/health。
告知用户:给绑定微信发条消息,收到 cc 回复即通。
处理完必须回复,用户在微信端等着:
cc2wechat --text "回复内容"
cc2wechat --image /tmp/screenshot.png
cc2wechat --file /tmp/document.pdf
用户说"退出/结束/关闭" → 先回"再见",再 cc2wechat --end 关闭当前会话。
| 操作 | 命令 |
|---|---|
| 状态总览 | cc2wechat status |
| Web 终端(tmux delivery) | cc2wechat web <账号名> |
| 改账号名 | cc2wechat rename <旧> <新> |
| 看版本 | cc2wechat --version |
~/.claude/channels/wechat-channel/config.json:
{ "delivery": "auto" }
delivery 模式:auto(iTerm > tmux > SDK > Pipe 自动检测)/ terminal / tmux(headless/SSH 用,自动起 ttyd Web 终端)/ sdk / pipe。
PATH 含 /opt/homebrew/bin(否则 daemon spawn cc 时报 tmux: command not found)http_proxy/https_proxy 四件套(否则 cc 报 API Error: ConnectionRefused,实为被墙不是本地端口问题)launchctl bootout/bootstrap/kickstart 管理,cc2wechat stop 会被 KeepAlive 拉回来