bjdzliu

wechat-auto-reply

AI Agentv1.0.1
By bjdzliuUpdated 2026-05-172 versions · latest released 2026-02-24@clawhub_bjdzliu/wechat-auto-reply
Task AutomationTool Use#WeChat#微信#消息

According to AlphaMoat, as of 2026-10, wechat-auto-reply has 11,992 downloads and 15 stars — ranked by downloads #2,283 among 10,914 AI skills in this ranking, and #311 of 1,632 in AI Agent.

The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.

Downloads
12.0K
Stars
15
Overall download rank
#2,283
Top 21% overall · Top 20% in AI Agent
PlatformDownloadsStarsComments
ClawHub ↗6.3K9-
SkillHub ↗12.0K15—

Platforms count differently and update at different times.

What this skill does

It finds the contact, reads the chat through OCR, and has the model decide the reply; a confident answer is sent directly, otherwise you are asked first. It can also send a given message to a named contact, with recognition built on the macOS vision framework. Review the external Homebrew formula and installed script before use. The automation can read conversations and send messages; prefer confirmation mode, avoid sensitive chats, and verify the data-processing path before deployment.

Profile published 2026-10-27

What you can do with it

  • Answer a stream of routine enquiries
  • Send a notice to a named contact proactively

When to use it

  • When messages outpace manual replies
  • When replies must follow one script

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Reply to this contact and show me the draft first
Send a notice to this contact

Monthly Trend

Downloads12.0K
2.7K7.7K12.7K2026-03 · Downloads 3.4K2026-05 · Downloads 5.2K2026-06 · Downloads 5.5K2026-07 · Downloads 6.0K2026-08 · Downloads 6.3K2026-09 · Downloads 7.7K2026-10 · Downloads 12.0K26-0326-0926-10
Stars15
912152026-03 · Stars 92026-05 · Stars 152026-06 · Stars 152026-07 · Stars 152026-08 · Stars 152026-09 · Stars 152026-10 · Stars 1526-0326-0926-10

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-1012.0K—15
2026-097.7K—15
2026-086.3K+5.9%15
2026-076.0K+8.1%15
2026-065.5K+5.8%15
2026-055.2K—15
2026-033.4K—9

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

5.8 KB · ClawHub v1.0.1
---
name: wechat-auto-reply
description: 半自动回复微信联系人消息(置信度>85%自动发送,否则确认),或主动发送指定内容。使用方式:wechat-auto-reply "联系人名称" 或 wechat-auto-reply "联系人名称" "消息内容"
---

# WeChat Auto Reply Skill

半自动回复微信联系人消息(基于AI置信度智能判断),或主动发送指定内容。

## 🚀 安装
Show all (221 lines)

### 使用 Homebrew(推荐)

```bash
# 一行安装
brew install bjdzliu/openclaw/wechat-auto-reply

# 或者两步安装
brew tap bjdzliu/openclaw
brew install wechat-auto-reply
```

安装后会自动:
- 安装所有依赖(`cliclick`, `python@3`, `pyobjc`)
- 创建全局命令 `wechat-auto-reply`
- 设置 OpenClaw skill 链接到 `~/.openclaw/workspace/skills/wechat-auto-reply`

## 💡 使用方式

```bash
# OCR 半自动回复(查看聊天记录,智能判断回复内容)
# 置信度 > 85% 自动发送,否则弹窗确认
wechat-auto-reply "联系人名称"

# 主动发送(直接发送指定消息,不走 OCR)
wechat-auto-reply "联系人名称" "消息内容"
```

**示例:**
```bash
# 半自动回复模式
wechat-auto-reply "小李"      # 如果是"在吗"等高置信场景,自动发送
wechat-auto-reply "小王"      # 如果是问题类,会弹窗让你确认或修改

# 主动发送模式
wechat-auto-reply "小李" "什么时候下班"
wechat-auto-reply "小王" "今天行情怎么样"
```

## 功能描述

**两种模式:**
1. **半自动回复模式**:搜索联系人 → OCR 识别聊天内容 → AI 判断回复
   - 置信度 > 85% → 自动发送
   - 置信度 ≤ 85% → 弹窗确认(可修改回复内容)
2. **主动发送模式**:搜索联系人 → 直接发送指定消息

## 📂 文件位置

### Homebrew 安装后
- **Skill 目录**: `$(brew --prefix)/share/openclaw/skills/wechat-auto-reply`
- **用户链接**: `~/.openclaw/workspace/skills/wechat-auto-reply`
- **全局命令**: `$(brew --prefix)/bin/wechat-auto-reply`
- **配置文件**: `~/.openclaw/workspace/skills/wechat-auto-reply/wechat-dm.applescript`

### 查看安装路径
```bash
which wechat-auto-reply
ls -la ~/.openclaw/workspace/skills/wechat-auto-reply
```

## 环境准备

### 通过 Homebrew 安装(推荐)

所有依赖会自动安装,无需手动配置。

### 手动安装依赖

#### 依赖工具

| 工具 | 安装方式 | 用途 |
|------|----------|------|
| `cliclick` | `brew install cliclick` | 稳定的鼠标点击 |
| `screencapture` | macOS 内置 | 截图(可通过 `/usr/sbin/screencapture` 调用) |
| Vision Framework | macOS 10.15+ | OCR 文本识别 |

#### Python 依赖

```bash
pip3 install pyobjc
```

## 实现原理

### 1. 激活微信

```applescript
tell application "WeChat" to activate
```

### 2. 确保前台

```applescript
tell app "System Events"
  tell process "WeChat"
    set frontmost to true
  end tell
end tell
```

### 3. 搜索联系人

- 使用 `Cmd+F` 打开搜索
- 通过剪贴板粘贴联系人名称
- 按回车进入聊天

### 4. OCR 截图

使用 macOS Vision Framework 识别聊天内容:

```python
from Vision import VNRecognizeTextRequest, VNImageRequestHandler

theRequest.setRecognitionLanguages(["zh-Hans", "en-US"])
theRequest.setUsesLanguageCorrection(True)
```

### 5. 智能回复判断(带置信度)

根据聊天内容自动生成回复,每个回复都附带置信度评分:

| 场景 | 关键词 | 回复内容 | 置信度 |
|------|--------|----------|--------|
| 询问在线 | "在吗"、"忙吗" | "在的,什么事?" | 95% |
| 感谢回复 | "谢谢"、"感谢" | "不客气" | 95% |
| 确认信息 | "收到"+"好的" | "好的" | 90% |
| 投资讨论 | "投资"、"抄底"、"行情" | "不急,等稳一点" | 85% |
| 问题咨询 | "?"、"?" | "我看看,稍等" | 75% |
| 一般确认 | "好"、"OK" | "好的" | 80% |
| 时间相关 | "明天"、"几点" | "我确认一下,回头告诉你" | 70% |
| 默认回复 | 其他 | "收到" | 60% |

**置信度规则:**
- **≥ 85%**:直接自动发送(高置信度场景)
- **< 85%**:弹窗显示建议回复,需用户确认
  - 可选择"确认发送"直接发送
  - 可选择"修改回复"手动编辑内容
  - 可选择"取消"不发送

### 6. 发送消息

- 点击输入框获取焦点
- 粘贴回复内容
- 按回车发送

## 注意事项

- **输入框坐标**:默认 `{1000, 832}`,需根据实际屏幕调整
- **OCR 识别**:支持中文和英文,设置 `["zh-Hans", "en-US"]`
- **等待时间**:每次操作后建议等待 0.5-1s
- **剪贴板**:使用 AppleScript `set the clipboard` 比 `pbcopy` 更可靠
- **置信度阈值**:默认 85%,可在脚本中调整 `if confidence > 85` 这一行
- **确认弹窗**:低置信度时会显示完整聊天内容和建议回复,支持手动修改

## 自定义配置

### 修改输入框坐标

找到配置文件位置:
```bash
# Homebrew 安装
vim ~/.openclaw/workspace/skills/wechat-auto-reply/wechat-dm.applescript

# 或使用 brew 路径
vim $(brew --prefix)/share/openclaw/skills/wechat-auto-reply/wechat-dm.applescript
```

修改坐标:
```applescript
cliclick c:1000,832  # 修改为你的坐标
```

### 调整置信度阈值

编辑配置文件:
```applescript
if confidence > 85 then  # 修改为你需要的阈值(0-100)
  set autoSend to true
```

### 添加自定义回复规则

在智能回复判断部分添加:
```applescript
else if ocrResult contains "你的关键词" then
  set replyText to "你的回复内容"
  set confidence to 90  -- 设置置信度
```

## 更新与卸载

### 更新
```bash
brew upgrade wechat-auto-reply
```

### 卸载
```bash
brew uninstall wechat-auto-reply

# 可选:删除 tap
brew untap bjdzliu/openclaw
```

## 错误处理

- 微信未安装:提示安装微信
- 搜索无结果:提示联系人不存在
- OCR 失败:重试截图或使用备用方案

Popular in AI Agent

self-improving agentAI Agent

Records learnings, errors and corrections as Markdown files for later reuse and promotion into workspace memory.

↓ 1.6M★ 4.5Kpskoett
技能发现·Find SkillsAI Agent

Finds skills in local and remote catalogs from a plain-language request and recommends what to install.

↓ 1.6M★ 1.8K桂皮
Agent BrowserAI Agent

A browser-automation command line skill for AI agents.

↓ 1.2M★ 1.0KNicolas Kleiber
Self-Improving + Proactive AgentAI Agent

Turns corrections and self-review into tiered memory and promotes or archives it by use.

↓ 696.4K★ 1.6KIván
Proactive AgentAI Agent

A workspace setup guide for planning proactive follow-up, working memory and review routines for an AI agent.

↓ 579.3K★ 916halthelobster
Skill CreatorAI Agent

A guide to creating and updating effective Claude skills.

↓ 477.3K★ 485chindden
Skill VetterAI Agent

Reviews a third-party skill's source, permissions, and danger patterns against a checklist before it is installed.

↓ 445.2K★ 1.3Kspclaudehome
唐朝诗仙李白 · Ai Agent SkillAI Agent

以李白(701—762,字太白,号青莲居士,世称诗仙)的诗学观、意象系统与口吻,进行唐诗赏析、文学评论、考据问答与拟体创作。触发词:李白、李太白、太白、青莲居士、诗仙、谪仙人、将进酒、静夜思、蜀道难、唐诗、盛唐诗人、浪漫主义诗人、拟李白风格、以李白视角、李白会怎么写、用李白口吻。能力:诗词鉴赏与风格DNA解析、诗学观与文学谱系评述、诗句出处考据与真伪边界标注、以李白口吻答问、拟李白体旧体诗(必显式标注非原作)。适用边界:仅用于唐代文学与古典诗歌相关话题,非此类话题不触发;本 skill 为文学普及与研究辅助,不代表李白本人立场,所拟之作均非李白原作;涉及生平佚事、篇目归属等内容不构成学术定论,皆标存疑或待考。

↓ 435.8K★ 4user_ff4d9420

Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.