Wechat Claude Code logo

Wechat Claude Code

Community
Wechat-ggGitHub
wechat-claude-code

微信消息桥接 - 在微信中与 Claude Code 聊天。支持文字对话、图片识别、实时进度推送、斜杠命令。

Overview

PublisherWechat-ggGitHub
Repositorywechat-claude-code
Skill namewechat-claude-code
Stars
682
Forks
154
Bundled files
36
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 36 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Wechat-ggGitHub on GitHub. Read the source before you install it.

Installation

Install the Wechat Claude Code AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Wechat-ggGitHub/wechat-claude-code/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Wechat-ggGitHub/wechat-claude-code.git \
  .claude/skills/wechat-claude-code
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wechat Claude Code in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wechat Claude Code on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wechat Claude Code is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

WeChat Claude Code Bridge

通过个人微信与本地 Claude Code 进行对话。

前置条件

  • Node.js >= 18
  • macOS(daemon 使用 launchd 管理)
  • 个人微信账号(需扫码绑定)
  • 已安装 Claude Code(@anthropic-ai/claude-agent-sdk)

安装

方式一:通过 skills CLI(推荐)

bash
npx skills add Wechat-ggGitHub/wechat-claude-code

首次触发时 skill 会自动克隆完整项目源码并安装依赖。

方式二:手动克隆

bash
git clone https://github.com/Wechat-ggGitHub/wechat-claude-code.git ~/.claude/skills/wechat-claude-code
cd ~/.claude/skills/wechat-claude-code && npm install

触发场景

用户提到"微信桥接"、"微信聊天"、"wechat bridge"、"连接微信"、"微信状态"、"停止微信"等与微信桥接相关的话题时触发。

触发后的执行流程

被触发时,不要直接执行任何操作,先探查当前状态再给出可用操作。

按顺序检查以下状态:

第 1 步:检查项目是否完整安装

bash
test -f ~/.claude/skills/wechat-claude-code/package.json && echo "source_ok" || echo "source_missing"
  • 如果 source_missing:需要从 GitHub 克隆完整项目。执行:

    bash
    git clone https://github.com/Wechat-ggGitHub/wechat-claude-code.git /tmp/wechat-claude-code-install && cp -r /tmp/wechat-claude-code-install/{src,scripts,*.ts,*.json,*.md,LICENSE} ~/.claude/skills/wechat-claude-code/ && rm -rf /tmp/wechat-claude-code-install

    然后继续检查依赖。

  • 如果 source_ok:继续检查依赖。

bash
cd ~/.claude/skills/wechat-claude-code && test -d node_modules && echo "deps_ok" || echo "deps_missing"
  • 如果 deps_missing:执行 cd ~/.claude/skills/wechat-claude-code && npm install 安装依赖,然后继续。
  • 如果 deps_ok:继续下一步。

第 2 步:检查是否已绑定微信账号

bash
ls ~/.wechat-claude-code/accounts/*.json 2>/dev/null | head -1
  • 如果没有账号文件:提示用户需要先执行 setup 扫码绑定,询问是否现在执行。
  • 如果有账号文件:继续下一步。

第 3 步:检查 daemon 运行状态

bash
cd ~/.claude/skills/wechat-claude-code && npm run daemon -- status

第 4 步:根据状态展示信息

如果 daemon 未运行:

微信桥接已绑定但未运行。

可用操作:
  setup    重新扫码绑定(换号或过期时使用)
  start    启动服务
  logs     查看上次运行的日志

如果 daemon 正在运行:

微信桥接正在运行(PID: xxx)。

可用操作:
  stop     停止服务
  restart  重启服务(代码更新后使用)
  logs     查看运行日志

微信端命令(直接在微信中发送):
  /help    显示帮助
  /clear   清除当前会话,开始新对话
  /status  查看当前会话状态
  /model   切换 Claude 模型
  /prompt  设置系统提示词
  /cwd     切换工作目录
  /skills  查看已安装的 skill

如果用户明确指定了操作(如"启动微信"、"停止微信服务"、"看看日志"等),跳过状态展示直接执行对应命令。

子命令参考

所有命令的工作目录为 ~/.claude/skills/wechat-claude-code。

命令执行说明
setupnpm run setup首次安装向导:生成 QR 码 → 微信扫码 → 配置工作目录
startnpm run daemon -- start启动 launchd 守护进程(开机自启、自动重启)
stopnpm run daemon -- stop停止守护进程
restartnpm run daemon -- restart重启守护进程
statusnpm run daemon -- status查看运行状态
logsnpm run daemon -- logs查看最近日志(tail -100)

数据目录

所有数据存储在 ~/.wechat-claude-code/:

~/.wechat-claude-code/
├── accounts/       # 绑定的微信账号数据(每个账号一个 JSON)
├── config.env      # 全局配置(工作目录、模型、系统提示词)
├── sessions/       # 会话数据(每个账号一个 JSON)
├── get_updates_buf # 消息轮询同步缓冲
└── logs/           # 运行日志(每日轮转,保留 30 天)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wechat Claude Code AI skill do?

微信消息桥接 - 在微信中与 Claude Code 聊天。支持文字对话、图片识别、实时进度推送、斜杠命令。

Why use Wechat Claude Code on TypingMind?

Because you install it once and use it with any model. Wechat Claude Code is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wechat Claude Code in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Wechat-ggGitHub/wechat-claude-code/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wechat Claude Code?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wechat Claude Code?

As many as you like. As long as a model supports skills, you can use Wechat Claude Code with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wechat Claude Code AI skill free?

Yes. It is published on GitHub by Wechat-ggGitHub under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇