← 返回 Skills 市场
Wechat Automation Api
作者
niansen3-svg
· GitHub ↗
· v1.0.11
· MIT-0
156
总下载
0
收藏
1
当前安装
12
版本数
在 OpenClaw 中安装
/install wechat-automation-api
功能描述
微信发信能力:控制本机发送微信文本或图片。触发词:给[某人]发微信、通知[某人]、把这个用微信发给[某人]、用微信发个图片
安全使用建议
What to consider before installing or running this skill:
- If you only want the Skill behavior described in SKILL.md, only invoke the CLI entrypoint: `python scripts/skill_cli.py --to "联系人" --content "文本"`. That call uses WeChatController and operates locally (UI automation + clipboard). Avoid running scripts/app.py, run.bat, or monitor.py unless you explicitly want the HTTP API and background monitoring.
- The repository contains an HTTP server (scripts/app.py) which expects a config.json token and can spawn a persistent monitor process that will send POSTs to an external WPush service (https://api.wpush.cn). Do not run the HTTP service unless you understand and control the config.json token and the network exposure.
- Image sending (sendpic) will download arbitrary URLs and cache them in the system temp directory. If you accept sendpic actions, be aware the process will make outbound HTTP requests and write files to the temp cache.
- The package requires native Windows automation libraries (uiautomation, pywin32, pyautogui). Install dependencies in a virtual environment, not system-wide, and preferably in an isolated/test machine before trusting it on a production machine or your primary account.
- There are example tokens and a sample token in README_部署完成.md — treat those as examples. If you run the HTTP service, change the token in config.json to a strong secret and keep config.json secure.
- If you are risk-averse: run the CLI in a disposable VM or sandboxed Windows environment, or remove/rename scripts/app.py and scripts/monitor.py before installation to prevent accidental background service startup.
- Operational risks: automating WeChat UI can cause account actions (rate-limiting or detection by the platform). Ensure you have permission to automate the account and consider throttling and human oversight.
Summary recommendation: The CLI skill itself is coherent and usable for the stated purpose, but the repository contains additional persistent/networked components (HTTP API + monitor) that are not required by SKILL.md — treat those as optional features and do not enable them unless you explicitly intend to run a local service and accept outbound network behavior.
功能分析
Type: OpenClaw Skill
Name: wechat-automation-api
Version: 1.0.11
This skill bundle provides WeChat automation via high-risk UI control libraries (uiautomation, pyautogui) and a local Flask-based API in scripts/app.py. While these capabilities are aligned with the stated purpose, SKILL.md contains instructions for the AI agent to 'execute brainlessly' and bypass its own visual analysis, which significantly increases the risk of prompt-injection attacks. Additionally, the tool downloads files from arbitrary URLs in scripts/wechat_controller.py and integrates with an external notification service (api.wpush.cn) in scripts/monitor.py, creating a broad attack surface without clear evidence of intentional malice.
能力评估
Purpose & Capability
The skill's declared purpose (a synchronous, one-shot CLI to control a local WeChat client) matches files like scripts/skill_cli.py and wechat_controller.py. However the repo also contains a full Flask HTTP API (scripts/app.py), a background monitor (scripts/monitor.py) that posts to an external WPush API, queue management, and run.bat/startup docs. Those extra capabilities (HTTP service, persistent monitor, token-based API) are not required by the SKILL.md and represent scope creep — they increase the attack surface and the potential for unexpected network activity.
Instruction Scope
SKILL.md instructs the agent to call `python scripts/skill_cli.py --to ... --content ...` and to interpret stdout ('发送成功'/'发送失败'). That runtime instruction is narrowly scoped and is consistent with a synchronous skill. The risk comes from other files in the package (app.py, monitor.py, message_queue.py) which SKILL.md does not instruct the agent to run but could be run by a user or operator. The SKILL.md explicitly tells the agent not to attempt visual UI analysis and to just execute the CLI, which is good practice.
Install Mechanism
There is no install spec (instruction-only from platform perspective), which lowers supply-chain risk. The repository includes a requirements.txt with many packages (Flask, uiautomation, pyautogui, pywin32, requests, Pillow, etc.). Installing these dependencies (e.g., `pip install -r requirements.txt`) will pull in networked packages and native bindings; installing should be done in an isolated virtualenv. No downloads from unknown personal servers are present in the manifest; the code downloads images and posts to external APIs at runtime (see details).
Credentials
The skill declares no required env vars and SKILL.md usage of skill_cli does not require credentials. However the repository supports running a local HTTP API that requires a token stored in config.json (docs and README mention a token and an example token is present in README_部署完成.md). The monitor posts to https://api.wpush.cn using an apikey from config.json. Those config/credential vectors are not declared in the SKILL.md and are unrelated to the one-shot CLI usage, so they increase risk if the HTTP service or monitor are started unintentionally.
Persistence & Privilege
The skill's published flags do not request 'always: true'. The SKILL.md states the Skill is synchronous and non-resident. Nevertheless the repository provides code to run a persistent HTTP service and a monitor process which, if started (via app.py/run.bat), will remain running and perform network operations (including spawning monitor.py via subprocess.Popen). That persistent behavior is optional in the repo but is not part of the SKILL.md contract — be careful not to start the background service unless you intend to run it.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install wechat-automation-api - 安装完成后,直接呼叫该 Skill 的名称或使用
/wechat-automation-api触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.11
No changes detected in this version.
- Version number updated to 1.0.11.
- No file or documentation changes found.
v1.0.10
Version 1.0.10 of wechat-automation-api
- No file changes detected in this version.
- Functionality and documentation remain the same as the previous release.
v1.0.9
Version 1.0.9 of wechat-automation-api
- No file changes detected in this release.
- No new features, bug fixes, or documentation updates were introduced.
v1.0.8
Version 1.0.8 of wechat-automation-api
- No file changes detected in this version.
- No visible updates to documentation or functionality.
v1.0.7
Version 1.0.7 of wechat-automation-api
- No file changes detected in this release.
- Functionality and documentation remain the same as previous version.
v1.0.6
Version 1.0.6 of "wechat-automation-api"
- No file changes detected in this version.
- Functionality and documentation remain unchanged.
v1.0.5
Daily auto-update 2026-04-10
v1.0.4
No changes detected in this version.
- Version 1.0.4 contains no updates or modifications from the previous release.
v1.0.3
Version 1.0.3 of wechat-automation-api
- No file changes detected in this version.
- Functionality and documentation remain the same as the previous version.
v1.0.2
Version 1.0.2
- No file changes detected in this version.
- Functionality, usage, and documentation remain unchanged.
v1.0.1
No changes detected in this version (1.0.1).
- No file or documentation changes since the previous release.
v1.0.0
- Initial release of WeChat automation skill.
- Enables automated sending of WeChat text or image messages from Windows desktop to specified users or groups.
- Triggered by natural language requests (e.g., "给[某人]发微信").
- Simple command-line interface for both text and image messages.
- Requires exact match of recipient names to ensure correct delivery.
元数据
常见问题
Wechat Automation Api 是什么?
微信发信能力:控制本机发送微信文本或图片。触发词:给[某人]发微信、通知[某人]、把这个用微信发给[某人]、用微信发个图片. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 156 次。
如何安装 Wechat Automation Api?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-automation-api」即可一键安装,无需额外配置。
Wechat Automation Api 是免费的吗?
是的,Wechat Automation Api 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Wechat Automation Api 支持哪些平台?
Wechat Automation Api 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Wechat Automation Api?
由 niansen3-svg(@niansen3-svg)开发并维护,当前版本 v1.0.11。
推荐 Skills