ai-dvps/comate/send-wecom-msg
Claude Code and agent skill by ai-dvps/comate
- community
Checking that the SKILL.md file is still in the repository.
Send a WeCom message to a user via the wecom CLI. Use when the user wants to send a WeCom message, notify someone, or communicate via WeCom.
Install
npx vskill@latest install ai-dvps/comate/send-wecom-msgSKILL.md
<objective> Send WeCom messages to any user using the wecom send CLI command (@webank/wecom). Automatically detects structured content and uses markdown formatting when appropriate. Helps draft messages with formatting guidance before sending. </objective>
<quick_start> Send a message to a user:
Send a markdown message:
If wecom is not in PATH, use npx wecom or the full path from WECOM_CLI_PATH. </quick_start>
<workflow>
- Verify CLI version: Before any send operation, check the installed CLI version:
``bash wecom --version ` Expected: 1.2.0 or higher. If the version is lower, advise the user to update: `bash npm install -g @webank/wecom@latest ` If wecom is not found, check npx wecom --version or ${WECOM_CLI_PATH} --version. If the CLI is not installed at all, advise the user to install it: `bash npm install -g @webank/wecom ``
- Determine intent: Is the user asking to send immediately or draft first?
- Extract recipient: Identify the target user ID from the user's request
- Build the message:
- If the user provides a message, use it as-is
- If drafting, help format the message and confirm before sending
- Detect markdown: If the message contains any of these patterns, use
--msg-type markdown:
**bold**,*italic*,~~strikethrough~~- `
codeor`code blocks`` - list itemsor1. numbered lists[links](url)> quotes# headings- Tables with
|separators
- Get session ID: Use
${COMATE_SESSION_ID}for the current session - Execute the command:
``bash wecom send --to-user <USERID> --message "<MESSAGE>" [--msg-type markdown] --session-id ${COMATE_SESSION_ID} ` If wecom` is not available in PATH, try:
npx wecom send ...${WECOM_CLI_PATH} send ...
- Report result: Show the command executed and the outcome
</workflow>
<examples> <example number="1"> <input>Send a message to ZhangSan saying the deployment is complete</input> <output>
</output> </example>
<example number="2"> <input>Notify LiSi that the build failed with error logs</input> <output> Draft message (auto-detected markdown):
TypeError: Cannot read property 'id' of undefined at processData (src/utils.ts:42)
Send with:
</output> </example>
<example number="3"> <input>Send a greeting to WangWu</input> <output>
</output> </example> </examples>
<anti_patterns> <pitfall name="guessing_recipient"> Never guess a user ID. If the recipient is unclear, ask: "Who should receive this message? Provide the WeCom user ID." </pitfall>
<pitfall name="missing_quotes"> Always wrap the message in double quotes. Unquoted messages break when the shell interprets special characters. </pitfall>
<pitfall name="ignoring_exit_code"> The wecom CLI returns specific exit codes:
0: Success1: Invalid arguments or context file error2: No WeCom bot context found3: HTTP request failed
Report the actual exit code and meaning to the user. </pitfall> </anti_patterns>
<success_criteria>
- Recipient is specified via
--to-user - Message is properly quoted for shell execution
- Markdown is auto-detected when appropriate
- Session ID is passed via
--session-id - The actual CLI command is shown before or during execution
- Results (success or error) are reported clearly
</success_criteria>
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wecom/.claude/skills/send-wecom-msg/SKILL.md
Popularity
- Repository stars
- 94
- Repository forks
- 12
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ai-dvps/comate/send-wecom-msg)