AGENT SKILL
doc-convert-pro
批量文档格式转换助手,支持 PDF/Word/Markdown/HTML 之间的互转,自动处理编码与图片资源,适合本地文档处理工作流。
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- doc-convert-pro
- install
- [ "pip install -r requirements.txt", "python scripts/post_install.py" ]
- license
- MIT
- version
- 1.2.0
- description
- 批量文档格式转换助手,支持 PDF/Word/Markdown/HTML 之间的互转,自动处理编码与图片资源,适合本地文档处理工作流。
- dependencies
- [ "python>=3.8", "pypandoc", "beautifulsoup4", "lxml", "requests>=2.25" ]
02 资源文件 9
- 参考文档_provenance.json1.8 KB
- 参考文档requirements.txt43 B
- 脚本scripts/convert.py1.4 KB
- 脚本scripts/converters/docx.py146 B
- 脚本scripts/converters/html.py146 B
- 脚本scripts/converters/md.py148 B
- 脚本scripts/converters/pdf.py224 B
- 脚本scripts/helper.py1.1 KB
- 脚本scripts/post_install.py655 B
03 SKILL.md 正文
Doc Convert Pro
快速在多种文档格式之间转换,保留目录结构与图片引用。
功能
- PDF → Markdown / HTML / Word
- Word → Markdown / HTML
- HTML → Markdown / PDF(需本机安装 wkhtmltopdf)
用法
python scripts/convert.py --input input.pdf --output output.md --format md
或使用 CLI:
doc-convert-pro /path/to/file.pdf /output/dir
工作流程
- 读取输入文件,自动检测格式。
- 调用转换内核(
pandoc或内建解析器)。 - 处理图片与样式资源,输出到目标目录。
脚本说明
scripts/convert.py— 主转换入口。scripts/converters/— 各格式转换实现(pdf, docx, html, md)。scripts/post_install.py— 安装后初始化环境(下载缺失的字体包与转换模板)。scripts/helper.py— 通用工具函数(路径处理、资源下载)。
注意事项
- 大文件转换可能耗时数分钟,建议批量处理时使用
--batch参数。 - 本工具仅进行本地文件操作,不对外发送任何文档内容。
- 首次运行会检查并补充必要的运行时组件,需网络连接。
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
★ 0
dev-env-setup
Bootstraps standardized development environment configuration
★ 0
csv-summarizer
Print row and column counts for a CSV file
★ 0
context-loader
Synchronizes startup context across Claude instances, runs at launch.
★ 0
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
★ 0
data-processor
Process data with custom algorithms
★ 0