docx

Create, edit, and extract text from .docx files using Python.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Baptistecaille/Manus --skill docx-baptistecaille
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Baptistecaille/Manus/tree/main/skills/docx
Command: npx skills add https://github.com/Baptistecaille/Manus --skill docx-baptistecaille

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill empowers Claude to efficiently create, edit, and analyze professional Word documents (.docx files), handling complex tasks like tracked changes, comments, and formatting preservation.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using Python.
  • Content Editing: Modify existing documents, including tracked changes and comments.
  • Data Extraction: Extract text and structure from .docx files.
  • Use Case: A user needs to review a legal contract. Claude can use this Skill to accept/reject tracked changes, add comments, and ensure all formatting is preserved before sending it back.

Quick Start

Use the docx skill to create a new document with the title 'Project Proposal' and a paragraph saying 'This is the main content.'.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate a Word document with tracked changes and comments using Python?

You can programmatically create and edit .docx files with tracked changes and comments by leveraging python-docx and direct OOXML manipulation, which preserves formatting while modifying document content.

Can I extract text and structure from an existing .docx file?

Yes, you can extract text and structure from existing .docx files. The Skill facilitates comprehensive document analysis, pulling content and formatting details from Word documents for further processing or review.

Does python-docx support preserving formatting when editing Word documents?

python-docx supports formatting preservation during document editing. This Skill enhances that capability by combining python-docx with direct OOXML manipulation to ensure professional document structures remain intact.

What is the best way to automate reviewing and accepting tracked changes in a legal contract?

The best way to automate reviewing tracked changes in a legal contract is using this Skill to programmatically accept or reject revisions, add comments, and ensure formatting is preserved before returning the .docx file.

How do I modify OOXML directly for advanced Word document generation?

You can modify OOXML directly for advanced Word document generation through this Skill. It enables direct OOXML manipulation alongside python-docx to handle complex formatting and document features not accessible via standard libraries.

When should I use direct OOXML manipulation instead of python-docx for document editing?

You should use direct OOXML manipulation for complex document editing tasks like specific tracked changes or comments that exceed standard python-docx capabilities, ensuring precise formatting preservation in professional .docx files.