docx

Comprehensive Word document toolkit for reading, creating, and editing .docx files. Supports text extraction, document creation with python-docx, and tracked changes via redlining workflow. Use for legal, academic, or professional document manipulation.

5 stars

Best use case

docx is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Comprehensive Word document toolkit for reading, creating, and editing .docx files. Supports text extraction, document creation with python-docx, and tracked changes via redlining workflow. Use for legal, academic, or professional document manipulation.

Teams using docx should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/docx/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/data/documents/docx/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/docx/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How docx Compares

Feature / AgentdocxStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Comprehensive Word document toolkit for reading, creating, and editing .docx files. Supports text extraction, document creation with python-docx, and tracked changes via redlining workflow. Use for legal, academic, or professional document manipulation.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Docx

## Overview

This skill enables comprehensive Word document operations through multiple specialized workflows for reading, creating, and editing documents.

## Quick Start

```python
from docx import Document

# Read existing document
doc = Document("document.docx")
for para in doc.paragraphs:
    print(para.text)

# Create new document
doc = Document()
doc.add_heading("My Title", level=0)
doc.add_paragraph("Hello, World!")
doc.save("output.docx")
```

## When to Use

- Extracting text and tables from Word documents
- Creating professional documents programmatically
- Generating reports from templates
- Bulk document processing and modification
- Legal document redlining with tracked changes
- Converting Word documents to other formats
- Adding headers, footers, and page numbers
- Inserting images and tables into documents

## Version History

- **1.1.0** (2026-01-02): Added Quick Start, When to Use, Execution Checklist, Error Handling, Metrics sections; updated frontmatter with version, category, related_skills
- **1.0.0** (2024-10-15): Initial release with python-docx, pandoc integration, redlining workflow

## Sub-Skills

- [Execution Checklist](execution-checklist/SKILL.md)
- [Error Handling](error-handling/SKILL.md)
- [Metrics](metrics/SKILL.md)
- [Dependencies](dependencies/SKILL.md)

## Sub-Skills

- [Core Capabilities](core-capabilities/SKILL.md)
- [Extract Text with Pandoc (+2)](extract-text-with-pandoc/SKILL.md)
- [Basic Document Creation (+3)](basic-document-creation/SKILL.md)
- [Modify Existing Document (+1)](modify-existing-document/SKILL.md)
- [Step 1: Convert to Markdown (+4)](step-1-convert-to-markdown/SKILL.md)
- [Extract Metadata](extract-metadata/SKILL.md)
- [Working with Headers/Footers](working-with-headersfooters/SKILL.md)

Related Skills

python-docx-report-generation-from-database

5
from vamseeachanta/workspace-hub

Sub-skill of python-docx: Report Generation from Database (+1).

python-docx-batch-document-generation

5
from vamseeachanta/workspace-hub

Sub-skill of python-docx: Batch Document Generation.

python-docx-6-style-management-and-custom-styles

5
from vamseeachanta/workspace-hub

Sub-skill of python-docx: 6. Style Management and Custom Styles.

python-docx-5-image-insertion-and-positioning

5
from vamseeachanta/workspace-hub

Sub-skill of python-docx: 5. Image Insertion and Positioning.

python-docx-4-headers-footers-and-page-setup

5
from vamseeachanta/workspace-hub

Sub-skill of python-docx: 4. Headers, Footers, and Page Setup.

python-docx-3-table-creation-and-formatting

5
from vamseeachanta/workspace-hub

Sub-skill of python-docx: 3. Table Creation and Formatting.

python-docx-2-advanced-paragraph-formatting

5
from vamseeachanta/workspace-hub

Sub-skill of python-docx: 2. Advanced Paragraph Formatting.

python-docx-1-document-structure

5
from vamseeachanta/workspace-hub

Sub-skill of python-docx: 1. Document Structure (+3).

python-docx-1-basic-document-creation

5
from vamseeachanta/workspace-hub

Sub-skill of python-docx: 1. Basic Document Creation.

office-docs-python-docx-report-generation

5
from vamseeachanta/workspace-hub

Sub-skill of office-docs: Python-docx Report Generation (+4).

docx-templates-template-variables-not-rendering

5
from vamseeachanta/workspace-hub

Sub-skill of docx-templates: Template Variables Not Rendering (+2).

docx-templates-fastapi-service

5
from vamseeachanta/workspace-hub

Sub-skill of docx-templates: FastAPI Service.