# DOCX

> DOCX is an open-source agent skill for files and documents. Lets an agent create, read, edit and validate Word .docx files. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/melandlabs/openloomi/tree/main/skills/docx
- **Repository:** https://github.com/melandlabs/openloomi
- **GitHub stars:** 1,046
- **License:** Apache-2.0
- **Skill name:** docx
- **Collection:** https://github.com/melandlabs/openloomi
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-12-02

## About

This skill gives an agent a workflow for working with Word documents. For new files it generates documents with the docx JavaScript library, covering page size, styles, lists, tables, images, page breaks, tables of contents and headers or footers, and then runs a validation script on the output. For existing files it unpacks the .docx archive, lets the agent edit the underlying XML, and repacks it with a validation step.

Editing covers tracked changes, comments and smart-quote handling, with guidance on keeping original run formatting intact. Helper scripts cover unpacking and packing, adding comments, accepting tracked changes, converting legacy .doc files through LibreOffice, and rendering pages to images.

The skill expects Python for its helper scripts, Node.js with the docx package for new documents, and pandoc, LibreOffice and Poppler for text extraction, conversion and image rendering. Its license is proprietary, with terms in a LICENSE.txt file in the skill folder.

## When your agent uses it

> Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a "report", "memo", "letter", "template", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/melandlabs/openloomi/tree/HEAD/skills/docx)
- [Network calls found in its scripts](https://github.com/melandlabs/openloomi/tree/HEAD/skills/docx)
- [License: Apache-2.0](https://github.com/melandlabs/openloomi/tree/HEAD/skills/docx)

## Features

- **Create new documents:** Builds .docx files with the docx library, including page setup, styles and headings.
- **Edit existing files:** Unpacks a Word file, changes its XML and repacks it with validation.
- **Tracked changes and comments:** Adds insertions, deletions and comment threads that stay attributed to the author.
- **Tables, lists and images:** Guides correct table widths, numbering configuration and embedded image setup.
- **Text extraction and rendering:** Reads document text with pandoc and renders pages to images for review.
- **Legacy .doc conversion:** Reads and writes older .doc files through automatic LibreOffice conversion.

## Good for

- Draft a formatted report with a table of contents and page numbers
- Apply find-and-replace edits to a Word contract
- Accept all tracked changes and produce a clean copy
- Add reviewer comments to specific passages in a .docx file
- Extract the text of a Word document for summarising
- Build a letterhead template with headers and footers

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/docx` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/docx &&
cp -R "$tmp/skills/docx" ~/.claude/skills/docx &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/docx` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/docx` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/docx &&
cp -R "$tmp/skills/docx" ~/.agents/skills/docx &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/docx` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/docx` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/docx &&
cp -R "$tmp/skills/docx" ~/.cursor/skills/docx &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/docx` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/melandlabs/openloomi.git --path skills/docx
```

Or copy the folder to `~/.gemini/skills/docx` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/docx`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/docx &&
cp -R "$tmp/skills/docx" ~/.copilot/skills/docx &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/docx` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/melandlabs/openloomi.git
```

Then copy `openloomi/skills/docx` into your agent's skills folder as `docx`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which tools does DOCX need?

Python for the helper scripts, Node.js with the docx package for creating new documents, and pandoc, LibreOffice and Poppler for extraction, conversion and rendering.

### Does DOCX handle legacy .doc files?

Yes. Legacy .doc files are converted automatically on read and write through LibreOffice.

### What author name does DOCX use for tracked changes?

It uses Claude as the author unless the user asks for a different name.

### Does DOCX work with PDFs or spreadsheets?

No. The skill says not to use it for PDFs, spreadsheets, Google Docs or unrelated coding tasks.

### How do I install DOCX in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/docx to use it in all your projects, or to .claude/skills/docx in one project.

### Does DOCX run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use DOCX?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to DOCX?

The closest alternatives to DOCX are DOCX, Md to DOCX, Convert word to md, PPTX and XLSX.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [DOCX](https://ai-powered.com/skills/docx-anthropics): DOCX is a free agent skill for files and documents.
- [Md to DOCX](https://ai-powered.com/skills/md-to-docx): Md to DOCX is an open-source agent skill for files and documents.
- [Convert word to md](https://ai-powered.com/skills/convert-word-to-md): Convert word to md is an open-source agent skill for files and documents.
- [PPTX](https://ai-powered.com/skills/pptx-melandlabs): PPTX is an open-source agent skill for files and documents.
- [XLSX](https://ai-powered.com/skills/xlsx-melandlabs): XLSX is an open-source agent skill for files and documents.
- [Md2word](https://ai-powered.com/skills/md2word): Md2word is an open-source agent skill for files and documents.
- [Convert excel to md](https://ai-powered.com/skills/convert-excel-to-md): Convert excel to md is an open-source agent skill for files and documents.
- [PPTX](https://ai-powered.com/skills/pptx): PPTX is a free agent skill for files and documents.

---
Source: https://ai-powered.com/skills/docx-melandlabs
