doc

Edit and review DOCX documents while preserving layout with python-docx.

302|22|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/JetBrains/skills --skill doc-jetbrains
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc
Source: https://github.com/JetBrains/skills/tree/main/doc
Command: npx skills add https://github.com/JetBrains/skills --skill doc-jetbrains

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automating and safely editing DOCX documents is error-prone and time-consuming; this skill streamlines reading, creating, or updating Word files while preserving layout fidelity.

Core Features & Use Cases

  • Read DOCX content for review and approval while preserving styles.
  • Create and edit DOCX documents with professional formatting using python-docx.
  • Use case: update templates with client data while maintaining layout and styles.

Quick Start

Provide a DOCX document and specify the desired edits or review steps to apply.

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 file while preserving its original layout and formatting?

To edit a DOCX file while preserving layout, this skill reads content and applies updates using python-docx. It maintains original styles and layout fidelity during document manipulation, ensuring formatting corrections or template updates do not break the existing visual structure.

What is the best way to automate template updates across business Word documents?

Automating template updates across business Word documents is handled by reading the DOCX content and applying specified edits via python-docx. This approach safely updates client data and performs content localization while strictly maintaining the document's professional formatting and layout fidelity.

Can I visually verify DOCX formatting corrections after applying edits?

Yes, you can visually verify DOCX formatting corrections. The skill includes a bundled script, render_docx.py, which generates visual verifications of the edited document, allowing you to review the layout fidelity and confirm that formatting corrections were applied as intended.

Does python-docx support content localization for academic and legal documents?

python-docx supports content localization for academic and legal documents by allowing programmatic text replacement and style preservation. This skill leverages it to read, edit, and update DOCX files, ensuring that specialized document structures remain intact during the localization process.

Do I need pdf2image to review and edit DOCX documents?

You need the pdf2image dependency to support the visual verification process when reviewing and editing DOCX documents. While python-docx handles the actual document manipulation and text edits, pdf2image assists the bundled render_docx.py script in rendering the output for visual layout checks.

When should I not use python-docx for document-editing tasks?

You should avoid using python-docx for document-editing tasks that require complex visual rendering or layout generation outside of standard DOCX structures. This skill relies on python-docx for text and style manipulation, using a separate rendering script specifically for visual verification rather than dynamic layout design.