Skip to content
Back to skills

Create Doc

ASecurity

"快速创建各类金山在线文档(智能文档、Word、Excel、PDF、PPT、智能表格、多维表格)并写入内容。 当用户要求「新建文档」、「创建文件」、「写一份文档」、「新建表格」时使用。 若需要读取已有文档,请使用 doc-to-markdown 技能。

  • 279 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
documentation

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add infometa/workbuddyskills --skill create-doc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Doc?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Create Doc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/infometa-create-doc/badge)](https://www.skillsdirectory.com/skills/infometa-create-doc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: create-doc
description: "快速创建各类金山在线文档(智能文档、Word、Excel、PDF、PPT、智能表格、多维表格)并写入内容。 当用户要求「新建文档」、「创建文件」、「写一份文档」、「新建表格」时使用。 若需要读取已有文档,请使用 doc-to-markdown 技能。
"
homepage: 
version: 1.5.7
---

# 一键创建在线文档

一键创建在线文档技能支持快速新建各类文档并自动填充内容。

> 本技能依赖 `kdocs` 技能的基础文档操作能力(认证、文件管理等),请确保已安装该技能。详见 `references/core/` 目录。

---

## 能力范围


### 详细参考

| 文档类型 | 参考文件 | 说明 |
|----------|----------|------|
| 智能文档(otl) | `references/otl_references.md` | 页面、文本、标题、待办等元素操作 |
| 在线文字(wps) | `references/wps_references.md` | Word 文档创建、导出与内容操作 |
| 表格文档/智能表格(xlsx & ksheet) | `references/sheet_references.md` | 工作表管理、范围数据获取、批量更新 |
| 演示文稿(pptx / wpp) | `references/pptx_references.md` | PPT 创建与读写、字体与配色设置、下载、导出 |
| PDF 文档(pdf) | `references/pdf_references.md` | PDF 创建与内容读取 |
| 多维表格(dbt) | `references/dbsheet_references.md` | 数据表/视图/字段/记录与附件 |

---

## 操作指南

### 通用操作路由

| 意图 | 路由 |
|------|------|
| 读取文档内容 | `read_file`(统一入口,按后缀自动返回 Markdown 或结构化数据) |
| 创建/写入 | `create_file_with_content`(统一入口,新建文档并写入内容,返回 link_url) |
| 局部更新 | 改块/改段/改单元格,已有目标文档上的修改 → 按「支持的文档类型」→ 对应 reference |
| 类型专属能力 | 条件格式、导出转换、翻译、PDF 拆分、幻灯片主题、数据校验 | 按「支持的文档类型」→ 对应 reference 中的专属功能章节 |
| 获取文件标识指南 | **必读** `references/file-locating-guide.md` |

### 高频流程指引

#### 创建/写入

| 用户意图 | 工具 | 适用后缀 |
|----------|------|----------|
| 对话中已有要写的内容 | `create_file_with_content` | .otl .docx .pdf .xlsx .ksheet .dbt |
| 上传本地已有文件 | `upload_file` | .doc .docx .xls .xlsx .ppt .pptx .pdf .md .txt |
| 新建空白文档(不写内容) | `create_file` | .doc .docx .otl .dbt .xlsx .xls .ksheet .pptx .ppt |
| AI 生成 PPT | `aippt.execute` | .pptx |

后缀不确定时默认 `.otl`。指定文件夹时先按 `references/file-locating-guide.md` 取 `drive_id`、`parent_id`。

选定工具后,阅读 `references/drive/create_and_upload.md` 对应章节获取参数约束(`aippt.execute` 见 `references/aippt.md`)。

---
## 风险控制

以下工具不可逆,调用前必须向用户确认(详细约束见各工具参考文档的「操作约束」区):

`otl.block_delete`、`cancel_share`

---

## 工具组合速查

| 用户需求 | 推荐工具组合 |
|----------|-------------|
| 创建/写入 | `create_file_with_content` |

Files in this skill

  • SKILL.md3.1 KB
  • references/auth.md2.8 KB
  • references/core/sheet.md12 KB
  • references/core/sheet/conditional_format.md11.6 KB
  • references/core/sheet/data.md19.3 KB
  • references/core/sheet/data_validations.md6.9 KB
  • references/core/sheet/filters.md7.9 KB
  • references/core/sheet/float_images.md5.7 KB
  • references/core/sheet/protection_ranges.md9.7 KB
  • references/core/sheet/worksheet.md8 KB
  • references/file-locating-guide.md1.9 KB
  • references/otl.md5.2 KB
  • references/otl/block_delete.md1.8 KB
  • references/otl/block_insert.md1.8 KB
  • references/otl/block_query.md858 B
  • references/otl/block_update.md7.7 KB
  • references/otl/convert.md1.3 KB
  • references/otl/insert_content.md5.2 KB
  • references/otl/node.md17.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…