Wechat Clawbot Notify logo

Wechat Clawbot Notify

Community
plustar35
wechat-clawbot-notify

Send notification messages to the user's WeChat via ClawBot (iLink API). Use when automation tasks complete and need to notify the user, or when the user asks to send a message to their WeChat. Triggers on: 'notify me on WeChat', 'send to my WeChat', 'push result to WeChat', '发微信通知', '推送到微信', '通知我'.

Overview

Publisherplustar35
Repositorywechat-clawbot-notify
Skill namewechat-clawbot-notify
Stars
38
Forks
6
Bundled files
2
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.

  • 2 bundled files

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

  • Open source

    Published by plustar35 on GitHub. Read the source before you install it.

Installation

Install the Wechat Clawbot Notify 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/plustar35/wechat-clawbot-notify/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/plustar35/wechat-clawbot-notify.git \
  .claude/skills/wechat-clawbot-notify
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wechat Clawbot Notify 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 Clawbot Notify 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 Clawbot Notify 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 ClawBot Notify

通过微信 ClawBot iLink API 发送文本消息给用户。

平台说明:统一使用 python 执行脚本。macOS/Linux/Bash 使用 $SKILL_DIR/scripts/...;Windows PowerShell 使用 $env:SKILL_DIR\scripts\...。要求 python 指向 Python 3。

初始化检查(必须优先执行)

使用任何命令前,先执行 status 检查配置和 token 状态。不要只根据 .token_cache.json 是否存在判断技能已就绪;该文件可能只有 get_updates_buf 游标,没有可发送消息的 context_token。

第 1 步:检查 ClawBot 配置

macOS / Linux / Bash:

bash
python "$SKILL_DIR/scripts/send_wechat.py" status

Windows PowerShell:

powershell
python "$env:SKILL_DIR\scripts\send_wechat.py" status
  • 输出 Ready: True 且 Token: 显示 token 前缀 → 技能已就绪,直接跳到 发送消息。
  • 输出 Ready: False 或 Token: Not cached → 进入第 2 步。
  • 报错 → ClawBot 未配置。告诉用户:"请先在 WorkBuddy 设置中连接你的微信 ClawBot 通道。" 到此停止。

第 2 步:获取 context_token

macOS / Linux / Bash:

bash
python "$SKILL_DIR/scripts/send_wechat.py" refresh

Windows PowerShell:

powershell
python "$env:SKILL_DIR\scripts\send_wechat.py" refresh
  • 成功(输出 "Token refreshed successfully")→ 进入第 3 步。
  • 失败(输出 "No messages with context_token found")→ 告诉用户:"请打开微信,给你的 ClawBot 发一条消息,然后告诉我继续。" 等待用户确认后,重试本步骤。

第 3 步:配置自动通知

macOS / Linux / Bash:

bash
python "$SKILL_DIR/scripts/inject_soul.py"

Windows PowerShell:

powershell
python "$env:SKILL_DIR\scripts\inject_soul.py"

将自动通知指令写入 ~/.workbuddy/SOUL.md,后续自动化任务完成后会自动使用本技能通知用户。幂等操作,可重复执行。

第 4 步:发送验证消息

macOS / Linux / Bash:

bash
python "$SKILL_DIR/scripts/send_wechat.py" send "微信 ClawBot 通知技能配置完成!后续自动化任务完成后会自动通知你的微信。"

Windows PowerShell:

powershell
python "$env:SKILL_DIR\scripts\send_wechat.py" send "微信 ClawBot 通知技能配置完成!后续自动化任务完成后会自动通知你的微信。"
  • 成功 → 告诉用户:"配置完成!验证消息已发送到你的微信,后续自动化任务会自动通知你。"
  • 失败 → 告诉用户:"配置基本完成,但验证消息发送失败。稍后可以尝试执行 refresh 刷新 token。"

发送消息

macOS / Linux / Bash:

bash
python "$SKILL_DIR/scripts/send_wechat.py" send "消息内容"

Windows PowerShell:

powershell
python "$env:SKILL_DIR\scripts\send_wechat.py" send "消息内容"

其他命令

查看状态

macOS / Linux / Bash:

bash
python "$SKILL_DIR/scripts/send_wechat.py" status

Windows PowerShell:

powershell
python "$env:SKILL_DIR\scripts\send_wechat.py" status

刷新 token

发送失败时,刷新缓存的 token:

macOS / Linux / Bash:

bash
python "$SKILL_DIR/scripts/send_wechat.py" refresh

Windows PowerShell:

powershell
python "$env:SKILL_DIR\scripts\send_wechat.py" refresh

故障排查

问题解决方法
.token_cache.json 不存在按上面的初始化步骤执行
"No cached context_token"用户给 ClawBot 发一条消息,然后执行 refresh
"getupdates returned ret=-14"旧缓存 cursor 或旧 ClawBot 配置失效;脚本会自动丢弃 cursor 重试。仍失败时,让用户给 ClawBot 再发一条消息后执行 refresh
发送静默失败执行 refresh 获取新的 token
"HTTP 401"检查 WorkBuddy 设置中的 botToken
"Token: Cached for a different bot"WorkBuddy 重新绑定过 ClawBot,缓存的 token 属于旧 bot。让用户给 ClawBot 发一条消息后执行 refresh
status 里的 Bot ID 与 WorkBuddy 设置中当前 ClawBot 不一致脚本读到了旧配置文件。升级到 v1.3.0 以上(已适配 WorkBuddy 5.5 的按用户存放的配置结构)

工作原理

  1. 配置:从 WorkBuddy settings 读取 weixinClawBot 通道配置(botToken、userId、baseUrl)。WorkBuddy 5.5 起配置位于 claw.users.<用户ID>.channels.weixinClawBot,旧版位于 claw.channels.weixinClawBot,脚本两种都认,优先新版
  2. Token:调用 /ilink/bot/getupdates 从最近的消息中获取 context_token,缓存到本地
  3. 发送:使用缓存的 token 向 /ilink/bot/sendmessage 发送消息
  4. 重试:发送失败时自动刷新 token 并重试一次
  5. 日志:所有操作记录到 logs/send_wechat.log

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 Clawbot Notify AI skill do?

Send notification messages to the user's WeChat via ClawBot (iLink API). Use when automation tasks complete and need to notify the user, or when the user asks to send a message to their WeChat. Triggers on: 'notify me on WeChat', 'send to my WeChat', 'push result to WeChat', '发微信通知', '推送到微信', '通知我'.

Why use Wechat Clawbot Notify on TypingMind?

Because you install it once and use it with any model. Wechat Clawbot Notify 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 Clawbot Notify in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/plustar35/wechat-clawbot-notify/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 Clawbot Notify?

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 Clawbot Notify?

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

Is the Wechat Clawbot Notify AI skill free?

It is published on GitHub by plustar35. Check the repository for licensing terms. 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 👇