Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cloudsen avatar

Wechat Message Sender

  • 581 installs
  • Updated July 24, 2026
  • cloudsen/eliteforge-skills

wechat-message-sender is a Claude Code skill with an embedded Swift script that sends text messages to named WeChat contacts on macOS desktop with dry-run and exact-match safety checks.

About

wechat-message-sender is a macOS automation skill that drives the WeChat desktop client to send text messages to a specified contact from Claude Code, Cursor, or Codex. The bundled Swift script uses AppKit and Accessibility (AXUIElement) APIs to locate the search field, session table, and message pane, stopping if the contact name is not an exact match to prevent mis-sent messages. wechat-message-sender supports dry-run mode, configurable timeouts, and requires macOS Accessibility permissions plus an installed WeChat desktop app. Developers reach for wechat-message-sender when agents must deliver operational alerts or scripted texts to WeChat contacts without manual UI repetition, accepting the platform constraint that automation targets macOS WeChat only.

  • Automates macOS WeChat desktop client via Accessibility API
  • Precise contact matching with safety stop on ambiguity
  • Dry-run mode to preview before sending
  • Built-in timeout and UI structure validation
  • Returns clear localized error messages for permission or UI issues

Wechat Message Sender by the numbers

  • 581 all-time installs (skills.sh)
  • Ranked #389 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cloudsen/eliteforge-skills --skill wechat-message-sender

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs581
Security audit2 / 3 scanners passed
Last updatedJuly 24, 2026
Repositorycloudsen/eliteforge-skills

How do you automate WeChat desktop messages on macOS?

Safely send text messages to specific WeChat contacts directly from Claude, Cursor or Codex without risking misfires.

Who is it for?

macOS developers using Claude, Cursor, or Codex who need guarded WeChat desktop text automation with exact contact matching.

Skip if: Windows or Linux WeChat automation or bulk messaging without explicit contact verification safeguards.

When should I use this skill?

User asks to send a WeChat message to a named contact on macOS with safety if the contact is not found.

What you get

Delivered WeChat text message, dry-run log, or safe abort when contact match is ambiguous.

  • sent WeChat message
  • dry-run confirmation log

Files

SKILL.mdMarkdownGitHub ↗

WeChat Message Sender

目标

调用 scripts/send_wechat_message.swift,在 macOS 微信桌面版里给指定联系人发送一段纯文本。

必填参数

  • contact:联系人显示名,必须与微信会话标题精确一致。
  • message:要发送的纯文本内容。

前置条件

  • 已安装微信桌面版。
  • 当前终端或 Codex 已授予 macOS 辅助功能权限。
  • 只支持文本消息,不支持图片、文件、卡片。

工作流

1. 校验 contactmessage 非空。 2. 运行脚本:

  • swift scripts/send_wechat_message.swift --contact "<contact>" --message "<message>"

3. 脚本会自动:

  • 打开或激活微信。
  • 聚焦左侧搜索框并搜索联系人。
  • 在结果列表里查找精确匹配项。
  • 打开会话后再次校验标题完全等于 contact
  • 校验通过后发送消息。

调试

  • 只验证定位,不真正发送:
  • swift scripts/send_wechat_message.swift --contact "<contact>" --message "<message>" --dry-run

安全规则

  • 只接受精确标题匹配,不做模糊猜测。
  • 找不到联系人、权限不足、窗口结构异常时,直接报错并停止。
  • 如果脚本报结构错误,先确认微信已升级到最新版本,并重新授权辅助功能。

Related skills

How it compares

Pick wechat-message-sender for guarded macOS WeChat desktop UI automation; use official WeChat APIs or mobile SDKs for server-side or cross-platform messaging.

FAQ

What happens if the WeChat contact is not found?

wechat-message-sender stops without sending when the contact name is not an exact match, preventing misdirected messages—a core safety behavior in the default agent prompt.

Which platforms does wechat-message-sender support?

wechat-message-sender targets macOS WeChat desktop via a Swift script using AppKit and Accessibility APIs, requiring Accessibility permissions and an installed WeChat client.

Is Wechat Message Sender safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.