Official agent skill

DOCX Creation and Editing

by anthropics in anthropics/skills

Creates, edits and reviews Word documents: new files with docx-js, edits through the underlying XML, plus tracked changes, comments and conversions.

OfficialProprietaryAuto-check passedDocuments & Office

Install DOCX Creation and Editing

skills CLI
$ npx skills add anthropics/skills --skill docx -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install anthropics/skills docx --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/anthropics/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/docx .claude/skills/docx && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docx
GitHub stars
180k
Used in
6 other repos
Token cost
~1.7k tokens
SKILL.md length
633 words
Files
67 (incl. scripts)
Skills in repo
16
Repo updated
First seen
Licence
Proprietary

At a glance

Creates, edits and reviews Word documents: new files with docx-js, edits through the underlying XML, plus tracked changes, comments and conversions.

  • Producing a formatted report, memo or letter as a Word file
  • SKILL.md covers Creating with docx-js — gotchas, Verify the output, Editing existing documents and Comments, plus 1 more section
  • Runs Python scripts from its folder; calls python, pandoc and npm
  • Editing an existing .docx without breaking its formatting

What it does

The skill treats a .docx as a ZIP archive of XML files and picks a method per task: new documents are written with the docx npm library, existing ones are unzipped and edited directly in word/document.xml, and content is read by converting to markdown with pandoc. Scripts handle accepting tracked changes, adding comments and merging text runs.

Much of the guidance is a list of docx-js pitfalls, such as A4 being the default page size, tables needing widths on both the table and every cell, bullets coming from numbering configuration rather than literal characters, and tables of contents only picking up built-in heading styles. After writing a file the agent renders it to PDF with LibreOffice and to page images to check the result, and legacy .doc files are converted first. The SKILL.md is published under a proprietary licence.

When your agent uses it

  • Producing a formatted report, memo or letter as a Word file
  • Editing an existing .docx without breaking its formatting
  • Working with tracked changes or comments in a contract
  • Converting content into a polished Word document

Example prompts

  • “Write a two-page project memo as a .docx with a table of contents.”
  • “Accept all tracked changes in contract-v3.docx and save a clean copy.”
  • “Replace the logo in our letterhead template and keep everything else.”

Requirements

  • Node.js with the docx package
  • Python, pandoc and LibreOffice for reading, conversion and rendering

What it can do on your machine

Read from SKILL.md and the folder at commit 683bc88. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 14 files in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • pandoc
    • npm
    • pdftoppm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

DOCX Creation and Editing loads about 1.7k tokens when it runs. Until then it costs about 210 tokens; SKILL.md has 633 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~210
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Its licence (Proprietary) doesn't allow us to republish the file, so here is its outline and opening line. It has 633 words (~1,717 tokens).

“A .docx is a ZIP archive of XML files. Choose your approach by task:”

— opening of SKILL.md by anthropics, Proprietary
name
docx
license
Proprietary. LICENSE.txt has complete terms

Read the full SKILL.md on GitHub

Files

SKILL.md and 66 other files (scripts) in skills/docx of anthropics/skills.

  • SKILL.md
  • LICENSE.txt
  • scripts/__init__.py
  • scripts/accept_changes.py
  • scripts/comment.py
  • scripts/merge_runs.py
  • scripts/office/helpers/__init__.py
  • scripts/office/helpers/pptx_chart.py
  • scripts/office/helpers/pptx_slide.py
  • scripts/office/helpers/pptx_theme.py
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd
  • scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd
  • … and 51 more

Open the folder on GitHubat commit 683bc88

Used in 6 other repositories

We found 8 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 6 other GitHub owners. This page covers the copy in anthropics/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

DOCX Creation and Editing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

DOCX Creation and Editing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
DOCX Creation and Editing this skillanthropics/skills180k6 repos~1.7kAutomated safety check: PassProprietary
DOCX ToolkitXiaomiMiMo/MiMo-Code14k—~2.4kAutomated safety check: PassApache-2.0
DOCX Creation and Editingagentscope-ai/QwenPaw35k—~3.3kAutomated safety check: PassProprietary
Word DOCX ToolkitNousResearch/hermes-agent252k—~2.6kAutomated safety check: PassMIT
DOCX Processing Toolkittelagod/code-abyss243—~668Automated safety check: NotesMIT
Office DOCXsingula-ai/alego1091 repos~1.5kAutomated safety check: PassMIT

Similar skills

  • DOCX Toolkit

    XiaomiMiMo/MiMo-Code

    Produces, edits and reads Microsoft Word files through python-docx and lxml, with a decision table for picking the lightest workflow for a given task.

    14k GitHub stars~2.4k tokensUpdated 5 days ago
    Documents & OfficeAuto-check passed
  • DOCX Creation and Editing

    agentscope-ai/QwenPaw

    Creates, reads and edits Word .docx files, including tracked changes and comments, using docx-js for new files and XML editing for existing ones.

    35k GitHub stars~3.3k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Word DOCX Toolkit

    NousResearch/hermes-agent

    Creates, reads, edits and templates Word .docx files with python-docx scripts, including tracked changes, comments, tables of contents and health checks.

    252k GitHub stars~2.6k tokensUpdated today
    Documents & OfficeAuto-check passed
  • DOCX Processing Toolkit

    telagod/code-abyss

    Routes Word document tasks to the right tool: pandoc for text, raw OOXML for structure and comments, docx-js for new files, and a mandatory redlining flow for edits to others' documents.

    243 GitHub stars~668 tokensUpdated 2 mo ago
    Documents & OfficeAuto-check: notes
  • Office DOCX

    singula-ai/alego

    Create, read, edit, and check Word documents (.docx), including reports, letters, and formatted tables.

    109 GitHub starsUsed in 1 repo~1.5k tokens
    Documents & OfficeAuto-check passed
  • DOCX

    guyi-a/pi-ling

    Word 文档(.docx)的日常处理:md → docx(生成简历/报告)、docx → PDF/图片(分享预览)、.doc → .docx(老格式升级)。触发场景:用户说"生成 Word 版" / "做份 Word 简历" / "把这份报告转 Word" / "这份 .doc 打不开" / "docx 转 PDF" 等。读 docx 内容走 agent 已有的…

    106 GitHub stars~1.1k tokensUpdated 22 days ago
    Documents & OfficeAuto-check passed

More from anthropics/skills

All 16 skills in this repo
  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Auto-check passed
  • PDF Processing

    anthropics/skills

    Official

    Handles everyday PDF jobs in Python and on the command line: extract text and tables, merge, split, rotate, watermark, fill forms, encrypt and OCR.

    180k GitHub starsUsed in 48 repos~2k tokens
    Auto-check passed
  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Auto-check passed
  • Official

    Creates original generative art in two steps: a written algorithmic philosophy, then a p5.js sketch with seeded randomness and an interactive viewer for exploring parameters.

    180k GitHub starsUsed in 38 repos~4.9k tokens
    Auto-check passed
  • PowerPoint Decks

    anthropics/skills

    Official

    Creates, edits, reads and validates .pptx and .potx files, using pptxgenjs for new decks and direct XML edits for existing ones, with helper scripts for thumbnails and checks.

    180k GitHub starsUsed in 7 repos~5.2k tokens
    Auto-check passed
  • Canvas Design

    anthropics/skills

    Official

    Creates original posters and static art as PNG or PDF by first writing a short design philosophy, then expressing it visually on a canvas.

    180k GitHub starsUsed in 52 repos~3k tokens
    Auto-check passed

Questions about DOCX Creation and Editing

What does DOCX Creation and Editing do?

Creates, edits and reviews Word documents: new files with docx-js, edits through the underlying XML, plus tracked changes, comments and conversions. xml, and content is read by converting to markdown with pandoc. Scripts handle accepting tracked changes, adding comments and merging text runs.

When should I use DOCX Creation and Editing?

DOCX Creation and Editing fits situations like: producing a formatted report, memo or letter as a Word file; editing an existing .docx without breaking its formatting; working with tracked changes or comments in a contract; converting content into a polished Word document.

How do I install DOCX Creation and Editing in Claude Code?

Run `npx skills add anthropics/skills --skill docx -a claude-code`. Or copy the skill folder (skills/docx in anthropics/skills) into .claude/skills/docx in your project. Claude Code loads it when a task matches its description.

How do I install DOCX Creation and Editing in Codex?

Run `npx skills add anthropics/skills --skill docx -a codex`. Or copy the skill folder (skills/docx in anthropics/skills) into .agents/skills/docx in your project. Codex loads it when a task matches its description.

Can I use DOCX Creation and Editing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add anthropics/skills --skill docx -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docx, .gemini/skills/docx, .github/skills/docx and .opencode/skills/docx in your project.

What does DOCX Creation and Editing need to run?

Going by SKILL.md and its folder, DOCX Creation and Editing needs Python for the scripts in its folder and the command-line tools its instructions call (python, pandoc, npm and pdftoppm). Our summary lists: Node.js with the docx package; Python, pandoc and LibreOffice for reading, conversion and rendering.

Does DOCX Creation and Editing access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is DOCX Creation and Editing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does DOCX Creation and Editing use?

DOCX Creation and Editing carries a proprietary licence (declared in SKILL.md). It is published on GitHub, but it is not open source: read the licence file before using or sharing it.

How many tokens does DOCX Creation and Editing use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to DOCX Creation and Editing?

Skills that share tags, products or a category with DOCX Creation and Editing: DOCX Toolkit (XiaomiMiMo/MiMo-Code, 14k stars), DOCX Creation and Editing (agentscope-ai/QwenPaw, 35k stars), Word DOCX Toolkit (NousResearch/hermes-agent, 252k stars) and DOCX Processing Toolkit (telagod/code-abyss, 243 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains DOCX Creation and Editing?

anthropics (a GitHub organization, an official publisher) maintains it in anthropics/skills, which has 180,076 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 5, 2026.

Source: anthropics/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.