doc

Create, edit, and render DOCX documents with python-docx and LibreOffice.

24.7k|1.7k|Updated Nov 25, 2025
One-click install
npx skills add https://github.com/openai/skills --skill doc-openai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc
Source: https://github.com/openai/skills/tree/main/skills/.curated/doc
Command: npx skills add https://github.com/openai/skills --skill doc-openai

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 precise formatting of DOCX documents, ensuring professional quality and visual fidelity.

Core Features & Use Cases

  • Professional Formatting: Create and edit DOCX files with consistent typography, spacing, and hierarchy.
  • Visual Validation: Render DOCX files to images for accurate layout, table, and diagram review.
  • Structured Content: Programmatically manage headings, styles, tables, and lists within documents.
  • Use Case: Generate a client-ready report in DOCX format, ensuring all tables and charts are perfectly aligned and legible, then provide visual proof through rendered pages.

Quick Start

Use the doc skill to create a new document with the title 'Project Proposal' and add a section for 'Introduction'.

Frequently Asked Questions about doc

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

FAQPage Schema
How do I programmatically create a DOCX document with python-docx and ensure professional formatting?

Programmatic DOCX document creation uses python-docx to manage headings, styles, and tables, ensuring professional formatting and consistent typography. It structures content hierarchically to maintain layout fidelity for client-ready reports.

Can I render a DOCX file to images to validate visual layout and table alignment?

Yes, you can render DOCX files to images to validate visual presentation. The process relies on pdf2image alongside optional system tools like LibreOffice and Poppler to accurately review layout, tables, and diagrams.

What's the best way to structure tables and lists in a generated DOCX report?

The best way to structure tables and lists in a generated DOCX report is using python-docx to programmatically manage content blocks. This ensures structured content with precise spacing and hierarchy for client-ready documents.

Do I need LibreOffice and Poppler installed to edit DOCX files with this approach?

No, you only need python-docx to create and edit DOCX files. LibreOffice and Poppler are optional system tools required solely for rendering documents to images for visual validation and layout review.

Why does my generated DOCX file have inconsistent typography and hierarchy?

Inconsistent typography and hierarchy in a generated DOCX file often result from unmanaged styles. Using python-docx to programmatically apply consistent styles, spacing, and heading levels ensures professional formatting and layout fidelity.

Are there limitations when using python-docx for client-ready report generation?

Limitations of python-docx for report generation include handling complex visual rendering natively. While it excels at content manipulation and formatting, validating visual presentation requires external rendering tools like LibreOffice and Poppler.