Skip to content

Complete Word document creation, editing, and analysis guide built on docx-js and XML unpacking for .docx files.

CCM score
76 of 100
skills.sh installs
526
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers reading via pandoc with tracked changes, raw XML unpacking, and conversion of legacy .doc files to .docx
  • Includes docx-js setup for page sizing, styles, numbered lists, and tables, plus validate.py checks after generation
  • Enforces US Letter defaults over docx-js A4 defaults and DXA-only table widths for consistent rendering in Google Docs
  • Designed for generating reports, memos, letters, and templates, and for editing existing Word files with tracked changes or comments

Install

$ npx -y skills add davila7/claude-code-templates --skill docx -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

DOCX creation, editing, and analysis

Overview

A .docx file is a ZIP archive containing XML files.

Quick Reference

TaskApproach
Read/analyze contentpandoc or unpack for raw XML
Create new documentUse docx-js - see Creating New Documents below
Edit existing documentUnpack → 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/

Converting to Images

python scripts/office/soffice.py --headless --convert-to pdf document.docx
pdftoppm -jpeg -r 150 document.pdf page

Accepting Tracked Changes

To produce a clean document with all tracked changes accepted (requires LibreOffice):

python scripts/accept_changes.py input.docx output.docx

Creating New Documents

Details

Repository
github.com/davila7/claude-code-templates
Categories
Office Files & Slides, Technical Documentation
First seen
Jun 3, 2026

Questions

What does the docx skill do for Claude Code?

The docx skill lets Claude Code create, read, edit and manipulate Word documents in .docx format. It covers tasks such as adding headings, tables of contents, page numbers, images, find-and-replace, tracked changes and comments.

How do I install the docx skill?

Run npx -y skills add davila7/claude-code-templates --skill docx -y in your project. Once installed, the agent can produce polished Word reports, memos, letters and templates when you ask for a .docx deliverable.

Which Office Files & Slides skills sit alongside docx on Claude Marketplaces?

The docx skill is listed in the Office Files & Slides category, alongside slideshow and several lark skills for documents, sheets and whiteboards. The docx skill focuses on Word files specifically, and it says not to use it for PDFs, spreadsheets or Google Docs.

Can the docx skill edit existing Word files?

Yes, the skill covers editing existing documents, including reading content, extracting or reorganizing text, replacing images and performing find-and-replace. It also handles tracked changes and comments, and converts legacy .doc files to .docx before editing.

More from davila7/claude-code-templates

All 398