Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

docx

Skill by harveyai

Authors, edits, redlines and validates Microsoft Word .docx files. It suits drafting memos, marking up agreements and filling engagement letter templates.

  • Score 90
  • 1.7k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install docx

Built from the published package, never by AI.

git clone --depth 1 https://github.com/harveyai/harvey-labs /tmp/harvey-labs && mkdir -p ~/.claude/skills && cp -r /tmp/harvey-labs/lab_core/harness/skills/docx ~/.claude/skills/docx

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install docx in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The docx skill lets an AI assistant write, edit, redline and validate Microsoft Word .docx files. It creates new documents from markdown or templates, edits existing files in place, adds comments, generates tracked-changes redlines and accepts revisions. Bundled scripts drive Pandoc, python-docx, docxtpl and LibreOffice.

Reading existing .docx files is out of scope. The source says to use the harness read tool for that. Before delivery, each output should pass a validation script that checks ZIP integrity, XML well-formedness and ECMA-376 schema rules. The listed triggers point to tasks such as drafting a memo, marking up an agreement or filling an engagement letter template.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create new documentsBuilds a .docx from markdown with a reference template, from a placeholder template, or with python-docx.
  • Edit existing documentsUnpacks the file, edits the XML under word/, and repacks it with pack.py.
  • Generate redlinesUses redline.py to produce tracked insertions and deletions between two documents.
  • Add commentsUses comments_add.py to anchor comments to passages from a JSON list of anchor text and comment.
  • Accept all revisionsUses accept_changes.py with LibreOffice headless to accept all tracked changes.
  • Validate outputUses validate.py to check ZIP integrity, XML, ECMA-376 schemas, content types and relationships.

What you need

  • Python
  • Pandoc
  • LibreOffice (soffice on PATH)
  • python-docx and docxtpl

Try asking

  • Draft a memo in Word from these notes and style it with our firm template.
  • Redline this agreement against the revised version and output a tracked-changes file.
  • Add comments to the indemnity clause in this .docx explaining my concerns.

Good to know

  • Reading .docx files is out of scope; use the harness read tool instead.
  • Legacy .doc files are not supported and must be converted to .docx first.
  • Selective acceptance of revisions is not supported; all changes are accepted or rejected together.
  • Word macros (.docm with VBA), signing, encryption and DRM are out of scope.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: lab_core/harness/skills/docx/SKILL.md, lab_core/harness/skills/docx/scripts/accept_changes.py, lab_core/harness/skills/docx/scripts/comments_add.py, lab_core/harness/skills/docx/scripts/generate_from_md.py, lab_core/harness/skills/docx/scripts/pack.py, lab_core/harness/skills/docx/scripts/redline.py, lab_core/harness/skills/docx/scripts/soffice.py, lab_core/harness/skills/docx/scripts/template_fill.py, lab_core/harness/skills/docx/scripts/unpack.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • scripts/accept_changes.py2 KB
  • scripts/comments_add.py7 KB
  • scripts/generate_from_md.py1 KB
  • scripts/pack.py2 KB
Show all 10 files
  • scripts/redline.py7 KB
  • scripts/soffice.py1 KB
  • scripts/template_fill.py964 B
  • scripts/unpack.py2 KB
  • scripts/validate.py3 KB

Alternatives to docx

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

docx: common questions

Can this skill read a Word document?

No. The source says reading is not in scope and that the harness read tool should be used, since it returns structured text via pandoc.

Does it support old .doc files?

No. Legacy binary .doc files are not supported, and the source recommends converting them to .docx with soffice first.

Can it create PDFs from Word files?

The skill itself does not produce PDFs. The source suggests piping the output through soffice --convert-to pdf afterwards.

How do I install docx?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is docx free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is docx safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to docx?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

Add to stack

Loading.