doc by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill docsoffice 和 pdftoppm 可用,则将 DOCX -> PDF -> PNGs。scripts/render_docx.py(需要 pdf2image 和 Poppler)。python-docx 进行编辑和结构化创建(标题、样式、表格、列表)。python-docx 提取文本作为后备方案,并指出布局风险。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
tmp/docs/ 存放中间文件;完成后删除。output/doc/ 目录下。优先使用 uv 进行依赖管理。
Python 包:
uv pip install python-docx pdf2image
如果 uv 不可用:
python3 -m pip install python-docx pdf2image
系统工具(用于渲染):
# macOS (Homebrew)
brew install libreoffice poppler
# Ubuntu/Debian
sudo apt-get install -y libreoffice poppler-utils
如果在此环境中无法安装,请告知用户缺少哪个依赖项以及如何在本地安装。
无需必需的环境变量。
DOCX -> PDF:
soffice -env:UserInstallation=file:///tmp/lo_profile_$$ --headless --convert-to pdf --outdir $OUTDIR $INPUT_DOCX
PDF -> PNGs:
pdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME
捆绑的辅助脚本:
python3 scripts/render_docx.py /path/to/file.docx --output_dir /tmp/docx_pages
每周安装数
61
代码仓库
GitHub 星标数
22.6K
首次出现
2026年2月9日
安全审计
安装于
github-copilot61
amp61
codex61
kimi-cli61
gemini-cli61
opencode61
soffice and pdftoppm are available, convert DOCX -> PDF -> PNGs.scripts/render_docx.py (requires pdf2image and Poppler).python-docx for edits and structured creation (headings, styles, tables, lists).python-docx as a fallback and call out layout risk.tmp/docs/ for intermediate files; delete when done.output/doc/ when working in this repo.Prefer uv for dependency management.
Python packages:
uv pip install python-docx pdf2image
If uv is unavailable:
python3 -m pip install python-docx pdf2image
System tools (for rendering):
# macOS (Homebrew)
brew install libreoffice poppler
# Ubuntu/Debian
sudo apt-get install -y libreoffice poppler-utils
If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.
No required environment variables.
DOCX -> PDF:
soffice -env:UserInstallation=file:///tmp/lo_profile_$$ --headless --convert-to pdf --outdir $OUTDIR $INPUT_DOCX
PDF -> PNGs:
pdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME
Bundled helper:
python3 scripts/render_docx.py /path/to/file.docx --output_dir /tmp/docx_pages
Weekly Installs
61
Repository
GitHub Stars
22.6K
First Seen
Feb 9, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
github-copilot61
amp61
codex61
kimi-cli61
gemini-cli61
opencode61
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
46,600 周安装
Vue 3 最佳实践指南:常见陷阱、性能优化与响应式编程技巧
13,000 周安装
Better Auth 身份验证技能指南:为 TypeScript/JavaScript 应用添加认证
13,500 周安装
图像压缩工具 - 使用 sips, cwebp, ImageMagick, Sharp 优化图片大小
13,600 周安装
AI 产品需求文档(PRD)生成指南:GitHub Copilot 技能,高效撰写技术规范
13,600 周安装
X转Markdown工具:将推文和文章转换为带元数据的Markdown格式
13,900 周安装
Vite 8 前端构建工具指南:配置、插件、SSR 与 Rolldown 迁移
14,900 周安装