docx

Read, create, and edit DOCX documents locally using Python-docx and XML.

704|58|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/openyak/desktop --skill docx-openyak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/openyak/desktop/tree/main/backend/app/data/skills/docx
Command: npx skills add https://github.com/openyak/desktop --skill docx-openyak

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word DOCX documents are frequently created or updated manually, which is error-prone and time-consuming. This Skill provides programmatic reading, creation, and editing of DOCX files, preserving styles, tables, images, headers/footers, and tracked changes.

Core Features & Use Cases

  • Reading DOCX: extract text, tables, and images.
  • Creating & Editing: build documents with python-docx and update content via XML.
  • Layout & Tracking: manage styles, headers/footers, tables, images, and tracked changes locally.
  • Use Case: Automate template-based report generation and batch updates to project documents on a local machine.

Quick Start

Create a sample DOCX using Python and save it to disk.

Frequently Asked Questions about docx

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

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

Automate Word document creation and editing locally by using python-docx for generation and XML manipulation for advanced styling. This approach handles headers, footers, tables, images, and tracked changes without relying on cloud services.

How do I extract text, tables, and images from a DOCX file?

Extract text, tables, and images from a DOCX file by programmatically reading the document structure. The Skill parses DOCX files locally to retrieve content while preserving the original document styles and layout elements.

Do I need Python libraries to perform advanced XML styling in DOCX files?

Yes, you need Python libraries defusedxml and lxml to perform advanced XML styling in DOCX files. These dependencies are required for parsing and manipulating the underlying XML structure for complex document edits.

What is the best way to batch update project documents with tracked changes?

The best way to batch update project documents with tracked changes is programmatic DOCX editing. This Skill applies template-based updates and manages revisions locally, preventing manual editing errors and saving time across multiple files.

Can I manage headers, footers, and tables without cloud services?

Yes, you can manage headers, footers, and tables without cloud services. This Skill performs local DOCX processing to manipulate document layouts, apply advanced XML edits, and handle structural elements entirely offline.