docx

Create and edit Word documents with formatting, images, and tracked changes.

4|Updated Nov 14, 2025
One-click install
npx skills add https://github.com/MagicBowen/dogent --skill docx-magicbowen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/MagicBowen/dogent/tree/main/claude/skills/skills/docx
Command: npx skills add https://github.com/MagicBowen/dogent --skill docx-magicbowen

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Creating, editing, and formatting Word documents (.docx) manually is time-consuming and error-prone; this skill automates generation, reading, editing, and analysis of DOCX content, including templates, headers/footers, images, and track changes.

Core Features & Use Cases

  • Create and edit Word documents programmatically, including templates, headings, tables, and images.
  • Read, analyze, and modify existing .docx content, including find-and-replace, comments, and tracked changes.
  • Convert content into polished Word documents suitable for reports, letters, memos, proposals, or templates.

Quick Start

Create a polished Word document from your input content using built-in templates and formatting options.

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 and formatting by using Python scripts to manipulate .docx files. This approach generates reports and templates programmatically, handling headings, tables, images, and Track Changes without manual formatting.

Can I read and modify existing .docx content like headers, footers, and tracked changes?

Yes, you can read and modify existing .docx files. Python scripts analyze and edit document content, supporting find-and-replace operations, comments, tracked changes, headers, footers, and embedded images.

Does automating document generation require specific Python dependencies?

Automating document generation requires Python 3.10 or higher. The environment must include specific dependencies like defusedxml, lxml, and validators to parse XML structures and manipulate Word document content securely.

What is the best way to generate professional reports from raw content into a Word template?

The best way to generate professional reports is converting raw content into a polished .docx file using built-in templates. Python scripts apply formatting options automatically, creating structured documents suitable for proposals, letters, and memos.

How does find-and-replace work when editing Word documents via Python scripts?

Find-and-replace works by programmatically scanning the .docx XML structure. Python scripts locate specific text strings within the document and replace them, allowing bulk text updates and template variable population without opening Word.

Are there limitations when manipulating Word documents without using native Microsoft Office applications?

Manipulating .docx files via Python scripts operates directly on XML, bypassing native Office applications. Complex layout rendering or real-time collaboration features are unsupported, focusing strictly on static content generation, text analysis, and structural formatting.