DOCX Manipulation

Create, edit, and manipulate Word documents programmatically using python-docx

581 stars 105 forksDocuments & Office Files

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add claude-office-skills/skills --skill docx-manipulation
Manual install
git clone --depth 1 https://github.com/claude-office-skills/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/docx-manipulation ~/.claude/skills/docx-manipulation

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# DOCX Manipulation Skill

## Overview

This skill enables programmatic creation, editing, and manipulation of Microsoft Word (.docx) documents using the **python-docx** library. Create professional documents with proper formatting, styles, tables, and images without manual editing.

## How to Use

1. Describe what you want to create or modify in a Word document
2. Provide any source content (text, data, images)
3. I'll generate python-docx code and execute it

**Example prompts:**
- "Create a professional report with title, headings, and a table"
- "Add a header and footer to this document"
- "Generate a contract document with placeholders"
- "Convert this markdown content to a styled Word document"

## Domain Knowledge

### python-docx Fundamentals

```python
from docx import Document
from docx.shared import Inches, Pt, Cm
from docx.enum.text import WD_ALIGN_PARAGRAPH
from docx.enum.style import WD_STYLE_TYPE

# Create new document
doc = Document()

# Or open existing
doc = Document('existing.docx')
```

### Document Structure
```
Document
├── sections (margins, orientation, size)
├── paragraphs (text with formatting)
├── tables (rows, cells, merged cells)
├── pictures (inline images)
└── styles (predefined formatting)
```

### Adding Content

#### Paragraphs & Headings
Read the full skill on GitHub

Details

Skill name
docx-manipulation
Path
docx-manipulation/SKILL.md
License
MIT
Repo updated
31 January 2026

FAQ

What does the DOCX Manipulation skill do?

Create, edit, and manipulate Word documents programmatically using python-docx

How do I install the DOCX Manipulation skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add claude-office-skills/skills --skill docx-manipulation. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is DOCX Manipulation popular?

It lives in claude-office-skills/skills, which has 581 GitHub stars and 105 forks.

Related skills

Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.