doc

Create and edit DOCX documents with python-docx and validate layouts via rasterization.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, pdf2image, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and visual validation of DOCX documents, ensuring professional formatting and layout fidelity.

Core Features & Use Cases

  • Content Creation & Editing: Generate and modify DOCX files with precise control over styles, tables, and lists using python-docx.
  • Visual Layout Validation: Render DOCX files to PDF and then to images for accurate review of pagination, diagrams, and overall appearance.
  • Use Case: Prepare a client-ready report in DOCX format, ensuring all headings, tables, and figures are perfectly aligned and paginated before delivery.

Quick Start

Use the doc skill to create a new document with the title 'Project Proposal' and add a paragraph of placeholder text.

Frequently Asked Questions about doc

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

FAQPage Schema
How do I generate a DOCX document with python-docx and validate its layout?

Generate structured DOCX content with python-docx, then render the file to PDF and rasterize it to images using Poppler to visually validate pagination, tables, and spacing.

What's the best way to ensure professional formatting in a generated DOCX file?

Ensure professional DOCX formatting by applying precise style controls for typography and spacing via python-docx, followed by visual rendering to verify layout fidelity and legibility.

Can I visually check pagination and diagrams in a DOCX file before delivery?

Visually check DOCX pagination and diagrams by converting the document to PDF and then rasterizing it to images, allowing accurate review of figures and overall appearance.

Does this DOCX creation approach require LibreOffice and Poppler for visual verification?

Visual verification of DOCX layout requires LibreOffice and Poppler-based rasterization to render files to PDF and images, ensuring high-fidelity review of the final document appearance.

Why does my DOCX layout look misaligned when generated programmatically?

DOCX layout misalignment occurs when typography and spacing expectations are unmet; visual validation through PDF rendering and image rasterization identifies pagination and alignment issues for correction.

Can I edit existing tables and lists in a DOCX file using python-docx?

Edit existing DOCX tables and lists using python-docx to modify structured content with precise control over document styles and layout validation.