Operations 12 min read

WeCom CLI Launches with 12 Built‑In AI Skills for Direct Enterprise Chat Automation

The newly released wecom‑cli, an open‑source Rust‑based command‑line tool from the official WeCom team, provides twelve AI‑agent skills that let tools like Claude Code or Cursor manage contacts, todos, meetings, messages, schedules, documents, and smart sheets directly from the terminal, streamlining office automation and improving credential security.

Old Zhang's AI Learning
Old Zhang's AI Learning
Old Zhang's AI Learning
WeCom CLI Launches with 12 Built‑In AI Skills for Direct Enterprise Chat Automation

Overview

wecom-cli is an open‑source command‑line interface written in Rust that enables both humans and AI agents to operate Enterprise WeChat from a terminal. It covers seven core business categories: contact lookup, todo management, meeting scheduling, message handling, schedule CRUD, document creation/editing, and smart‑sheet management. The tool ships with twelve built‑in AI Agent Skills that can be invoked directly by agents such as Claude Code or Cursor without additional adapters.

Key Advantages

Human‑friendly : The CLI abstracts raw API calls. Example: wecom-cli todo create_todo '{"content":"写周报"}' creates a todo without handling token refresh.

AI‑friendly : Built‑in Skills are discoverable and callable by AI agents, providing a seamless integration point.

Credential security : wecom-cli init stores encrypted Bot ID and Secret locally, avoiding accidental credential leaks.

Installation

# Install the CLI
npm install -g @wecom/cli

# Install the Agent Skills (required for AI usage)
npx skills add WeComTeam/wecom-cli -y -g

# Initialize credentials (prompts for Bot ID and Secret)
wecom-cli init
# Encrypted credentials are saved to ~/.config/wecom/bot.enc

Scenario 1: AI‑driven Meeting Scheduling

Pain point: manually checking each participant’s calendar and sending invitations.

# Check availability of participants
wecom-cli schedule check_availability '{"check_user_list": ["zhangsan", "lisi"], "start_time": "2026-03-30 09:00:00", "end_time": "2026-03-30 18:00:00"}'

# Create the meeting once a free slot is found
wecom-cli meeting create_meeting '{"title": "Q2规划评审", "meeting_start_datetime": "2026-03-30 14:00", "meeting_duration": 3600, "invitees": {"userid": ["zhangsan", "lisi"]}}'

Scenario 2: AI‑powered Todo Management

Pain point: todos are scattered across tools and often forgotten.

# Create a todo with a reminder
wecom-cli todo create_todo '{"content": "完成Q2规划文档", "remind_time": "2026-06-01 09:00:00"}'

# List todos
wecom-cli todo get_todo_list '{}'

# Mark a todo as done
wecom-cli todo update_todo '{"todo_id": "TODO_ID", "todo_status": 0}'

Scenario 3: Automated Message Handling

Pain point: important messages are buried in chat history; some messages need to be sent on schedule.

# Pull recent chat list
wecom-cli msg get_msg_chat_list '{"begin_time": "2026-03-23 00:00:00", "end_time": "2026-03-30 23:59:59"}'

# Retrieve messages with a specific user
wecom-cli msg get_message '{"chat_type": 1, "chatid": "zhangsan", "begin_time": "2026-03-29 09:00:00", "end_time": "2026-03-29 18:00:00"}'

# Send a text message
wecom-cli msg send_message '{"chat_type": 1, "chatid": "zhangsan", "msgtype": "text", "text": {"content": "明天会议别忘了哈"}}'

Scenario 4: Intelligent Schedule Management

Pain point: calendar conflicts and missed events require manual oversight.

# List today’s schedule
wecom-cli schedule get_schedule_list_by_range '{"start_time": "2026-03-30 00:00:00", "end_time": "2026-03-30 23:59:59"}'

# Create a meeting with a 15‑minute reminder
wecom-cli schedule create_schedule '{"schedule": {"start_time": "2026-03-30 14:00:00", "end_time": "2026-03-30 15:00:00", "summary": "产品评审会", "attendees": [{"userid": "zhangsan"}], "reminders": {"is_remind": 1, "remind_before_event_secs": 900, "timezone": 8}}}'

Scenario 5: Document and Smart‑Sheet Automation

Pain point: formatting weekly/monthly reports and aggregating data is labor‑intensive.

# Create a document
wecom-cli doc create_doc '{"doc_type": 3, "doc_name": "项目周报"}'

# Write Markdown content
wecom-cli doc edit_doc_content '{"docid": "DOC_ID", "content": "# 项目周报

## 本周完成
- xxx

## 下周计划
- xxx", "content_type": 1}'

# Create a smart‑sheet
wecom-cli doc create_doc '{"doc_type": 10, "doc_name": "任务跟踪表"}'

# Add a record to the sheet
wecom-cli doc smartsheet_add_records '{"docid": "DOC_ID", "sheet_id": "SHEET_ID", "records": [{"values": {"任务名": [{"type": "text", "text": "完成需求文档"}]}}]}'

Scenario 6: Contact Lookup

wecom-cli contact get_userlist '{}'

Skills Overview

The twelve built‑in Skills map to CLI commands, for example: wecomcli-lookup-contact – contact lookup by name/alias wecomcli-get-todo-list – list todos with filters wecomcli-edit-todo – create, update, delete, change status wecomcli-create-meeting – create a meeting wecomcli-edit-meeting – cancel or update meeting participants wecomcli-get-meeting – query meeting list/details wecomcli-get-msg – list chats, fetch messages, download media, send text wecomcli-manage-schedule – schedule CRUD, participant management, availability query wecomcli-manage-doc – document create/read/edit wecomcli-manage-smartsheet-schema – smart‑sheet sub‑table and field management wecomcli-manage-smartsheet-data – smart‑sheet record CRUD

Repository

GitHub: https://github.com/WecomTeam/wecom-cli

Skills directory: https://github.com/WecomTeam/wecom-cli/tree/main/skills

CLIAutomationRustAI AgentWeComenterprise-chat
Old Zhang's AI Learning
Written by

Old Zhang's AI Learning

AI practitioner specializing in large-model evaluation and on-premise deployment, agents, AI programming, Vibe Coding, general AI, and broader tech trends, with daily original technical articles.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.