Manipulate .docx files with high layout fidelity using Python-based tools and visual rendering checks.
Install
mkdir -p .claude/skills/doc-cdrguru && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18707" && unzip -o skill.zip -d .claude/skills/doc-cdrguru && rm skill.zipInstalls to .claude/skills/doc-cdrguru
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts/render_docx.py` for visual checks.Key capabilities
- →Read or review DOCX content with layout fidelity
- →Create or edit DOCX files with professional formatting
- →Validate visual layout before delivery
- →Convert DOCX to PDF and PNGs for visual checks
- →Use `python-docx` for structured editing
- →Extract text from DOCX as a fallback
How it works
The workflow prioritizes visual review by converting DOCX to PDF and then to PNGs. It uses `python-docx` for structured edits and re-renders after each change to inspect pages, falling back to text extraction if visual review is not possible.
Inputs & outputs
When to use doc
- →Edit professional documentation
- →Create docx reports from code
- →Validate document layout
- →Extract text from Word files
About doc
Handles .docx file operations including creation, editing, and visual verification. Uses python-docx for edits and rendering scripts for layout validation.
Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts/render_docx.py` for visual checks.
When not to use it
- →When formatting or layout fidelity is not important
- →When working with plain text files
- →When visual review is not possible and text extraction is sufficient
Limitations
- →Requires `soffice` and `pdftoppm` (or `pdf2image` and Poppler) for visual rendering
- →If visual review is not possible, layout risk must be called out
- →Delivers a client-ready document with specific quality expectations
How it compares
This skill emphasizes visual validation and structured editing with `python-docx`, ensuring layout fidelity and professional formatting, unlike simple text-based document processing that ignores visual presentation.
Compared to similar skills
doc side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| doc (this skill) | 0 | 7mo | Review | Intermediate |
| pdf-creator | 0 | 3mo | Review | Intermediate |
| docstring | 8 | 12mo | No flags | Beginner |
| pr-draft-summary | 3 | 7mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by cdrguru
View all by cdrguru →You might also like
pdf-creator
seaworld008
Create PDF documents from markdown with proper Chinese font support using weasyprint. This skill should be used when converting markdown to PDF, generating formal documents (legal, trademark filings, reports), or when Chinese typography is required. Triggers include "convert to PDF", "generate PDF",
docstring
pytorch
Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.
pr-draft-summary
openai
Create a PR title and draft description after substantive code changes are finished. Trigger when wrapping up a moderate-or-larger change (runtime code, tests, build config, docs with behavior impact) and you need the PR-ready summary block with change summary plus PR draft text.
business-document-generator
ailabs-393
This skill should be used when the user requests to create professional business documents (proposals, business plans, or budgets) from templates. It provides PDF templates and a Python script for generating filled documents from user data.
releasenote
DataDog
Create or update release notes for changes in the current branch using Reno, following dd-trace-py's conventions and the guidelines in docs/releasenotes.rst.
report-research
numerai
Write a complete Numerai experiment report in experiment.md (abstract, methods, results tables, decisions, next steps) and generate/link the standard show_experiment plot(s). Use after running any Numerai research experiments, or when a user asks for a “full report”, “write up”, “experiment.md update”, or “generate the standard plot”.