企业微信消息技能。提供会话列表查询、消息记录拉取(支持文本/图片/文件/语音/视频)、多媒体文件获取和文本消息发送能力。当用户需要"查看消息"、"看聊天记录"、"发消息给某人"、"最近有什么消息"、"给群里发消息"、"看看发了什么图片/文件"时触发。
The `wecomcli-msg` skill is designed to facilitate interaction with the Enterprise WeChat messaging system through a command-line interface. It addresses the need for efficient message management by allowing users to query chat lists, retrieve message histories, and send messages directly without navigating the standard graphical interface. This skill streamlines communication workflows for individuals and teams who require programmatic access to their conversations and historical chat data, providing a reliable solution for message retrieval and management within an enterprise environment.
Key features of the skill include the ability to fetch chat lists within specified time ranges, retrieve detailed message records for both individual and group chats, and download multimedia content such as images, files, voice notes, and videos. The skill supports sending text messages to both single recipients and group chats. It integrates with the `wecom-cli` tool and leverages contact information to map user IDs to readable names, ensuring clarity when displaying messages. Additional safeguards are built into the workflow, such as verifying file types, correcting extensions, and actively informing users of download locations, followed by optional cleanup of temporary files.
This skill is particularly useful for corporate users, team leads, or support staff who need to track, archive, or respond to messages programmatically. Common use cases include reviewing recent conversations, monitoring group activity, sending scheduled or automated updates, and downloading attachments for reporting or auditing purposes. By automating these tasks, `wecomcli-msg` enhances productivity and ensures consistent access to important communication records within an enterprise setting.
Use the `get_message` interface with the appropriate `chatid` and time range. If the chat ID is unknown, the skill can help identify it via the chat list using `get_msg_chat_list`.
Yes, the `get_msg_media` interface allows you to download multimedia content. The skill ensures files have the correct extensions and provides the local path for each file. Users are also prompted whether to delete temporary files after download.
Messages can only be retrieved within the last 7 days. Time parameters must follow the `YYYY-MM-DD HH:mm:ss` format, and relative ranges like 'yesterday' or 'last three days' are supported.
The skill requires `wecom-cli` to function. It also interacts with the `wecomcli-contact` skill to resolve user IDs to names for clearer message display.
Yes, the `send_message` interface supports sending text messages to single users (`chat_type=1`) and groups (`chat_type=2`).
Quick Setup:
.claude/skills/Repository
wecomteam/wecom-cli