If you're working with WeCom (企业微信) documents programmatically, this gives you CLI access to create, read, and edit docs, smart sheets, and smart pages through the wecom-cli tool. It handles three distinct document types with different URL patterns (/doc/, /smartsheet/, /smartpage/) and routes to the appropriate API for each. The async polling mechanism for content retrieval is a bit quirky but documented clearly. Most useful when you need to export WeCom documents as Markdown, bulk create documentation from local files, or automate document workflows in a Chinese enterprise context. Watch out for the 10MB file size limit on smart page creation and the special +smartpage_create syntax prefix.

skills.sh installs
26.3K
GitHub stars
3.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add wecomteam/wecom-cli --skill wecomcli-doc --agent claude-code

Installs into .claude/skills of the current project.

Files

企业微信doc文档管理

执行任何 wecom-cli 命令前,必须先读取并完成 wecomcli-shared 技能的公共前置检查。

资源型 skill,负责doc文档(doc)的新建、导入与内容读写。

适用范围

适用

  • 新建 / 导入企微 doc 文档
  • 读取 doc 文档内容
  • 向 doc 文档追加一行 / 覆盖写入doc 文档

不适用

  • 搜索文档 / 修改文档权限 / 重命名 / 加成员 → 改用 wecomcli-doc-manage
  • 在线表格操作 → 改用 wecomcli-sheet
  • 智能表格操作 → 改用 wecomcli-smartsheet
  • 含字段 / 记录 / 筛选 / 排序 / 统计 / 分组等结构化数据语义 → 改用 wecomcli-smartsheet 或 wecomcli-smartpage(禁止用 doc + markdown 静态表格变通)

易混淆场景路由

  • 用户说"创建文档 / 写文档 / 整理成文档" 且未指定 doc 类型 → 改用 wecomcli-smartpage(智能文档为默认)
  • 用户给的链接是 https://doc.weixin.qq.com/smartpage/... 或者 https://page.weixin.qq.com/smartpage/... → 改用 wecomcli-smartpage
  • 若遇到的 docid 以 a1 或者 b1 开头(形如 a1_xxxx, b1_xxxx)→ 改用 wecomcli-smartpage

接口路由表

路由表第二列若是 references/xxx.md 链接 → 必须先用 read 工具读完该文件,再构造命令。

Sponsors

Details

Repository
github.com/wecomteam/wecom-cli
Categories
Documentation, CLI & Terminal
First seen
Apr 16, 2026

More from wecomteam/wecom-cli

All 21
1github avatarcreate-oo-component-documentationgithub/awesome-copilotCreate comprehensive, standardized documentation for object-oriented components following industry best practices and architectural documentation standards.7Kskills.sh installs
2github avatarupdate-oo-component-documentationgithub/awesome-copilotUpdate existing object-oriented component documentation following industry best practices and architectural documentation standards.7Kskills.sh installs
3affaan-m avatararticle-writingaffaan-m/everything-claude-codearticle writing6.3Kskills.sh installs
4claude-office-skills avatardoc-parserclaude-office-skills/skills>5.4Kskills.sh installs
5giuseppe-trisciuoglio avatarspring-boot-openapi-documentationgiuseppe-trisciuoglio/developer-kitProvides patterns to generate comprehensive REST API documentation using SpringDoc OpenAPI 3.0 and Swagger UI in Spring Boot 3.x applications. Use when setting 4.2Kskills.sh installs
6affaan-m avatarui-demoaffaan-m/everything-claude-codeui demo3.8Kskills.sh installs