docx

Create and edit Word .docx documents with WordprocessingML formatting.

94|11|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/swaruplab/operon --skill docx-swaruplab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/swaruplab/operon/tree/main/src-tauri/protocols/docx
Command: npx skills add https://github.com/swaruplab/operon --skill docx-swaruplab

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Word document workflows often require repetitive formatting, image insertion, and careful handling of tracked changes and comments. This Skill automates Word (.docx) creation, reading, editing, and analysis to streamline professional document workflows.

Core Features & Use Cases

  • Create new documents and apply formatting (headings, tables, lists) using programmatic WordprocessingML.
  • Edit existing documents: insert images, perform find-and-replace, manage tracked changes and comments, and export polished Word outputs.
  • Use cases include producing reports, letters, or templates with consistent styling and embedded media from source content.

Quick Start

Compose and output a well-formatted Word document by applying a title, inserting an image, and adding a basic table.

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 formatting programmatically?

You can automate Word document creation by using WordprocessingML to programmatically apply formatting like headings, tables, and lists. This streamlines professional document workflows by generating consistent reports, letters, and templates directly from source content.

Can I insert images and manage tracked changes in an existing .docx file?

Yes, you can edit existing .docx files to insert images, perform find-and-replace operations, and manage tracked changes and comments. This allows you to modify documents while carefully maintaining relationships, IDs, and content types.

What is the best way to extract content and analyze Word documents at scale?

Analyzing Word documents at scale is best handled by programmatically reading the OpenXML structure to extract content. This approach automates the extraction of text and media from reports or templates without manual file processing.

Do I need lxml or defusedxml to process OpenXML files for Word document automation?

Yes, you need lxml and defusedxml to process OpenXML files for Word document automation. These dependencies provide the XML-aware tooling required to safely parse, manipulate, and generate the underlying WordprocessingML structure.

What are the limitations of using WordprocessingML for document automation?

The main limitation of using WordprocessingML for document automation is the strict requirement to carefully manage IDs, relationships, and content types. Failure to maintain these OpenXML structures can result in corrupted or unreadable Word documents.

How does the docx Skill handle document workflows?

The docx Skill handles document workflows by automating the creation, reading, editing, and analysis of Word files. It applies programmatic WordprocessingML to produce polished outputs with consistent styling and embedded media.