office-docx

Automate Word DOCX creation, analysis, and modification with Python tooling.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word documents (.docx) are frequently created and updated manually; this skill automates reading, creating, and editing DOCX files, reducing repetitive formatting tasks.

Core Features & Use Cases

  • Read, analyze, and extract content from DOCX by unpacking and parsing XML.
  • Create and edit Word documents using Python tooling and docx libraries, including formatting, images, tables, and tracked changes.
  • Convert or prepare structured Word outputs (templates, reports, memos) for consistent professional documents.

Quick Start

Generate a DOCX report with a title, headings, and a data table from your data.

Frequently Asked Questions about office-docx

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

FAQPage Schema
How do I automate Word document creation and editing?

Automate Word document creation and editing by using Python tooling to unpack, parse, and modify DOCX XML structures. This approach handles drafting, formatting, template creation, and image insertion to eliminate repetitive manual updates.

Can I extract content and data from an existing DOCX file?

Extract content from a DOCX file by unpacking and parsing its underlying XML structure. This process reads and analyzes document elements, allowing you to pull structured data from existing Word files for reporting or migration.

Does this approach support image insertion and tables in Word?

Image insertion and tables are supported within the DOCX automation workflow. Python tooling and docx libraries apply formatting and insert visual elements directly into the document XML to generate professional reports and memos.

Do I need lxml and defusedxml to parse DOCX files?

Lxml and defusedxml are required dependencies to safely parse and manipulate DOCX XML. These libraries provide the validation and XML processing foundation needed to unpack and pack Word documents without breaking file structures.

What is the best way to manage tracked changes in DOCX workflows?

Manage tracked changes in DOCX workflows by programmatically modifying the document XML via Python tooling. This enables automated creation and resolution of revisions across multiple files, ensuring consistent version control.