Guide · Agent skill
How to use the DOCX Word Document Skill agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The docx skill is a set of instructions that teaches an AI agent how to work with Microsoft Word .docx files. Once it is installed, you can ask the agent to pull text and tables out of a Word file, summarise it, draft a report, letter or memo, or fill in placeholders across a template. This guide explains what the skill does, how to install it, how to phrase requests so the agent uses it, and what to watch for before running it on sensitive files.
Quick start
- 1Download and unzip. Download the docx skill ZIP from this page and unzip it so you have a folder containing SKILL.md.
- 2Place the skill folder. Move it into ~/.claude/skills/ for personal use or into .claude/skills/ inside a project.
- 3Or upload in the Claude apps. In the Claude apps, go to Settings → Capabilities → Skills and upload the ZIP.
- 4Check the sandbox. Confirm the agent has a sandbox that can run Python with python-docx available.
- 5Ask for a Word task. Name the .docx file, describe the change or deliverable, and say what to call the output.
- 6Review the file. Open the output in Word, check formatting, and update fields such as the table of contents if needed.
What the docx skill makes the agent do
The skill covers Microsoft Word .docx files. It tells the agent to use the python-docx library by default for creating, reading and simple editing. For more specialised work it describes a lower-level method that edits the raw XML inside the file, which is needed for tracked changes (redlines), comments, and edits that must leave every untouched byte alone.
In practice the agent can extract and summarise text and tables, generate documents with headings, tables, images, a table of contents and page numbers, run find-and-replace, and apply tracked changes or comments.
- Read: extract body paragraphs, table contents, and header and footer text
- Create: reports, letters and memos with headings, tables, pictures and page breaks
- Edit: find-and-replace that keeps each run's formatting
- Review: tracked changes and comments for advanced cases
Install the docx skill from this page
Download the skill ZIP from this page and unzip it. The skill is a folder containing SKILL.md. Put that folder in one of these locations:
- Personal skills folder: ~/.claude/skills/ (available across your projects)
- Project folder: .claude/skills/ inside the project you are working in
- Claude apps: upload the ZIP under Settings → Capabilities → Skills
Make sure the requirements are met
The skill needs a sandbox where the agent can run Python code. The source says python-docx is preinstalled in that sandbox, so you do not install it yourself. The skill also says never to fetch or install authoring dependencies during a document task; if a declared dependency is missing, the agent should report an incomplete setup and stop.
LibreOffice (the soffice command) is optional. It is only needed for converting legacy .doc files to .docx and for PDF export. If it is absent, the agent is told to say so and either ask for a .docx or skip PDF export.
- Python with python-docx (described as preinstalled in the sandbox)
- A shell or exec sandbox that can run Python
- Optional: LibreOffice (soffice) for .doc conversion and PDF export
Trigger the skill with natural requests
You do not need a special command. Mention a Word file or ask for a Word deliverable and the agent should load the skill. Name the file, say what you want back, and say where the result should go if it matters.
- "Summarise the tables in contract_v2.docx and list them as text."
- "Draft a one-page memo from these notes, with headings and a table of the budget figures, and save it as memo.docx."
- "In template.docx, replace every {{CLIENT}} with Acme Co and save a new copy."
- "Add tracked changes to section 3 of draft.docx that shorten the second paragraph."
Review the output and the safety notes
The skill runs scripts. The agent writes Python code and executes it in your sandbox, so do not use it on sensitive documents in an environment where running agent-generated code is not acceptable. The skill does not describe any network access. The skill also asks the agent to write a new output file rather than overwrite the original, unless you explicitly ask for a replacement.
Open the result in Word and check it. The agent is told to reopen and validate the file it saves, but that does not check how it looks on the page.
- Runs scripts: yes. Uses network: no, according to the skill's description.
- The agent is told to write new output files instead of overwriting inputs.
- The skill does not cover PDF, .xlsx, .pptx or Google Docs files.
Tips for better results
Clear inputs and outputs get better documents. Give the agent the source notes or data, the audience, and the file name you want.
- For templates, list the exact placeholders, such as {{CLIENT}}, so the agent replaces the right text.
- Placeholders split across formatting runs in Word can be missed; the skill notes this and collapses formatting to the first run for plain placeholders.
- Table of contents and page numbers are fields. Word may ask you to right-click and choose Update Field before the table of contents fills in.
- For .doc files, convert to .docx first or confirm LibreOffice is installed.
What people use it for
- Summarising a long Word report by extracting its headings, paragraphs and tables
- Drafting a formatted memo or letter from notes, with headings and a results table
- Filling in a client template by replacing placeholders across the document
- Adding reviewer comments or tracked changes to a draft for an editor
- Building a report with page numbers in the footer and a table of contents
Frequently asked questions
Is the docx skill free?
This page lists the licence as Apache-2.0 for the HKUDS/DeepTutor repository that contains the skill. The source does not mention pricing, so check the repository for licence terms before you rely on it.
What do I need to run the docx skill?
You need an agent sandbox that can run Python code, with python-docx available. LibreOffice is optional and only needed for .doc conversion and PDF export.
Where do I install the docx skill?
Unzip the downloaded ZIP into ~/.claude/skills/ or a project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills in the Claude apps.
Can the docx skill edit legacy .doc files?
Not directly. python-docx cannot read .doc files, so the skill relies on LibreOffice to convert them. Without LibreOffice, the agent should ask for a .docx instead.
Does the skill work with PDF, Excel or Google Docs?
No. The skill says it is not for PDF, .xlsx, .pptx or Google Docs files. It only covers Word .docx files, and PDF export needs the optional LibreOffice install.
Is it safe to use on confidential documents?
It runs Python code the agent writes, so it depends on your environment. Avoid it for sensitive files if running agent-generated code is not acceptable. The skill description says it does not use the network.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use the docx skill if you regularly draft, format or fill in Word documents with an agent and your environment allows it to run Python. Pick something else if you need PDF, spreadsheet or Google Docs work, or if your files must not be processed by agent-generated code.
Download the skill