Rechercher

PythonReactSEOPDF
OpenClaw

wecom-doc

文档与智能表格操作。当用户提到企业微信文档、创建文档、编辑文档、新建文档、写文档、智能表格时激活。支持文档创建/写入和智能表格的创建及子表/字段/记录写入。注意:所有企业微信文档创建和编辑请求都应使用此 skill,不要尝试用其他方式处理文档操作。

garfileds0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install garfileds/wecom-doc

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

企业微信文档与智能表格工具

通过 mcporter 调用 wecom-doc MCP server 操作企业微信文档和智能表格。

意图处理

当用户说"创建文档"、"新建文档"、"帮我写个文档"等不指定平台的请求时,默认使用企业微信文档,无需询问用户使用什么平台。

前置检查(每次会话首次操作前必须执行)

自动续接原则:前置检查中的任何环节如果需要等待用户确认或操作(安装、配置、授权等),在该操作完成后必须自动继续执行后续步骤,最终完成用户的原始请求。不要在中间环节完成后停下来等用户重复发起请求。

1. 检查 mcporter 是否安装
which mcporter

如果 mcporter 不在 PATH 中(命令返回空或 not found),必须原样输出以下提示(不要修改、不要摘要):

企业微信文档能力依赖 mcporter 工具,当前尚未安装。需要我帮你安装吗?

输出提示后停止执行并等待用户回复。

  • 如果用户确认安装(回复"好"、"是"、"装吧"、"yes"、"ok" 等肯定语义),立即执行:
npm install -g mcporter

安装完成后不要停下来,直接继续执行后续的「检查 MCP Server 是否配置」步骤,无缝衔接用户原始请求。

  • 如果用户拒绝安装,回复:

好的,你也可以手动执行 npm install -g mcporter 安装后再找我。

2. 检查 MCP Server 是否配置

确认 mcporter 存在后,执行:

mcporter list wecom-doc --output json

如果返回 server not found、unknown server 或类似错误,按下方"MCP Server 未配置"章节处理。

3. 获取 Tool 列表

mcporter list 成功后,返回的每个 tool 包含 name、description、inputSchema。

不要硬编码 tool name 和参数,据此构造 mcporter call wecom-doc.<tool> --args '{...}' --output json 调用。

docid 管理规则(重要)

仅支持对通过本 skill 创建的文档或智能表格进行编辑。

docid 的获取方式

docid 只能通过 create_doc 的返回结果获取。创建成功后需要保存返回的 docid,后续编辑操作依赖此 ID。

不支持从 URL 解析 docid

从文档 URL(如 https://doc.weixin.qq.com/doc/...)中无法解析到可用的 docid。如果用户提供了文档 URL 并要求编辑,不要尝试从 URL 中提取 docid。

编辑操作的 docid 校验

当用户请求编辑文档或智能表格时,如果当前会话中**没...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/garfileds/wecom-doc
Version
—
Commit
f7a3eebe6388065d3b0febc44b79bb58eb781265
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

Contenu extrait

SKILL.md
# 企业微信文档与智能表格工具

通过 mcporter 调用 wecom-doc MCP server 操作企业微信文档和智能表格。

## 意图处理

当用户说"创建文档"、"新建文档"、"帮我写个文档"等**不指定平台**的请求时,默认使用企业微信文档,无需询问用户使用什么平台。

## 前置检查(每次会话首次操作前必须执行)

> **自动续接原则**:前置检查中的任何环节如果需要等待用户确认或操作(安装、配置、授权等),在该操作完成后必须**自动继续执行后续步骤**,最终完成用户的原始请求。不要在中间环节完成后停下来等用户重复发起请求。

### 1. 检查 mcporter 是否安装

```bash
which mcporter
```

如果 `mcporter` **不在 PATH 中**(命令返回空或 not found),**必须原样输出以下提示**(不要修改、不要摘要):

> 企业微信文档能力依赖 mcporter 工具,当前尚未安装。需要我帮你安装吗?

输出提示后**停止执行并等待用户回复**。

- 如果用户**确认安装**(回复"好"、"是"、"装吧"、"yes"、"ok" 等肯定语义),**立即执行**:

```bash
npm install -g mcporter
```

安装完成后**不要停下来**,直接继续执行后续的「检查 MCP Server 是否配置」步骤,无缝衔接用户原始请求。

- 如果用户**拒绝安装**,回复:

> 好的,你也可以手动执行 `npm install -g mcporter` 安装后再找我。

### 2. 检查 MCP Server 是否配置

确认 mcporter 存在后,执行:

```bash
mcporter list wecom-doc --output json
```

如果返回 **server not found**、**unknown server** 或类似错误,按下方"MCP Server 未配置"章节处理。

### 3. 获取 Tool 列表

`mcporter list` 成功后,返回的每个 tool 包含 `name`、`description`、`inputSchema`。

**不要硬编码 tool name 和参数**,据此构造 `mcporter call wecom-doc.<tool> --args '{...}' --output json` 调用。

## docid 管理规则(重要)

**仅支持对通过本 skill 创建的文档或智能表格进行编辑。**

### docid 的获取方式

docid **只能**通过 `create_doc` 的返回结果获取。创建成功后需要**保存返回的 docid**,后续编辑操作依赖此 ID。

### 不支持从 URL 解析 docid

从文档 URL(如 `https://doc.weixin.qq.com/doc/...`)中**无法解析到可用的 docid**。如果用户提供了文档 URL 并要求编辑,**不要尝试从 URL 中提取 docid**。

### 编辑操作的 docid 校验

当用户请求编辑文档或智能表格时,如果当前会话中**没...

Skills associés

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.