doc

Read, create, and edit DOCX documents while preserving formatting fidelity.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

DOCX documents often require careful layout preservation during edits and review. This Skill provides a workflow to read, create, and modify DOCX files while maintaining formatting fidelity, leveraging python-docx for edits and a bundled renderer to visually verify results.

Core Features & Use Cases

  • Visual review and editing of DOCX content (headings, tables, styles) with a deterministic rendering path.
  • Render DOCX to PDF or PNGs using LibreOffice and pdf2image, or with the bundled scripts/render_docx.py for quick checks.
  • Organize intermediate outputs and final artifacts, ensuring stable, reviewable delivery.

Quick Start

Run the bundled renderer on a sample DOCX and inspect the generated page images to verify formatting.

Frequently Asked Questions about doc

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

FAQPage Schema
How do I edit a DOCX document and preserve its original layout and formatting?

To edit a DOCX document while preserving layout fidelity, this Skill uses python-docx to read and modify content like headings, tables, and styles, ensuring formatting remains intact during content creation and document review workflows.

What's the best way to visually review DOCX formatting changes after editing?

You can visually review DOCX formatting changes by rendering the document to PDF or PNGs. This Skill uses LibreOffice and Poppler, along with the bundled render_docx.py script, to generate page images for quick and deterministic visual verification of formatting.

Do I need LibreOffice and Poppler installed to render DOCX files for visual review?

Yes, rendering DOCX files to PDF or PNGs requires LibreOffice and Poppler installed in your environment. These dependencies work with the bundled render_docx.py tool and pdf2image to provide a deterministic rendering path for visual review.

Can I use python-docx to automate creating and modifying reports and proposals?

Yes, you can use python-docx to automate the creation and editing of DOCX documents for reports, proposals, and manuscripts. This Skill organizes intermediate outputs and final artifacts to ensure stable, reviewable delivery across office workflows.

Why does my DOCX rendering fail when using the bundled render_docx.py script?

If your DOCX rendering fails, verify that LibreOffice and Poppler are correctly installed, as the bundled render_docx.py script depends on them alongside pdf2image to convert documents into page images for visual inspection.