doc

Read, edit, and validate DOCX documents with python-docx.

1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/wangzhongyuan11/open-claude-code --skill doc-wangzhongyuan11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc
Source: https://github.com/wangzhongyuan11/open-claude-code/tree/main/.opencode/skills/doc
Command: npx skills add https://github.com/wangzhongyuan11/open-claude-code --skill doc-wangzhongyuan11

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill helps users efficiently read, edit, and ensure the layout fidelity of DOCX documents, reducing manual formatting work and inconsistencies.

Core Features & Use Cases

  • DOCX Editing: Programmatically modify headings, styles, tables, and lists in DOCX files using python-docx.
  • Rendering Previews: Generate visual previews of documents via the bundled render_docx.py script to verify layout and pagination.
  • Quality Assurance: Validate typography, spacing, and alignment before delivery across templates and client reports.

Quick Start

Render the DOCX to PNG previews and verify formatting using the bundled render_docx.py script.

Frequently Asked Questions about doc

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

FAQPage Schema
How do I programmatically edit DOCX documents using python-docx?

To programmatically edit DOCX documents, this skill automates reading, modifying, and validating headings, styles, tables, and lists in DOCX files using python-docx. It directly targets professional document creation and formatting to reduce manual layout work.

How do I render DOCX previews to verify layout and pagination?

To render DOCX previews, this skill uses a bundled render_docx.py script to generate visual previews of documents. This mechanism helps you verify layout, typography, and pagination before delivering reports or proposals.

What's the best way to validate formatting in DOCX templates?

To validate formatting in DOCX templates, this skill checks typography, spacing, and alignment consistency. It applies quality assurance logic to ensure layout fidelity across client reports and templates before final delivery.

Do I need pdf2image to render DOCX previews?

Yes, rendering DOCX previews requires the pdf2image dependency. You need this library installed in your environment to successfully generate visual previews using the bundled render_docx.py script.

Can I use python-docx for layout validation in client reports?

Yes, you can use python-docx with this skill for layout validation in client reports. It automates modifying professional documents and applies quality assurance to validate typography and alignment before delivery.