Back to Skills

Word Documents (DOCX)

Create, read, edit, and format Word documents — including tables of contents, headings, tracked changes, page numbers, and templates

worddocxdocumentsreportsofficialanthropic
By Anthropic
133k16kUpdated 2 weeks agoPython

Skill Content

# Word Document Skill

Official Anthropic skill for creating, reading, editing, and manipulating Word documents (.docx).

## When It Triggers

- Any mention of "Word doc", "word document", or ".docx"
- Requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads
- 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
- Producing a "report", "memo", "letter", or "template" as a Word file

## Capabilities

- **Styled documents** — headings, body text, lists, captions
- **Page-level formatting** — headers, footers, page numbers
- **Tables** with cell styling and merged cells
- **Images** — insert, replace, resize
- **Tracked changes** — accept, reject, or add revisions programmatically
- **Find and replace** across the document
- **Templates** — produce letters, memos, reports from a template

## Installation

```bash
/plugin install docx@anthropic-skills
```

## Example Prompts

- "Create a project report with a TOC and these three sections"
- "Generate a cover letter for this job application"
- "Replace all instances of 'Acme Corp' with 'Globex Ltd' in this contract"
- "Add the company letterhead to the top of this memo"

## Does Not Trigger For

- PDFs (use `pdf`)
- Spreadsheets (use `xlsx`)
- Google Docs API tasks

## Implementation

Uses python-docx under the hood.

How to use

  1. Copy the skill content above
  2. Create a .claude/skills directory in your project
  3. Save as .claude/skills/docx.md
  4. Use /docx in Claude Code to invoke this skill

Note: This repository contains Anthropic's implementation of skills for Claude. For information about the Agent Skills standard, see agentskills.io.

skills.sh

Skills

Skills are folders of instructions, scripts, and resources that Claude loads dynamically to improve performance on specialized tasks. Skills teach Claude how to complete specific tasks in a repeatable way, whether that's creating documents with your company's brand guidelines, analyzing data using your organization's specific workflows, or automating personal tasks.

For more information, check out:

About This Repository

This repository contains skills that demonstrate what's possible with Claude's skills system. These skills range from creative applications (art, music, design) to technical tasks (testing web apps, MCP server generation) to enterprise workflows (communications, branding, etc.).

Each skill is self-contained in its own folder with a SKILL.md file containing the instructions and metadata that Claude uses. Browse through these skills to get inspiration for your own skills or to understand different patterns and approaches.

Many skills in this repo are open source (Apache 2.0). We've also included the document creation & editing skills that power Claude's document capabilities under the hood in the skills/docx, skills/pdf, skills/pptx, and skills/xlsx subfolders. These are source-available, not open source, but we wanted to share these with developers as a reference for more complex skills that are actively used in a production AI application.

Disclaimer

These skills are provided for demonstration and educational purposes only. While some of these capabilities may be available in Claude, the implementations and behaviors you receive from Claude may differ from what is shown in these skills. These skills are meant to illustrate patterns and possibilities. Always test skills thoroughly in your own environment before relying on them for critical tasks.

Skill Sets

  • ./skills: Skill examples for Creative & Design, Development & Technical, Enterprise & Communication, and Document Skills
  • ./spec: The Agent Skills specification
  • ./template: Skill template

Try in Claude Code, Claude.ai, and the API

Claude Code

You can register this repository as a Claude Code Plugin marketplace by running the following command in Claude Code:

/plugin marketplace add anthropics/skills

Then, to install a specific set of skills:

  1. Select Browse and install plugins
  2. Select anthropic-agent-skills
  3. Select document-skills or example-skills
  4. Select Install now

Alternatively, directly install either Plugin via:

/plugin install document-skills@anthropic-agent-skills
/plugin install example-skills@anthropic-agent-skills

After installing the plugin, you can use the skill by just mentioning it. For instance, if you install the document-skills plugin from the marketplace, you can ask Claude Code to do something like: "Use the PDF skill to extract the form fields from path/to/some-file.pdf"

Claude.ai

These example skills are all already available to paid plans in Claude.ai.

To use any skill from this repository or upload custom skills, follow the instructions in Using skills in Claude.

Claude API

You can use Anthropic's pre-built skills, and upload custom skills, via the Claude API. See the Skills API Quickstart for more.

Creating a Basic Skill

Skills are simple to create - just a folder with a SKILL.md file containing YAML frontmatter and instructions. You can use the template-skill in this repository as a starting point:

---
name: my-skill-name
description: A clear description of what this skill does and when to use it
---

# My Skill Name

[Add your instructions here that Claude will follow when this skill is active]

## Examples
- Example usage 1
- Example usage 2

## Guidelines
- Guideline 1
- Guideline 2

The frontmatter requires only two fields:

  • name - A unique identifier for your skill (lowercase, hyphens for spaces)
  • description - A complete description of what the skill does and when to use it

The markdown content below contains the instructions, examples, and guidelines that Claude will follow. For more details, see How to create custom skills.

Partner Skills

Skills are a great way to teach Claude how to get better at using specific pieces of software. As we see awesome example skills from partners, we may highlight some of them here:

View source on GitHub