stvlynn/qclaw-skills · Archived

wecom-doc-manager

企业微信文档管理技能。提供文档的创建、读取和编辑能力,支持通过 docid 或文档 URL 操作企业微信文档(doc_type=3)和智能表格(doc_type=10)。适用场景:(1) 以 Markdown 格式导出获取文档完整?

First seen Mar 21, 2026

Installation

$ npx skills add stvlynn/qclaw-skills --skill wecom-doc-manager

Summary

企业微信文档管理技能。提供文档的创建、读取和编辑能力,支持通过 docid 或文档 URL 操作企业微信文档(doc_type=3)和智能表格(doc_type=10)。适用场景:(1) 以 Markdown 格式导出获取文档完整内容(异步轮询) (2) 新建文档或智能表格 (3) 用 Markdown…

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from stvlynn/qclaw-skills · top by installs.

npx skills add stvlynn/qclaw-skills

Browse all from stvlynn/qclaw-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Also listed on

Alternate registries and mirrors of this skill.

Repository health

Stars 4
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,598 B
  • docs SUMMARY.md 470 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

企业微信文档管理

wecom_mcp 是一个 MCP tool,所有操作通过调用该 tool 完成。

⚠️ 前置条件:首次调用 wecom_mcp 前,必须按 wecom-preflight 技能执行前置条件检查,确保工具已加入白名单。

管理企业微信文档的创建、读取和编辑。所有接口支持通过 docidurl 二选一定位文档。

调用方式

通过 wecom_mcp tool 调用,品类为 doc

使用 wecommcp tool 调用 wecommcp call doc <toolname> '<jsonparams>' 调用指定技能

返回格式说明

所有接口返回 JSON 对象,包含以下公共字段:

字段 类型 说明
errcode integer 返回码,0 表示成功,非 0 表示失败
errmsg string 错误信息,成功时为 "ok"

errcode 不为 0 时,说明接口调用失败,可重试 1 次;若仍失败,将 errcodeerrmsg 展示给用户。

getdoccontent

获取文档完整内容数据,只能以 Markdown 格式返回。采用异步轮询机制:首次调用无需传 taskid,接口返回 taskid;若 taskdone 为 false,需携带该 taskid 再次调用,直到 task_done 为 true 时返回完整内容。

  • 首次调用(不传 taskid):使用 wecommcp tool 调用 wecommcp call doc getdoc_content '{"docid": "DOCID", "type": 2}'
  • 轮询(携带上次返回的 taskid):使用 wecommcp tool 调用 wecommcp call doc getdoccontent '{"docid": "DOCID", "type": 2, "taskid": "xxx"}'
  • 或通过 URL:使用 wecommcp tool 调用 wecommcp call doc getdoccontent '{"url": "https://doc.weixin.qq.com/doc/xxx";, "type": 2}'

参见 [API 详情](references/api-export-document.md)。

create_doc

新建文档(doctype=3)或智能表格(doctype=10)。创建成功返回 url 和 docid。

  • 使用 wecommcp tool 调用 wecommcp call doc createdoc '{"doctype": 3, "doc_name": "项目周报"}'
  • 使用 wecommcp tool 调用 wecommcp call doc createdoc '{"doctype": 10, "doc_name": "任务跟踪表"}'

注意:docid 仅在创建时返回,需妥善保存。创建智能表格时默认包含一个子表,可通过 smartsheetgetsheet 查询其 sheet_id。

参见 [API 详情](references/api-create-doc.md)。

editdoccontent

用 Markdown 内容覆写文档正文。content_type 固定为 1(Markdown)。

使用 wecommcp tool 调用 wecommcp call doc editdoccontent '{"docid": "DOCID", "content": "# 标题\n\n正文内容", "content_type": 1}'

参见 [API 详情](references/api-edit-doc-content.md)。

典型工作流

  1. 读取文档 → 使用 wecommcp tool 调用 wecommcp call doc getdoccontent '{"docid": "DOCID", "type": 2}',若 taskdone 为 false 则携带 taskid 继续轮询
  2. 创建新文档 → 使用 wecommcp tool 调用 wecommcp call doc createdoc '{"doctype": 3, "doc_name": "文档名"}',保存返回的 docid
  3. 编辑文档 → 先 getdoccontent 了解当前内容,再 editdoccontent 覆写