docx

Create, edit, and analyze Word documents with formatting and tracked changes.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/sockerman04/thevise-website --skill docx-sockerman04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/sockerman04/thevise-website/tree/main/skills/docx
Command: npx skills add https://github.com/sockerman04/thevise-website --skill docx-sockerman04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, pandoc, libreoffice, poppler-utils, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of professional Word documents, handling complex formatting, tracked changes, and comments efficiently.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch with custom formatting, tables, and content.
  • Document Editing: Modify existing .docx files, including adding comments, applying tracked changes, and restructuring content.
  • Content Analysis: Extract text and analyze document structure.
  • Use Case: Automatically generate a client report, incorporating specific branding, tables with precise formatting, and adding review comments to sections requiring client feedback.

Quick Start

Use the docx skill to create a new document with the title "Project Proposal" and add a section titled "Introduction".

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically create and format a Word document?

You can programmatically create a Word document by utilizing the python-docx library to generate .docx files from scratch, applying custom formatting, tables, and complex layouts like precise line spacing and chart centering.

How do I add tracked changes and comments to an existing .docx file?

To add tracked changes and comments to an existing .docx file, the Skill modifies documents using python-docx and OOXML for low-level control, allowing you to apply revisions and insert review notes without breaking original formatting.

Does python-docx support complex layout requirements like line spacing and chart centering?

Yes, python-docx supports complex layout requirements. The Skill leverages python-docx alongside OOXML manipulation to ensure deterministic document formatting, handling specific layout needs including line spacing and chart centering.

What is the best way to extract text and analyze the structure of a Word document?

The best way to extract text and analyze a Word document's structure is through the Skill's content analysis capabilities. It parses .docx files to retrieve text content and evaluate document organization for automated processing.

Can I use LibreOffice or pandoc to convert documents before editing them with python-docx?

Yes, the Skill integrates pandoc and LibreOffice as dependencies. You can use these tools to handle format conversions and prepare documents before using python-docx for detailed editing and formatting preservation.

Why does my Word document formatting break when applying tracked changes programmatically?

Formatting may break if modifications lack low-level OOXML control. The Skill prevents this by using python-docx and docx-js for deterministic document manipulation, ensuring formatting preservation while applying tracked changes and restructuring content.