Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

wecom-gui-message

v3.0.1

通过 macOS GUI 自动化给企业微信(WeCom)联系人或群发消息。使用 peekaboo + screencapture + Swift Vision OCR + cliclick 实现全流程自动化。适用于需要通过企业微信桌面端发送消息的场景,如推送日报、通知等。触发词:企微发消息、企业微信发消息、wec...

0· 76·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for jacky-wzj/wecom-gui-message.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "wecom-gui-message" (jacky-wzj/wecom-gui-message) from ClawHub.
Skill page: https://clawhub.ai/jacky-wzj/wecom-gui-message
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install wecom-gui-message

ClawHub CLI

Package manager switcher

npx clawhub@latest install wecom-gui-message
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (WeCom GUI message sender) matches the code and instructions: the Python driver + Swift OCR + use of cliclick/peekaboo/screencapture implement exactly that functionality. However, the registry metadata lists no required binaries/env vars while SKILL.md and the code clearly require external tools (peekaboo, cliclick, swift). This metadata omission is an inconsistency and should be corrected but does not by itself indicate malicious intent.
Instruction Scope
SKILL.md and scripts restrict actions to local macOS GUI automation: activating the WeCom app, window resizing, window screenshots, local OCR, clicking and pasting into the app. The instructions do not read unrelated files or environment variables, nor do they call external network endpoints. Important privacy note: the skill takes screenshots and runs OCR on them (including QR codes and any visible text), so it can capture any visible sensitive information on the screen while running.
Install Mechanism
This is an instruction-only skill with no install spec or remote downloads; that reduces risk because no additional code is being fetched during install. The runtime does call local tools (swift, peekaboo, cliclick, screencapture), so those must be installed separately from trusted sources.
Credentials
The skill requests no environment variables or credentials and only needs system permissions (Screen Recording and Accessibility) appropriate to GUI automation. The lack of credentials is proportional to the stated purpose.
Persistence & Privilege
always:false (not force-enabled) and default model invocation settings are used. The skill does not request persistent system-wide changes nor attempt to modify other skills' configs. It will create temporary files under /tmp/wecom-gui; this is expected for its operation.
Assessment
This skill appears internally consistent with its stated purpose, but consider the following before installing: - Security/privacy: It requires macOS Screen Recording and Accessibility permissions so it can read your screen and control the UI — while functioning it will capture screenshots (including any visible sensitive information) and store them under /tmp/wecom-gui. Only run it when you are comfortable with that and avoid having sensitive windows visible. - Metadata mismatch: The SKILL.md and code require helper tools (peekaboo, cliclick, swift) but the declared registry requirements list none. Verify you install these tools from trusted sources and that the author updates the metadata. - Review binaries: peekaboo and cliclick will be executing UI actions; prefer official releases or package manager installations and inspect their sources if possible. - Least privilege: Run in a controlled environment (test account or VM) first, and do not grant permissions unless you need the automation. If you plan to allow autonomous invocation, be aware an agent with this skill can control the WeCom desktop UI while it runs.

Like a lobster shell, security has layers — review code before you run it.

latestvk97d8nj8fskgzngnv7e4r3sfen85f515
76downloads
0stars
2versions
Updated 3d ago
v3.0.1
MIT-0

企业微信 GUI 自动化发消息

通过 macOS 桌面 GUI 自动化,在企业微信中找到联系人/群聊并发送消息。

前置条件

  • macOS(arm64, Retina 2x)
  • 企业微信桌面客户端已安装(com.tencent.WeWorkMac
  • 已安装:peekaboo, cliclick, swift
  • 系统已授权:Screen Recording + Accessibility

快速使用

python3 scripts/send_message.py "联系人或群名" "消息内容"
python3 scripts/send_message.py "XXX" "今日AI日报\nhttps://example.com" --wait-login
参数说明
--wait-login需登录时自动轮询等待扫码
--timeout N登录等待超时秒数(默认 120)
Exit Code含义
0发送成功
1发送失败
2需要登录(仅非 --wait-login)

架构与核心流程

激活企微 → 调整窗口 → 登录检测 → 等待弹窗消失 → 消息列表OCR查找 → 点击目标 → 关闭侧面板 → 点击输入框 → 粘贴 → 回车发送 → 验证

关键经验(4/24 实测踩坑总结)

1. 截图策略:窗口截图 > 全屏截图

# ✅ 正确:用 screencapture -l <window_id> 截取企微窗口
screencapture -x -l 7741 /tmp/capture.png

# ❌ 错误:全屏截图在企微非前置时 OCR 返回 0 结果
screencapture -x /tmp/capture.png

原因screencapture -x 全屏截图可能截到桌面/其他窗口,OCR 结果为空。窗口截图始终只截企微内容。

2. 坐标换算:窗口坐标 ≠ 屏幕坐标

# 窗口截图 OCR 返回窗口内坐标
# cliclick 需要屏幕坐标
# 换算公式:
screen_x = window_position_x + ocr_pixel_x / 2
screen_y = window_position_y + ocr_pixel_y / 2

# 获取窗口位置:
peekaboo window list --app "com.tencent.WeWorkMac" --json
# → bounds: {x: 0, y: 33, width: 1400, height: 883}

忘记加偏移 = 点到错误位置,这是最常见的 bug!

3. 搜索方式:消息列表 OCR > Cmd+F

  • ❌ Cmd+F 全局搜索对外部微信联系人返回"无搜索结果"
  • ✅ 切到「消息」Tab,在消息列表中 OCR 直接找目标名并点击
  • 前提:目标必须在最近消息列表中(先手动发一条建立聊天记录)

4. 输入框定位:坐标估算

  • 企微输入框无 placeholder 文字,OCR 找不到
  • 输入框位置 = 窗口底部约 93% 处(工具栏 emoji/文件图标下方)
  • 粘贴前先 Cmd+A → Delete 清空残留内容

5. 右侧面板处理

  • 企微可能弹出"智能服务总结 AI+"等侧边面板
  • 面板会挤压聊天区域、遮挡输入框
  • 发消息前检测并按 Escape 关闭

6. 系统通知弹窗

  • 首次启动弹出"App后台活动"和"通知"权限弹窗
  • 不要点击弹窗按钮(会打开系统设置遮挡企微)
  • 点击企微窗口区域让弹窗自动消失

7. 中文输入

只用 peekaboo paste --text --app bundleId,不用 cliclick 打字。

8. bundleId

始终使用 com.tencent.WeWorkMac

工具链

工具用途
peekaboopaste 中文、hotkey、press、window focus/list
screencapture -l窗口截图(必须用 -l 指定窗口)
Swift Vision OCR文字识别 + 像素坐标(scripts/ocr_screen.swift
cliclick屏幕坐标点击
osascript窗口管理、App 激活/窗口调整

Comments

Loading comments...