wecom-cli is a command-line tool for operating WeCom, covering messaging, email, documents, spreadsheets, tasks, calendars, meetings, cloud files, and contact searches. It is intended for people and AI agents that need to perform WeCom workplace operations from a terminal. Its catalogue entries provide skills and instructions for using the tool.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add WecomTeam/wecom-cli --skill wecomcli-sheetgit clone --depth 1 https://github.com/WecomTeam/wecom-cliWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wecomteam/wecom-cli/wecomcli-sheet)<a href="https://agentmods.dev/skills/wecomteam/wecom-cli/wecomcli-sheet"><img src="https://agentmods.dev/badge/skills/wecomteam/wecom-cli/wecomcli-sheet/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wecomteam/wecom-cli/wecomcli-sheet"><img src="https://agentmods.dev/badge/skills/wecomteam/wecom-cli/wecomcli-sheet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk warn
- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00130 | $0.01947 |
| Opus 5.5 | $0.00052 | $0.00779 |
| Sonnet 5.5 | $0.00026 | $0.00389 |
| Haiku 4.5 | $0.00013 | $0.00195 |
Grade A, and why
wecomcli-sheet scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- wecomcli-sheet — 98% identical, 71 lines differ
How it starts
The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.
企业微信在线表格管理
执行任何
wecom-cli命令前,必须先读取并完成wecomcli-shared技能的公共前置检查。
资源型 skill,负责在线表格(sheet)的新建、导入与内容读写及子表管理。
适用范围
适用
- 新建 / 导入企微在线表格
- 读取 / 修改 / 追加在线表格内容
- 添加 / 删除在线表格子表
不适用
- 搜索文档 / 修改文档权限 / 重命名 / 加成员 → 改用
wecomcli-doc-manage - 用户给的链接是
https://doc.weixin.qq.com/smartsheet/...→ 改用wecomcli-smartsheet - 若遇到的
docid以s3开头(形如s3_xxxx)→ 改用wecomcli-smartsheet
接口路由表
硬规则:第二列是
references/xxx.md链接的, 命中这一行后先read对应 references 文件,再构造命令。
| 用户意图 | 参考位置 |
|---|---|
| 新建在线表格 | 见下方「新建在线表格」 |
| 导入本地 CSV / Excel 文件为企微在线表格 | 见下方「导入在线表格」 |
| 读取在线表格基础信息与子表列表 | 见下方「读取在线表格」 |
| 读取在线表格子表数据 | references/sheet-ranges-get.md |
| 修改在线表格指定区域内容 | references/sheet-contents-update.md |
| 在线表格末尾追加一行数据 | references/sheet-rows-append.md |
| 添加在线表格子工作表 | references/sheet-subsheets-add.md |
| 删除在线表格子工作表 | references/sheet-subsheets-delete.md |
接口详述
新建在线表格
从零新建企微在线表格时,先按用户需求创建一个本地 .xlsx,完成质量校验后,再通过 wecom-cli sheet import 导入为企微在线表格。
标准流程
- 使用
openpyxl创建本地.xlsx - 导入前校验本地
.xlsx:文件存在且非空、可正常打开、工作表名称与数量正确、关键数据/公式/格式符合用户要求。校验不通过时先修复本地文件,不得导入未验证产物。 - 调用下方「导入在线表格」的
wecom-cli sheet import,把已校验的.xlsx导入为企微在线表格。 - 确认导入结果的
task_status为成功状态。向用户返回企微在线表格 URL。除非用户明确要求保留或接收本地文件,否则不要把本地.xlsx当作最终交付物。
使用规则
- 不要混淆编辑场景:上述流程只适用于从零新建。修改已有企微在线表格时,继续使用读取、修改、追加、子表管理等在线接口,不得重新生成 XLSX 后覆盖导入
导入在线表格
把本地文件(.csv / .xls / .xlsx)导入为企微在线表格。
命令
wecom-cli sheet import --json '<JSON 参数>'
参数
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|---|---|---|---|---|
file_name |
string | 是 | — | 二进制文件名(含后缀),用于业务判断源文件类型 |
file_path |
string | 是 | — | 源文件的本地绝对路径 |
passwd |
string | 否 | — | Office 文件加密密码(若有) |
返回
| 字段 | 类型 | 说明 |
|---|---|---|
docid |
string | 导入完成后的表格 ID |
url |
string | 导入完成后的访问链接 |
task_status |
string | 任务状态枚举,如 succ 成功 |
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -27 lines f8922bb2e2ba
- 1mo ago Changed · +3 lines 394ee720714e
- 1mo ago First seen · 173 lines · 130 tokens per session scan A cfb9b073af21
wecomcli-sheet is a skill published in the GitHub repository WecomTeam/wecom-cli (3,214 stars, last pushed 4d ago), licensed MIT. It adds 130 tokens to every session and 1,947 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
google-workspace
Gmail, Calendar, Drive, Docs, Sheets via gws CLI or Python.
gog
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
gog-workspace
Use the gog CLI for Google Workspace tasks across Gmail, Calendar, Drive, Docs, Sheets, Contacts, and related services. Use when the user asks to check email, search Gmail, inspect calendar events, find Drive files, read Docs or Sheets, or manage Google Workspace data through gog.
google-workspace
Access Google Workspace APIs (Drive, Docs, Calendar, Gmail, Sheets, Slides, Chat, People) via local helper scripts without MCP. Handles OAuth login and direct API calls.
googleworkspace
Manage Google Drive, Gmail, Calendar, Sheets, Docs, and Chat via the gws CLI.