文档处理技能 - 让 AI 能够读取、解析、提取 PDF、DOCX、PPT 等文档的关键信息。当用户要求分析文档、提取内容、总结报告时触发此技能。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install document-pro或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install document-pro⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/document-pro/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: document-pro version: 1.0.0 description: 文档处理技能 - 让 AI 能够读取、解析、提取 PDF、DOCX、PPT 等文档的关键信息。当用户要求分析文档、提取内容、总结报告时触发此技能。 ---
赋予 AI 强大的文档处理能力:
| 格式 | 读取 | 写入 | 工具 | |------|------|------|------| | PDF | ✅ | ✅ | pdfplumber, PyPDF2 | | DOCX | ✅ | ✅ | python-docx | | PPTX | ✅ | ❌ | python-pptx | | XLSX | ✅ | ✅ | openpyxl | | TXT | ✅ | ✅ | 内置 | | Markdown | ✅ | ✅ | 内置 |
# 提取文本
import pdfplumber
with pdfplumber.open("document.pdf") as pdf:
for page in pdf.pages:
text = page.extract_text()
print(text)
# 提取表格
with pdfplumber.open("document.pdf") as pdf:
table = pdf.pages[0].extract_tables()
from docx import Document
doc = Document("document.docx")
for para in doc.paragraphs:
print(para.text)
# 提取表格
for table in doc.tables:
for row in table.rows:
print([cell.text for cell in row.cells])
from pptx import Presentation
prs = Presentation("presentation.pptx")
for slide in prs.slides:
for shape in slide.shapes:
if shape.has_text_frame:
print(shape.text)
1. 识别文档类型 → 选择正确的工具
2. 读取内容 → 提取文本、表格、图片
3. 分析信息 → 理解结构、提取要点
4. 总结呈现 → 用中文总结给用户
向用户呈现文档时:
安装 Document Pro 后,可以对 AI 说这些话来触发它
Help me get started with Document Pro
Explains what Document Pro does, walks through the setup, and runs a quick demo based on your current project
Use Document Pro to document processing skills - enable AI to read, parse, and extract ...
Invokes Document Pro with the right parameters and returns the result directly in the conversation
What can I do with Document Pro in my documents & notes workflow?
Lists the top use cases for Document Pro, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/document-pro/ 目录(个人级,所有项目可用),或 .claude/skills/document-pro/(项目级)。重启 AI 客户端后,用 /document-pro 主动调用,或让 AI 根据上下文自动发现并使用。
Document Pro 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Document Pro 可免费安装使用。请查阅仓库了解许可证信息。
文档处理技能 - 让 AI 能够读取、解析、提取 PDF、DOCX、PPT 等文档的关键信息。当用户要求分析文档、提取内容、总结报告时触发此技能。
Document Pro 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Document Pro
Identifies repetitive steps in your workflow and sets up Document Pro to handle them automatically