文档工具箱
Skill1 starsChanged 3 months agoMITView on GitHub
文档处理工具箱:处理 PDF/Word/Excel/PPT/Markdown 等文件的读取、编辑、生成与格式转换,集成 MinerU(PDF→MD 表格识别 97%)、MarkItDown、pypandoc、docx、pptx、openpyxl。 触发词:读这个PDF、提取PDF文字、改PDF、生成PDF、PDF合并、PDF拆分、创建Word、做PPT、创建Excel、表格处理、转Markdown、OCR、docx、xlsx、pptx 不用于:图片转可编辑PPT(走 image-to-editable-pptx);Word/PPT/Excel 的腾讯文档在线协作(走 tencent-docs 系插件)
In this repository18 other files it gives its agents.
- AI 工具箱Skill
- git-shipSkill
- hfut-inspectorSkill
- image-to-editable-pptxSkill
- qf-english-polishSkill
- skill-integratorSkill
- techdebtSkill
- weekly-reviewSkill
- WorkBuddy 工作原则Skill
- yuketang-harvesterSkill
- 学术研究工具箱Skill
- 安全审查工具箱Skill
- 工程方法论工具箱Skill
- 开发工具箱Skill
- 微信小程序开发套件Skill
- 知识工具箱Skill
- 联网工具箱Skill
- 评审委员会Skill
The file
Files
文档工具箱
三级层级调用规则:
- 一级:需求分析 — 判断文件类型和要做什么(读取/编辑/生成/转换)
- 二级:工具选择 — 根据需求选择最佳工具(见下方快速选择指南)
- 三级:执行指令 — 调用工具并返回结果
快速选择指南
| 文件类型 | 你要做什么 | 跳转二级 | 推荐工具 |
| 读取/提取文字表格 | 二级:PDF读取 | MinerU(表格97%) | |
| 编辑/修改内容 | 二级:PDF编辑 | pdfkit-py / pdftk | |
| 用自然语言描述修改 | 二级:PDF编辑 | pdfkit-py natural language | |
| 生成精美排版PDF | 二级:PDF生成 | reportlab / WeasyPrint | |
| Word(DOCX) | 创建/编辑文档 | 二级:Word处理 | docx / python-docx |
| PPT(PPTX) | 生成/编辑演示文稿 | 二级:PPT处理 | pptx / python-pptx |
| Excel(XLSX) | 创建/分析/编辑表格 | 二级:Excel处理 | openpyxl / pandas |
| 任意格式 | 转为Markdown | 二级:格式转换 | MinerU / MarkItDown / pypandoc |
一级:需求分析
触发词分类:
| 需求类型 | 触发词示例 | 跳转二级 |
| 读取PDF | 读这个PDF、提取PDF文字、PDF讲了什么、OCR这个PDF | 二级:PDF读取 |
| 编辑PDF | 修改PDF、编辑PDF内容、PDF加文字、PDF加图片 | 二级:PDF编辑 |
| 生成PDF | 生成PDF、导出PDF、做成PDF | 二级:PDF生成 |
| Word文档 | 创建Word、写个文档、编辑Word | 二级:Word处理 |
| PPT演示 | 做PPT、生成幻灯片、编辑演示文稿 | 二级:PPT处理 |
| Excel表格 | 创建Excel、分析数据、编辑表格 | 二级:Excel处理 |
| 格式转换 | 转为Markdown、转Word、转PDF | 二级:格式转换 |
通用规则
工具选择原则
- 优先用Python库(openpyxl/docx/pptx)— 无需安装Office
- 大文件用流式处理 — 避免内存溢出
- 中文编码用UTF-8 — 避免乱码
- 操作后验证 — 读取生成的文件确认正确
并行策略
- 多个独立文档操作 → 用子 Agent 分治并行执行
- 每个子 Agent 处理不同文件,无竞态风险
References
| 文件 | 何时读取 |
references/PDF读取.md | 需要读取/提取PDF内容时 |
references/PDF编辑.md | 需要编辑/修改PDF内容时 |
references/PDF生成.md | 需要生成精美排版PDF时 |
references/Word处理.md | 需要创建/编辑Word文档时 |
references/PPT处理.md | 需要创建/编辑PPT演示文稿时 |
references/Excel处理.md | 需要创建/分析/编辑Excel表格时 |
references/格式转换.md | 需要格式转换时 |
references/工具对比.md | 需要选择最佳工具时 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

