doc

Read, create, and edit DOCX files with visual layout review.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of reading, creating, or editing DOCX documents, especially when formatting or layout fidelity is crucial, by providing a clear, visual review workflow.

Core Features & Use Cases

  • Visual Review: Supports converting DOCX to PDF to PNGs for precise visual inspection of layout, tables, and diagrams.
  • Professional Formatting: Utilizes python-docx for structured creation and editing with heading styles, tables, and lists.
  • Validation: Allows re-rendering and inspecting the pages after each meaningful change to ensure the final document is client-ready.
  • Use Case: A designer can use this Skill to ensure layout fidelity in DOCX documents before delivering to a client.

Quick Start

Review the layout of 'presentation.docx' and apply necessary formatting changes using the 'doc' skill.

Frequently Asked Questions about doc

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

FAQPage Schema
How do I automate DOCX visual review and formatting validation?

Automate DOCX visual review by converting documents to PDF and then to PNGs for precise inspection of layout, tables, and diagrams. This workflow validates formatting fidelity and ensures the final document is client-ready after each meaningful edit.

Can I use python-docx to edit DOCX files without breaking existing layout?

Yes, python-docx supports structured creation and editing of DOCX files using heading styles, tables, and lists while preserving layout. Re-rendering pages after changes allows you to verify that formatting remains intact.

What's the best way to extract text from DOCX files while checking formatting fidelity?

The best way to extract text while checking formatting fidelity is using a combination of python-docx for structured text extraction and visual rendering to PDF or PNGs to inspect the layout visually.

Do I need LibreOffice and Poppler installed to render DOCX files to images?

Yes, you need LibreOffice and Poppler installed as system tools to render DOCX files to images. The process relies on pdf2image for conversion, which requires Poppler to generate PNGs for visual inspection.

Does python-docx support rendering DOCX files to PDF for layout review?

python-docx handles document creation and text extraction but relies on LibreOffice for DOCX to PDF rendering. The PDF is then converted to PNGs using pdf2image to perform precise visual layout reviews.

Why does my DOCX formatting break when editing tables and headings programmatically?

DOCX formatting may break during programmatic edits due to style conflicts or structural changes. Re-rendering the document to PDF and inspecting the PNG output after each modification helps identify and correct layout issues immediately.