Wecomcli Doc logo

Wecomcli Doc

OrganizationPopular
Pinvou
wecomcli-doc

何时用:仅当用户明确指定 doc/docx/word/在线文档/office文档或提供 doc.weixin.qq.com/doc/ 链接时使用;泛指「做个文档/写文档/整理成文档」默认走 wecomcli-smartpage 或本地工具,本技能不得抢占。doc 内容操作:新建、导入(.doc/.docx/.txt)、读取、追加、覆盖写入;结构化数据需求改用智能文档/智能表格;公共管理走 wecomcli-doc-manage。

Overview

PublisherPinvou
Repositorypinvou-agent
Skill namewecomcli-doc
Stars
2K
Forks
281
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Pinvou on GitHub. Read the source before you install it.

Installation

Install the Wecomcli Doc AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Pinvou/pinvou-agent.git /tmp/pinvou-agent
mkdir -p .claude/skills
cp -r /tmp/pinvou-agent/pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-doc .claude/skills/wecomcli-doc
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wecomcli Doc in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wecomcli Doc on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wecomcli Doc is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

企业微信doc文档管理

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

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

适用范围

适用

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

不适用

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

易混淆场景路由

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

接口路由表

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

用户意图参考位置
新建doc文档(在线)见下方「新建doc文档」
导入本地文件为企微doc文档见下方「导入doc文档」
读取doc文档内容见下方「读取doc文档内容」
追加文本到doc文档末尾+contents-append
全量覆盖doc文档内容+contents-overwrite

写入语义裁定(追加 vs 覆盖)

  • 默认追加:用户用「写入 / 写到 / 记录 / 补充 / 加进去 / 记一下」等中性动词,且未明确要求清空或替换时,一律走 append(追加,不破坏原有内容)。
  • 仅显式覆盖:仅当用户明确出现「覆盖 / 重写 / 替换 / 清空重写 / 整个换成」等强语义词时,才走 overwrite

接口详述

新建doc文档

新建企微doc文档统一走「生成 .docx → 导入」两步流程:

  1. 生成 .docx 文件:按 +doc-create 生成 .docx 文件。
  2. 导入为企微doc文档:使用下方「导入doc文档」接口将生成的 .docx 文件导入为企微doc文档。注意import导入的时候 file_name 应和文档标题保持一致。

导入doc文档

把本地文件(.doc / .docx / .txt)导入为企微doc文档。

命令

bash
wecom-cli doc import --json '<JSON 参数>'

参数

字段类型必填默认值语义
doc_typestringdoc固定为 doc(doc文档)
file_namestring二进制文件名(含后缀),用于业务判断源文件类型
file_pathstring源文件的本地绝对路径
passwdstringOffice 文件加密密码(若有)

返回

字段类型说明
docidstring导入完成后的文档 ID
urlstring导入完成后的访问链接
task_statusstring任务状态枚举,如 succ 成功

读取doc文档内容

读取doc文档的文档内容。

命令

bash
wecom-cli doc contents get --json '<JSON 参数>'

参数

字段类型必填默认值语义
docidstringdoc文档 ID
content_typestringmarkdown返回内容格式枚举:text / markdown / ooxml

返回

字段类型说明
urlstring文档访问链接
namestring文档名称
contentstring文档内容较短时直接返回的原文
file_pathstring文档内容较长时自动落盘的本地文件路径;需用 read 读取路径内文本后再展示
documentobjectcontent_type=ooxml 时返回的文档对象
versionint文档版本号

跨技能依赖

依赖技能何时触发使用被依赖 skill 做什么
wecomcli-doc-manage用户只给文档名称/关键词,需先拿 docid 再读写内容使用 wecomcli-doc-manage skill 搜索文档拿 docid
wecomcli-smartpage读取doc文档内容后,用户要求"做成智能文档/排版成 smartpage"使用 wecomcli-smartpage skill 生成智能文档

参数缺失 / docid 搜索多候选等歧义场景,用简洁自然语言仅追问缺失或有歧义的信息;有候选项时在文字中列出供用户选择,不得自行猜测。

docid 使用规则

docid仅cli使用。 最终展示用户时,不应展示 docid,而是使用文档 URL:

[doc_name](doc_url)

docid 是文档的唯一标识符,调用任何文档内容操作技能时均需提供。禁止自造 docid,按以下优先级获取:

  1. 从文档链接提取(优先):用户提供了企微文档 URL 时,直接从 URL 中解析。URL 格式为 https://doc.weixin.qq.com/<type>/<docid>?scode=...,取 /<type>/ 后、? 前的部分即为 docid。
  2. 通过文档搜索获取(备选):用户仅提供文档名称或关键词、未给链接时,先调用 wecomcli-doc-manage 搜索文档,从返回结果中取 docid
  3. 用户直接提供:用户明确给出了完整 docid,可直接使用,无需再提取或搜索。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wecomcli Doc AI skill do?

何时用:仅当用户明确指定 doc/docx/word/在线文档/office文档或提供 doc.weixin.qq.com/doc/ 链接时使用;泛指「做个文档/写文档/整理成文档」默认走 wecomcli-smartpage 或本地工具,本技能不得抢占。doc 内容操作:新建、导入(.doc/.docx/.txt)、读取、追加、覆盖写入;结构化数据需求改用智能文档/智能表格;公共管理走 wecomcli-doc-manage。

Why use Wecomcli Doc on TypingMind?

Because you install it once and use it with any model. Wecomcli Doc is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wecomcli Doc in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Pinvou/pinvou-agent/tree/main/pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-doc. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wecomcli Doc?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wecomcli Doc?

As many as you like. As long as a model supports skills, you can use Wecomcli Doc with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wecomcli Doc AI skill free?

Yes. It is published on GitHub by Pinvou under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇