wecomcli-doc

Create, import, read, append, and overwrite WeCom online doc documents via wecom-cli.

287|46|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/YanHaidao/wecom --skill wecomcli-doc-yanhaidao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wecomcli-doc
Source: https://github.com/YanHaidao/wecom/tree/main/skills/wecomcli-doc
Command: npx skills add https://github.com/YanHaidao/wecom --skill wecomcli-doc-yanhaidao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, and includes scripts (resource) and references (resource) components.

What problem does it solve? Managing WeCom (Enterprise WeChat) online doc documents requires navigating multiple APIs for creation, import, reading, and content updates. This Skill consolidates those operations into a single guided workflow so an AI agent can create new docs, import local files, read content, and append or overwrite text without manual API handling. ## Core Features & Use Cases - Doc Creation & Import: Generate a .docx file from a JSONL spec via the build_docx.py script, then import .doc/.docx/.txt files as WeCom online docs with a returned docid and URL. - Content Read & Write: Read doc content as text, markdown, or OOXML, append text to the end of a doc, or fully overwrite content from a string or local file. - Smart Routing: Distinguishes doc requests from smartpage, sheet, and doc-manage scenarios, and resolves docid from URLs or document search. - Use Case: A user asks to turn meeting notes into a WeCom online document. The Skill generates a formatted .docx, imports it, and returns a shareable document link. ## Quick Start Ask the assistant to create a WeCom online doc from your notes, or provide a doc.weixin.qq.com link and ask it to read, append to, or overwrite that document.

Frequently Asked Questions about wecomcli-doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a WeCom online doc document?

Write a JSONL spec describing headings, paragraphs, tables, and page breaks, then run build_docx.py to generate a .docx file. Finally call wecom-cli doc import with the file path to import it as an online doc and receive a docid and URL.

How do I append or overwrite content in a WeCom doc?

Use wecom-cli doc contents append with a docid and text to add content at the end without touching existing content. Use doc contents overwrite with content or file_path only when the user explicitly requests full replacement.

How do I get the docid for a WeCom document?

Extract the docid from the document URL by taking the segment after the type path and before the query string. If only a name or keyword is given, search via the wecomcli-doc-manage skill to retrieve the docid.

What file formats can be imported as WeCom docs?

The import command accepts local .doc, .docx, and .txt files specified by absolute path. Encrypted Office files are supported by passing the password in the passwd parameter.

When should I use smartpage instead of a doc document?

Generic requests like create a document or write a document without an explicit doc type default to the wecomcli-smartpage skill. Links to smartpage URLs or docids starting with a1 or b1 also route to smartpage, not this doc skill.