WeCom Message Push
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_6976792a/wecom-send-message.
About this skill
Problem
In terminal-based agent environments such as Claude Code, engineers often need to push build results, release status, or alerts to WeCom without manually logging into the admin console, copying user IDs, or scattering corporate credentials across project directories. wecom-send-message addresses a narrow, practical problem: expose common WeCom API actions as Agent-callable commands, including user lookup, message sending, group-send preview, and audit logs.
How It Works
The skill drives a local Python tool, wecom_client.py, to call the WeCom API. During setup, it first runs check, then guides you to configure corp-id, agent-id, and secret, and finally uses verify to confirm connectivity. Credentials are kept in a skill-private directory by default, reducing the risk of reading the wrong .env file from the current workspace.
The normal workflow usually looks like this:
- Find recipients: supports search-name, search-mobile, and search-email; user-info can inspect user details.
- Send messages: supports send-text, send-markdown, and send-card; card messages can include a jump link.
- Handle group sends: dept-list and dept-users help identify the target scope; multiple recipients are separated by |, while @all requires a preview first and an explicit --yes confirmation before sending.
- Track delivery: real sends are appended to .state/message_audit.json, and history can list recent records.
Boundaries and Caveats
It is suitable for trusted terminal workflows where WeCom notifications are needed, but it is not a replacement for a formal messaging platform. You need valid WeCom app credentials, appropriate app visibility, contact permissions, and network access to the WeCom API. Error codes such as 60020, 60011, or 40014 usually point to invisible recipients, missing contact permissions, or expired access tokens. Be careful with group sends and @all: the default preview is not a confirmation to send, and explicit confirmation is required before the message goes out.
Use Cases
- After release, send the on-call owner a Markdown notification with the build link.
- When an alert fires, look up the recipient by name and send a card message with a handling link.
- Before launch, batch-send release notes to department members and keep a send audit trail.
- When notifications miss, review recent send logs and verify the recipient UserID.
Best For
- DevOps engineers handling release notifications who need to push build results to assigned owners.
- On-call SRE engineers handling alerts who need to find recipients by name and send card messages with links.
- Operations engineers managing project group notices who need to send confirmed previews to department members.
- Platform engineers troubleshooting missed notices who need to inspect audit logs and verify recipient details.
Related Skills
Guides WeChat merchant payment integration by routing JSAPI, Mini Program, APP, H5, Native, and payment-code scenarios to the right product.
AI agent tool for generating HTML proposals for client visit business scenarios, featuring deep research and dynamic mainline mapping.
Bid Proposal Verification Tool is used to verify the consistency between bid proposals and tender documents, checking table of contents, page numbers, attachments, and seals, based on Shibot Technology's bid data API.
An AI engine built on extensive bidding data to precisely search for tender projects and potential clients using natural language or structured criteria.