Command Palette

Search for a command to run...

Back to skills
skill № 99650

文档处理

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

FreeNo executable scripts
wangzhe04by wangzhe04★ 52 GitHub stars

Install 文档处理 in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

文档处理

适用于读取、摘要、校对、对比、改写或转换已有文档。目标不是“生成一段文字”,而是交付可核验、可继续编辑的文件。需要从零制作带版式、图表、样式的 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,或要求会覆盖大量原文件时,停止并说明可执行的下一步,不伪造处理结果。

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the 文档处理 skill do?

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

How do I install the 文档处理 skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the 文档处理 skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare 文档处理 with