Skip to content
Back to skills

Document Workflow

ASecurity

读取、摘要、对比与转换已有的 Word、PDF、Markdown 和纯文本文档

  • 52 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agents

Works with

  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add wangzhe04/ruyi-workbench-oss --skill document-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Document Workflow?

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

Security grade badge for Document Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wangzhe04-document-workflow/badge)](https://www.skillsdirectory.com/skills/wangzhe04-document-workflow)

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: 文档处理
description: 读取、摘要、对比与转换已有的 Word、PDF、Markdown 和纯文本文档
---

# 文档处理

适用于读取、摘要、校对、对比、改写或转换已有文档。目标不是“生成一段文字”,而是交付可核验、可继续编辑的文件。需要从零制作带版式、图表、样式的 PPT/Excel/Word 成品时,改用 office-automation。

## 工具

- 纯文本、Markdown 用 `file_read`;它按扩展名拒读 Office 和 PDF。
- .docx/.pptx 用桌面控制 MCP 的 `read_document`(长文按 `offset`/`next_offset` 续读);PDF 用 `pdf_read_pages`(按页读,可先看 `outline` 再选页);.xlsx 用 `excel_read`。老 .doc/.xls/.ppt 请用户先另存为新版格式。
- 写 Word 用 `write_document`,写 PDF 用 `write_pdf`;两者都是创建或覆盖。`script_run` 会拦下手写 docx/pdf 的脚本。
- 工具清单里没直接看到上述桌面控制 MCP 工具时,先用 `tool_search` 找(自适应装载下它们可能要经 `tool_invoke_read` / `tool_invoke_edit` 调用);搜也搜不到才停下来,说明缺少桌面控制组件,不要硬写解析或生成脚本。

## 工作流程

1. 先列出输入文件,确认格式、数量、大小和目标输出路径;原文件默认只读。
2. 对文本型文件优先直接读取;扫描 PDF(`pdf_read_pages` 报告无文字层)或图片只有在普通提取失败后才走 OCR,并标出 OCR 可能误识别的位置。
3. 改写前先保留标题层级、表格、编号、引用和专有名词;没有明确要求时不改变事实与立场。
4. 多文档对比按“主题或章节 → 文件 A → 文件 B → 差异 → 影响”组织,不只做逐字差异。
5. 输出到新文件,避免覆盖来源;必须覆盖时先说明目标并请求确认。
6. 交付前重新读取结果,检查文件存在、非空、标题完整、没有截断和乱码。

## 输出要求

- 给出来源文件、结果文件和处理范围。
- 区分原文事实、推断、改写和无法确认的内容。
- 列出跳过或读取失败的文件及原因。
- 中文文档优先使用 UTF-8;Office/PDF 产物要检查中文字体显示。

## 停止条件

输入缺失、文件受密码保护、格式无法解析、缺少桌面控制 MCP,或要求会覆盖大量原文件时,停止并说明可执行的下一步,不伪造处理结果。

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.