# DOCX

> DOCX is an agent skill for files and documents. Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/anthropics/skills/tree/main/skills/docx
- **Repository:** https://github.com/anthropics/skills
- **GitHub stars:** 196,392
- **Skill name:** docx
- **Collection:** https://github.com/anthropics/skills
- **Categories:** files and documents
- **Listing updated:** 2026-11-17

## About

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', 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 or .dotx 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.

## When your agent uses it

> Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', 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 or .dotx 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/anthropics/skills/tree/HEAD/skills/docx)
- [Network calls found in its scripts](https://github.com/anthropics/skills/tree/HEAD/skills/docx)
- [No license found](https://github.com/anthropics/skills/tree/HEAD/skills/docx)

## Install

### Claude Code

This skill ships in the `document-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills
```

Or copy only this skill to `~/.claude/skills/docx`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/anthropics/skills.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/anthropics/skills.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/anthropics/skills.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/anthropics/skills.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/anthropics/skills.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/anthropics/skills.git
```

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

## FAQ

### 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. Or install the document-skills plugin, which includes it: /plugin marketplace add anthropics/skills, then /plugin install document-skills@anthropic-agent-skills.

### 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 PDF and XLSX.

## Alternatives

- [PDF](https://ai-powered.com/skills/pdf-anthropics): PDF is an agent skill for files and documents.
- [XLSX](https://ai-powered.com/skills/xlsx): XLSX is an agent skill for files and documents.

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