PlugWiki

wecomcli-doc Skill for Claude: Create and Edit WeCom Online Docs

wecomcli-doc, from the WeCom team, lets Claude create, import, read and edit WeCom online doc files through the wecom-cli command line.

Installs
25.2K
on skills.sh
Stars
3.3K
on GitHub
Files
4
besides SKILL.md
Updated
Oct 2026
last repo commit

wecomcli-doc makes the assistant manage WeCom online doc files with the wecom-cli command line. It creates a doc from scratch (it writes a .docx first, then imports it), imports a local .doc, .docx or .txt, reads a doc's content, and appends to or overwrites it.

It triggers only when you say doc, docx, word or online document, or give a doc.weixin.qq.com/doc link. Vague asks like 'write a document' go to the sibling wecomcli-smartpage skill. Searching docs, renaming and permissions go to wecomcli-doc-manage.

It needs the wecom-cli program installed and signed in, and the SKILL.md tells the assistant to finish the wecomcli-shared checks before any wecom-cli command. The SKILL.md is written in Chinese. Sign in is by scanning a QR code with WeCom.

Good for

  • WeCom (WeChat Work) users who want Claude to write or update online docs
  • Teams that turn local .docx, .doc or .txt files into WeCom docs
  • Anyone who needs doc content read back into the chat

Install wecomcli-doc

Claude Code

  1. 1

    Copy this prompt.

    Install the wecomcli-doc skill in Claude Code. Run this command:
    
    npm install -g @wecom/cli
    npx skills add WeComTeam/wecom-cli --skill wecomcli-doc --skill wecomcli-shared -g
    wecom-cli auth init
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js 18+, WeCom account.

Install the CLI first. wecomcli-doc calls wecom-cli, and its SKILL.md says to complete the wecomcli-shared checks before any wecom-cli command, so install both skills. The README's own command installs all 15 WeCom skills. Sign in once by scanning a QR code with WeCom. Needs Node.js 18 or newer and a WeCom account.

Built from the package data we hold. Not yet tested by us. Source.

What's in the skill

When it loads

企业微信在线 doc 文档技能。能够新建 doc、导入本地 .doc/.docx/.txt 为 doc、读取 doc 内容、向 doc 追加或覆盖写入。仅当用户明确出现「doc」「docx」「word」「在线文档」「office 文档」等强类型词,或提供 https://doc.weixin.qq.com/doc/xxx 链接时才使用本技能。用户说"文档""新建文档""写文档""整理成文档""输出到文档"等未指定类型的泛化表达,一律使用 wecomcli-smartpage。

Sections in SKILL.md

  1. 适用范围
  2. 适用
  3. 不适用
  4. 易混淆场景路由
  5. 接口路由表
  6. 写入语义裁定(追加 vs 覆盖)
  7. 接口详述
  8. 新建doc文档
  9. 导入doc文档
  10. 读取doc文档内容
  11. 跨技能依赖
  12. docid 使用规则
  13. 安全提示(最高优先级)
  14. 安装依赖

Key facts

Installs on skills.sh
25,168 as of 2026-11-02
GitHub stars (whole repo)
3,275 as of 2026-11-02
Last repo commit
2026-10-19

What it includes

  • Writes a .docx, then imports it as a WeCom doc

    With no local file, it writes a JSONL description and runs the bundled build_docx.py, which needs the python-docx package. It then imports the .docx. The .docx lands in a docx/ folder next to the JSONL.

    Try: “Create a WeCom doc with this week's meeting notes”

    Runs code · Create a doc from scratch

  • Imports a local .doc, .docx or .txt as a WeCom doc

    Runs wecom-cli doc import with the file name and its absolute path, plus a password for encrypted Office files. It returns the doc ID, link and task status.

    Try: “Import /Users/me/report.docx into WeCom as an online doc”

    Network · doc import

  • Reads a doc as markdown, text or OOXML

    Returns the name, link, content and version. Long content is saved to a local file that the assistant then reads.

    Try: “Read this WeCom doc and summarize it: https://doc.weixin.qq.com/doc/...”

    Network · doc contents get

  • Adds text to the end of a doc without touching the rest

    Used for neutral verbs like write, note or add. The existing content stays.

    Write · Append (default write)

  • Replaces the whole doc, only on an explicit ask

    Used only when you say overwrite, rewrite, replace or clear and rewrite. The old content is fully replaced. To clear a doc it sends a single space.

    Write · Overwrite

  • Hands off other asks to other WeCom skills

    Smart docs and unspecified 'document' asks go to wecomcli-smartpage. Search, rename, permissions and members go to wecomcli-doc-manage. Spreadsheets go to wecomcli-sheet or wecomcli-smartsheet.

    Routing to sibling skills

  • Never shows internal IDs, links to the doc instead

    It takes the docid from the doc URL, or searches through wecomcli-doc-manage, and shows you a link to the doc, not the ID.

    docid rule

From the official docs

Permissions

Medium risk

It reads and writes your company's WeCom documents through a signed-in command line, and one step can overwrite a whole doc. Check the doc link before you ask for an overwrite, and keep the first test on a doc you do not mind changing.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It can overwrite a whole document

    The overwrite step replaces all content, and the old text is gone. The SKILL.md uses it only on strong words like overwrite or replace, so say append if you only want to add. github.com

  • It installs software on your machine

    wecomcli-shared installs @wecom/cli with npm install -g when it is missing or older than 1.2.1, and doc creation needs the python-docx package. Install both yourself first if you prefer. github.com

  • The CLI reports the calling agent's name to WeCom

    The WeCom data notice says the prebuilt npm CLI sends the name of the calling agent program and its call chain to WeCom's cloud with each request. Building from source with the feature off stops it. github.com

Technical details
Talks toWeCom cloud through wecom-cli
Sign-in and keyswecom-cli keeps the credentials from wecom-cli auth init; the README does not say where.
Scopes
  • WeCom account authorised by QR scan with wecom-cli auth init

Questions

What does wecomcli-doc do?

It lets Claude create, import, read, append to and overwrite WeCom online doc files. It runs the official wecom-cli program for each step.

How do I install wecomcli-doc?

Use the install box above. It installs the wecom-cli program, this skill and the wecomcli-shared skill that this skill requires, then signs you in by QR scan. You need Node.js 18 or newer and a WeCom account.

Does it work in Claude.ai or ChatGPT?

This page documents only the command-line route (Claude Code, Codex and other agents through the skills CLI). The skill runs wecom-cli on your machine, and the README does not describe a Claude.ai or ChatGPT route.

Why did it not use wecomcli-doc when I said 'write a document'?

By design. The SKILL.md only fires on doc, docx, word or online document, or a doc link. A plain 'document' request goes to wecomcli-smartpage, the default for WeCom smart documents.

Does it need an API key?

No key is named in the SKILL.md. You sign in once by scanning a QR code with wecom-cli auth init. The README mentions an optional smart-bot Bot ID and Secret.

Is wecomcli-doc safe to use?

It edits real company documents, so test on a doc you can lose. The skill bundles a Python script that builds .docx files, and it can run npm install -g @wecom/cli and need python-docx. Overwrite replaces everything, so ask for append when you only want to add text.

What is the difference from wecomcli-smartpage?

wecomcli-doc handles classic doc files. The SKILL.md sends smart documents (smartpage links and docids starting a1 or b1) and unspecified 'document' requests to wecomcli-smartpage.

Information

updated Nov 2, 2026

Folder
skills/wecomcli-doc

wecomteam/wecom-cliskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 8
  1. wecom-cli README · github.com
  2. wecomcli-shared SKILL.md · github.com
  3. wecomcli-doc SKILL.md · github.com
  4. doc-create.md · github.com
  5. doc-contents-overwrite.md · github.com
  6. wecom-cli data collection notice · github.com
  7. wecom-cli skills overview · github.com
  8. @wecom/cli package.json · github.com

Updated Nov 2, 2026.