docx

Generate, edit, and analyze Word documents with OOXML operations.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/haidonglethqb/CloudSchool --skill docx-haidonglethqb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/haidonglethqb/CloudSchool/tree/main/.claude/skills/document-skills/docx
Command: npx skills add https://github.com/haidonglethqb/CloudSchool --skill docx-haidonglethqb

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The docx skill enables programmatic creation, modification, and analysis of Word documents to replace manual, error-prone editing workflows with repeatable automation.

Core Features & Use Cases

  • Create, edit, and format .docx files using a code-based approach (paragraphs, runs, tables, images, and styles).
  • Apply tracked changes and comments to documents to support review workflows and collaboration.
  • Validate and extract content, preserve formatting, and support template-driven document generation for reports and proposals.

Quick Start

Create a new Word document from a template and export it as a .docx using the docx skill.

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 without manual formatting?

Automate Word document creation by using a document-model library to generate, edit, and format .docx files with deterministic scripts. This replaces manual formatting by programmatically managing paragraphs, runs, tables, images, and styles.

Can I apply tracked changes and comments to a .docx file programmatically?

Yes, you can apply tracked changes and comments to a .docx file programmatically. This capability supports review workflows and collaboration by allowing scripts to insert revisions and annotations directly into the document model.

What is the best way to generate template-driven Word reports in batch?

The best way to generate template-driven Word reports in batch is using document automation scripts. This method processes OOXML templates to populate content, preserve formatting, and export multiple .docx files deterministically.

Does this document automation approach require parsing raw OOXML?

No, this approach uses a document-model library built on lxml and defusedxml, so you interact with paragraphs, runs, and tables directly. You do not need to manually parse raw OOXML files to extract content or apply styles.

Why use a code-based approach for Word document analysis and validation?

Use a code-based approach for Word document analysis to validate content and extract data deterministically. It replaces error-prone manual reviews by programmatically checking formatting and extracting text from .docx files.

What are the limitations of using scripts for Word document automation?

The main limitation of using scripts for Word document automation is that complex graphical layouts may not map cleanly to the document model. Additionally, users need familiarity with the underlying OOXML structure for advanced style management.