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 agentmods add skills/wecomteam/wecom-cli/wecomcli-doc-managenpx skills add WecomTeam/wecom-cli --skill wecomcli-doc-managegit 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-doc-manage)<a href="https://agentmods.dev/skills/wecomteam/wecom-cli/wecomcli-doc-manage"><img src="https://agentmods.dev/badge/skills/wecomteam/wecom-cli/wecomcli-doc-manage.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00146 | $0.02996 |
| Opus 5 | $0.00073 | $0.01498 |
| Sonnet 5 | $0.00029 | $0.00599 |
| Haiku 4.5 | $0.00015 | $0.00300 |
Grade A, and why
wecomcli-doc-manage 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 4d 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-doc-manage — 89% identical, 8 lines differ
How it starts
The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
执行任何
wecom-cli命令前,必须先读取并完成wecomcli-shared技能的公共前置检查。
核心概念
- 四种文档类型:在线文档
doc、在线表格sheet、智能表格smartsheet、智能文档smartpage。doc_type枚举在多接口中复用。 - 搜索接口额外支持的类型:收集表
collect、PPTppt、脑图mind、流程图flow、汇报journal、PDFpdf。这些类型仅在「搜索文档」接口的doc_types过滤中可用,其他接口(改名、权限、加入规则等)不适用。
适用范围
适用:
- 仅支持搜索 doc文档 / 在线表格 / 智能表格 / 智能文档 / PPT / 收集表 / 脑图 / 流程图 / 汇报 / PDF 文档类型
- 仅支持修改 doc文档 / 在线表格 / 智能表格 / 智能文档 的名称
- 仅支持添加 doc文档 / 在线表格 / 智能表格 / 智能文档 的成员权限
- 仅支持设置 doc文档 / 在线表格 / 智能表格 / 智能文档 的加入规则
接口路由表
路由表第二列若是 references/xxx.md 链接 → 必须先用 read 工具读完该文件,再构造命令。
| 用户意图 | 参考位置 |
|---|---|
| 搜索文档(包含最近浏览/创建) | 见下方「搜索文档」 |
| 修改文档名 | +names-update |
| 添加文档成员 / 改权限 | +members-update |
| 设置链接加入规则 | +rules-update |
接口详述
搜索文档
按关键词与过滤条件(类型 / 创建者 / 浏览者-成员 / 时间窗 / 排序)搜索文档
关于"浏览者"与"成员":在本接口的搜索语义下二者等价——
visitor_userids命中的是"该 userid 作为浏览者/成员/相关者"的文档,用来表达"包含 X"、"X 参与的"、"与 X 相关的"、"X 作为成员的"均可。注意权限约束:无论传谁的 userid,最终结果只会返回当前调用者本人有权限访问的文档;他人有权限但你没权限的文档不会出现在结果中,因此本接口不能用于"窥探他人独占的文档列表"。
命令
wecom-cli doc search --json '<JSON 参数>'
参数
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|---|---|---|---|---|
keywords |
string[] | 是 | — | 关键词数组,OR 关系。仅按其他条件过滤时传空数组 [] |
search_scope |
string | 否 | title_content |
搜索范围枚举:title(仅标题) / title_content(标题和内容,默认) / content(仅内容) |
doc_types |
string[] | 否 | — | 限定类型,取值为 doc / sheet / smartsheet / smartpage / collect / ppt / mind / flow / journal / pdf 的子集 |
creator_userids |
string[] | 否 | — | 限定创建者 userid 列表(典型:传当前用户 userid 查"我最近创建") |
visitor_userids |
string[] | 否 | — | 限定"浏览者 / 成员" userid 列表 |
created_after / created_before |
string | 否 | — | 创建时间窗,YYYY-MM-DD HH:mm:ss |
opened_after / opened_before |
string | 否 | — | 最近打开时间窗,YYYY-MM-DD HH:mm:ss |
sort_by |
string | 否 | best_match |
排序枚举:best_match(默认) / create_time(创建时间) / modify_time(修改时间) |
limit |
int | 否 | 10 |
返回上限,不超过 100 |
cursor |
string | 否 | — | 分页游标;首次传空,后续取上页 next_cursor |
What ships with it
3 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.
- 4d ago First seen · 133 lines · 146 tokens per session scan A b039a64067b6
wecomcli-doc-manage is a skill published in the GitHub repository WecomTeam/wecom-cli (3,014 stars, last pushed 10d ago), licensed MIT. It adds 146 tokens to every session and 2,996 once invoked, about $0.0007 per session on Opus 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
xlsx-author
Produce a .xlsx file on disk (headless) instead of driving a live Excel workbook — for managed-agent sessions with no open Office app.
audit-xls
Audit a spreadsheet for formula accuracy, errors, and common mistakes. Scopes to a selected range, a single sheet, or the entire model (including financial-model integrity checks like BS balance, cash tie-out, and logic sanity). Triggers on "audit this sheet", "check my formulas", "find formula errors", "QA this…
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
spreadsheet-source-validated
Execute Python scripts for spreadsheet operations with mandatory source data validation and fallback protocols.
document-direct-python
Use direct Python execution for reliable document creation including spreadsheets, PDFs, and structured reports.
document-python-direct
Use direct Python execution for reliable spreadsheet and document/PDF generation operations.