agentleFS
smiling66652smiling66652/workbuddy-skill-toolkits/文档工具箱/SKILL.md

文档工具箱

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 系插件)

The file

Files
SKILL.md

文档工具箱

三级层级调用规则:

  1. 一级:需求分析 — 判断文件类型和要做什么(读取/编辑/生成/转换)
  2. 二级:工具选择 — 根据需求选择最佳工具(见下方快速选择指南)
  3. 三级:执行指令 — 调用工具并返回结果

快速选择指南

文件类型你要做什么跳转二级推荐工具
PDF读取/提取文字表格二级:PDF读取MinerU(表格97%)
PDF编辑/修改内容二级:PDF编辑pdfkit-py / pdftk
PDF用自然语言描述修改二级:PDF编辑pdfkit-py natural language
PDF生成精美排版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二级:格式转换

通用规则

工具选择原则

  1. 优先用Python库(openpyxl/docx/pptx)— 无需安装Office
  2. 大文件用流式处理 — 避免内存溢出
  3. 中文编码用UTF-8 — 避免乱码
  4. 操作后验证 — 读取生成的文件确认正确

并行策略

  • 多个独立文档操作 → 用子 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需要选择最佳工具时

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.