DOCX

Work with Word documents (DOCX/DOC) - read, extract content, create documents, convert formats, and process templates. Use when the user asks to work with Word files or .docx documents.

Install

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

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

From the SKILL.md

# Word Document (DOCX) Processing Skill

When working with Word documents, follow these guidelines:

## 1. Reading & Extracting from DOCX

**Extract text content**:
```bash
# Using pandoc
pandoc document.docx -t plain -o output.txt

# Using python-docx
python3 -c "
import docx
doc = docx.Document('document.docx')
for para in doc.paragraphs:
    print(para.text)
"

# Using antiword (for .doc files)
antiword document.doc > output.txt
```

**Extract with formatting**:
```bash
# Convert to markdown (preserves structure)
pandoc document.docx -t markdown -o output.md

# Convert to HTML
pandoc document.docx -t html -o output.html
```

**Extract images**:
```bash
# DOCX files are ZIP archives
unzip -j document.docx 'word/media/*' -d extracted_images/

# Or using python
python3 << 'EOF'
import docx
import os

doc = docx.Document('document.docx')
os.makedirs('images', exist_ok=True)

for i, rel in enumerate(doc.part.rels.values()):
    if "image" in rel.target_ref:
        img = rel.target_part.blob
        with open(f'images/image_{i}.png', 'wb') as f:
            f.write(img)
EOF
```

## 2. Creating DOCX Files

**From plain text**:
```bash
# Using pandoc
pandoc input.txt -o output.docx
```

**From markdown**:
```bash
# Basic conversion
pandoc input.md -o output.docx

# With custom styling
pandoc input.md --reference-doc=template.docx -o output.docx
```

**From HTML**:
```bash
pandoc input.html -o output.docx
```

**Using Python**:
Read the full skill on GitHub

Details

Skill name
docx
Path
skills/docx/SKILL.md
Repo updated
22 January 2026

FAQ

What does the DOCX skill do?

Work with Word documents (DOCX/DOC) - read, extract content, create documents, convert formats, and process templates. Use when the user asks to work with Word files or .docx documents.

How do I install the DOCX skill?

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

Is DOCX popular?

It lives in thechandanbhagat/claude-skills, which has 9 GitHub stars and 0 forks.

Related skills

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