How-to · Documents · By Anthropic

How to use Word Document Creator in your AI agent

Install and use the Word Document Creator skill in Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and Windsurf — with sample prompts.

What you'll get

This skill lets you generate polished Word documents (.docx files) with full control over formatting — headers, footers, tables of contents, bullet points, tables, images, and more. You can also read existing Word files to extract text, accept tracked changes, or convert documents to images. Perfect for creating reports, memos, letters, and templates without opening Microsoft Word.

Step 1 — Get the skill source URL

The Word Document Creator skill lives at:

Step 2 — Add it to your AI agent

Copy one of these prompts and paste it into your AI tool. The agent will fetch and install the skill for you.

Claude Code

Add the agent skill from https://github.com/anthropics/skills/tree/main/skills/docx to my project.

Cursor

Install this agent skill: https://github.com/anthropics/skills/tree/main/skills/docx

Codex

Add this skill to .codex/skills/: https://github.com/anthropics/skills/tree/main/skills/docx

Gemini CLI

Add the skill at https://github.com/anthropics/skills/tree/main/skills/docx to my .gemini/skills/ directory.

OpenCode

Install this agent skill from https://github.com/anthropics/skills/tree/main/skills/docx

Windsurf

Add this skill: https://github.com/anthropics/skills/tree/main/skills/docx

Step 3 — Try these prompts

Once the skill is installed, ask your AI things like:

  • Generate a report, memo, or business letter as a Word file
  • Create a document with a table of contents, headings, or page numbers
  • Extracting text or data from Word files someone sent you
  • Convert a document to PDF or accept all tracked changes

What this skill does

  • Creates Word documents with custom formatting, headers, footers, and page layouts
  • Reads and extracts content from existing .docx files
  • Builds tables with borders, shading, and precise column widths
  • Inserts images, hyperlinks, bookmarks, and footnotes into documents
  • Accepts tracked changes and converts legacy .doc files to .docx
Made byAnthropic
CategoryDocuments