Reads, creates, edits .docx documents preserving formatting and layout via python-docx and render_docx.py for visual PDF/PNG rendering checks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codexai-agentic-workflow:codex-doc-rendererThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Render documentation to DOCX format via `render_docx.py`. Specialized utility, activate only when DOCX export is explicitly requested.
Render documentation to DOCX format via render_docx.py. Specialized utility, activate only when DOCX export is explicitly requested.
.docx documents.$codex-doc-renderer or $docx.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:
python scripts/render_docx.py /path/to/file.docx --output_dir /tmp/docx_pages
npx claudepluginhub bang-isme/codexai---skillsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.