
DOCX Skill
FreeEfficiently manage DOCX documents with precision.
Free · Opens the source repo
What DOCX Skill does
The DOCX Skill is designed for developers and designers who need to create, edit, or review .docx documents while maintaining strict adherence to formatting and layout fidelity. This skill leverages the python-docx library for structured document creation, allowing users to manage headings, styles, tables, and lists effectively. It is particularly useful when the visual presentation of documents is crucial, such as in professional reports or client deliverables.
To ensure high-quality outputs, the skill includes a workflow that emphasizes visual validation. Users can convert .docx files to PDF and then to PNG images for detailed inspection. This is facilitated by the bundled scripts/render_docx.py, which aids in rendering documents when visual review tools like soffice and pdftoppm are available. If these tools are not present, the skill provides instructions for local installation, ensuring that users can still achieve the desired results.
The skill also prioritizes cleanliness and organization in file management, using designated directories for temporary and final outputs. It enforces quality expectations, such as consistent typography and spacing, and mandates thorough checks before final delivery. The emphasis on avoiding formatting defects ensures that documents are client-ready and free from common pitfalls like clipped text or broken tables.
Overall, the DOCX Skill is an essential tool for anyone who regularly handles .docx files and needs to ensure that their documents are both structurally sound and visually appealing. It streamlines the process of document management while minimizing the risk of errors that could compromise the quality of the final product.
When to use it
Use this skill when you need to create or edit `.docx` files that require precise formatting, or when you need to validate the visual layout before final delivery.
When not to use it
This skill may not be suitable for simple text editing tasks where layout fidelity is not a concern, or when you do not have access to the necessary rendering tools.
What you can build with it
Creating Professional Reports
Use the DOCX Skill to format and structure reports that require consistent typography and layout.
Editing Client Deliverables
Leverage the skill's features to ensure that client documents are visually appealing and free from formatting issues.
Validating Document Layouts
Utilize the rendering capabilities to visually inspect `.docx` documents before final submission, ensuring quality.
How to install DOCX Skill
View source1. Install with the skills CLI
npx skills add davila7/claude-code-templates/doc --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by davila7DOCX Skill
When to use
- Read or review DOCX content where layout matters (tables, diagrams, pagination).
- Create or edit DOCX files with professional formatting.
- Validate visual layout before delivery.
Workflow
- Prefer visual review (layout, tables, diagrams).
- If
sofficeandpdftoppmare available, convert DOCX -> PDF -> PNGs. - Or use
scripts/render_docx.py(requirespdf2imageand Poppler). - If these tools are missing, install them or ask the user to review rendered pages locally.
- If
- Use
python-docxfor edits and structured creation (headings, styles, tables, lists). - After each meaningful change, re-render and inspect the pages.
- If visual review is not possible, extract text with
python-docxas a fallback and call out layout risk. - Keep intermediate outputs organized and clean up after final approval.
Temp and output conventions
- Use
tmp/docs/for intermediate files; delete when done. - Write final artifacts under
output/doc/when working in this repo. - Keep filenames stable and descriptive.
Dependencies (install if missing)
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.
Environment
No required environment variables.
Rendering commands
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
Quality expectations
- Deliver a client-ready document: consistent typography, spacing, margins, and clear hierarchy.
- Avoid formatting defects: clipped/overlapping text, broken tables, unreadable characters, or default-template styling.
- Charts, tables, and visuals must be legible in rendered pages with correct alignment.
- Use ASCII hyphens only. Avoid U+2011 (non-breaking hyphen) and other Unicode dashes.
- Citations and references must be human-readable; never leave tool tokens or placeholder strings.
Final checks
- Re-render and inspect every page at 100% zoom before final delivery.
- Fix any spacing, alignment, or pagination issues and repeat the render loop.
- Confirm there are no leftovers (temp files, duplicate renders) unless the user asks to keep them.
Frequently asked questions about DOCX Skill
Similar skills
Agent-Browser Core
Efficient browser automation for AI agents.
Setup My IQ
Effortlessly create and update your personal context portfolio.
CRM Maintenance
Automate HubSpot updates from your calendar and emails.
Zoom MCP
Streamline access to Zoom meeting assets and recordings.
Slack Automation
Automate tasks and extract data from Slack easily.
SMB Onboard
Guides small business owners through initial tool setup.
