doc

Edit, format, and verify DOCX documents with python-docx and render_docx.py.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/peteanderson80/skills --skill doc-peteanderson80
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc
Source: https://github.com/peteanderson80/skills/tree/main/skills/doc
Command: npx skills add https://github.com/peteanderson80/skills --skill doc-peteanderson80

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdf2image, and includes scripts (resource) components.

What problem does it solve?

Edit, format, and verify DOCX documents to ensure professional layouts and typography.

Core Features & Use Cases

  • Edit and format DOCX files using python-docx to apply consistent styles.
  • Render and visually inspect documents with the included render_docx.py tool to verify layouts across pages.
  • Use case: prepare a client-ready contract or report with precise headings, tables, and margins.

Quick Start

Run the bundled render_docx.py script on a sample document to render pages for quick visual verification.

Frequently Asked Questions about doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify DOCX layout fidelity across pages programmatically?

To verify DOCX layout fidelity, you can render document pages to images using the bundled render_docx.py script. This visual check requires optional soffice and pdftoppm dependencies to generate page images for inspecting professional layouts and typography.

Can I apply consistent styling across headings and tables in a DOCX file using Python?

Yes, you can apply consistent styling to headings and tables in a DOCX file using the python-docx library. This Skill edits and formats documents programmatically to ensure precise margins and uniform typography across elements.

Do I need python-docx to edit and format DOCX documents for professional layouts?

Yes, python-docx is required for editing and formatting DOCX documents to ensure professional layouts. The Skill uses this library to apply consistent styles across headings, tables, and lists for client-ready reports.

What is the best way to visually inspect a generated DOCX document before delivery?

The best way to visually inspect a generated DOCX document is by running the bundled render_docx.py script. It renders document pages to images, allowing you to visually verify layout consistency and check formatting fidelity before delivery.

Does rendering DOCX pages for visual checks require additional system dependencies?

Yes, rendering DOCX pages for visual checks requires additional system dependencies. You need optional soffice and pdftoppm tools, along with the pdf2image package, to generate images from your documents for layout verification.

Why are my DOCX tables and headings misaligned when preparing a client-ready report?

DOCX tables and headings become misaligned without consistent styling rules. This Skill uses python-docx to apply uniform formatting across elements and render_docx.py to visually verify layouts, ensuring professional typography and margins.