Office & DocumentsIntermediate
docx
Create, read, and manipulate Word (.docx) documents.
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/anthropics/skills --skill docxnpx skills add https://github.com/anthropics/skills --skill docxOr paste this URL into your assistant to install:
Overview
What This Skill Does
Generates, edits, and formats Microsoft Word (.docx) documents programmatically. It sets paragraph alignments, fonts, tables, and embeds headers or footers.
Application
When to use this Skill
- Generating clean invoices, contracts, and proposals dynamically
- Parsing docx files to extract raw structured text and data
- Adding custom styling, logos, and layouts to client reports
- Automating batch updates of legal doc templates
- Converting structured markdown notes into office document formats
Documentation
Show Skills.md file
DOCX creation, editing, and analysis
Overview
A .docx file is a ZIP archive containing XML files.
Quick Reference
| Task | Approach |
|---|---|
| Read/analyze content | pandoc or unpack for raw XML |
| Create new document | Use docx-js - see Creating New Documents below |
| Edit existing document | Unpack → edit XML → repack - see Editing Existing Documents below |
Converting .doc to .docx
Legacy .doc files must be converted before editing:
python scripts/office/soffice.py --headless --convert-to docx document.doc
Reading Content
# Text extraction with tracked changes
pandoc --track-changes=all document.docx -o output.md
# Raw XML access
python scripts/office/unpack.py document.docx unpacked/
Lines 1 - 31 of 584
Recommendations
Explore other random skills
CreativeIntermediate
frontend-dev
Full-stack frontend with cinematic animations, AI-generated media via MiniMax API, and generative art
CreativeAdvanced
fullstack-dev
Backend architecture with REST API design, auth flows, real-time features, and database integration
CreativeIntermediate
android-native-dev
Android native development with Kotlin/Jetpack Compose, Material Design 3, and accessibility