wechat-message — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited wechat-message (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
此技能通过平台脚本实现微信消息的自动化发送:macOS 使用 AppleScript + cliclick,Windows 使用 PowerShell。按当前操作系统选用对应脚本即可。
osascript scripts/wechat_automation_script.applescript "<联系人名称>" "<消息内容>" "[图片路径]"powershell -ExecutionPolicy Bypass -File scripts/wechat_automation_script.ps1 "<联系人名称>" "<消息内容>" "[图片路径]"| 参数 | 必填 | 说明 |
|---|---|---|
| 联系人名称 | 是 | 微信联系人名称或群名称,需完全匹配 |
| 消息内容 | 否* | 要发送的消息文本;与图片至少填一项 |
| 图片路径/URL | 否* | 本地图片路径或 http(s):// 图片地址;与消息至少填一项 |
\* 消息与图片可同时提供:先发送文本,再发送图片。
macOS:
osascript scripts/wechat_automation_script.applescript "张三" "你好,今天有空吗?"
osascript scripts/wechat_automation_script.applescript "工作群" "大家好!"
osascript scripts/wechat_automation_script.applescript "张三" "" "/Users/me/screenshot.png"
osascript scripts/wechat_automation_script.applescript "张三" "请看截图" "/Users/me/screenshot.png"
osascript scripts/wechat_automation_script.applescript "张三" "" "https://example.com/image.png"Windows:
powershell -ExecutionPolicy Bypass -File scripts/wechat_automation_script.ps1 "张三" "你好,今天有空吗?"
powershell -ExecutionPolicy Bypass -File scripts/wechat_automation_script.ps1 "工作群" "大家好!"
powershell -ExecutionPolicy Bypass -File scripts/wechat_automation_script.ps1 "张三" "" "C:\Users\me\screenshot.png"两平台流程一致,仅快捷键不同:
Cmd+F / Windows:Ctrl+FCmd+H 隐藏窗口 / Windows:最小化窗口-ExecutionPolicy Bypass;若在微信内修改过「搜索」快捷键,需在 .ps1 中把 ^f 改为对应快捷键#### 1. 安装 cliclick
使用 Homebrew 安装:
brew install cliclick#### 2. 授予辅助功能权限
无需额外权限;首次运行若受限,使用 -ExecutionPolicy Bypass 执行脚本即可。
| 问题 | 可能原因 | 解决方案 |
|---|---|---|
| 消息未发送 | 焦点未在输入框 | 执行期间勿切换窗口,可重试 |
| 不能获得 window 1 / 无效索引 | 微信被 Cmd+H 隐藏或最小化 | 脚本会先 activate,再 open -a WeChat 恢复一次;仍失败请手动打开微信 |
| 搜索不到联系人 | 名称不匹配 | 确认联系人/群名与微信中完全一致 |
| macOS 脚本无反应 | 未给辅助功能权限 | 在「辅助功能」中勾选终端等应用 |
| macOS 鼠标点击无效 | cliclick 未安装或权限不足 | brew install cliclick 并授予辅助功能权限 |
| Windows 无法执行脚本 | 执行策略限制 | 使用 -ExecutionPolicy Bypass |
| 发送中文乱码 | 编码问题 | 终端使用 UTF-8 编码 |
wechat-message/
├── SKILL.md # 本技能说明
├── README.md # 使用说明
├── examples/
│ └── sample.md # 使用示例
└── scripts/
├── wechat_automation_script.applescript # macOS 脚本
└── wechat_automation_script.ps1 # Windows 脚本~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.