docx
Skill by kortix-ai
Creates, edits, extracts, converts and reviews Word (.docx) documents for an AI assistant. It suits users who work with Word files in finance, legal or other corporate settings.
Install docx
Built from the published package, never by AI.
git clone --depth 1 https://github.com/kortix-ai/suna /tmp/suna && mkdir -p ~/.claude/skills && cp -r /tmp/suna/packages/starter/templates/general-knowledge-worker/skills/docx ~/.claude/skills/docxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/kortix-ai/suna /tmp/suna && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/suna/packages/starter/templates/general-knowledge-worker/skills/docx ~/.gemini/antigravity-cli/skills/docxAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The docx skill lets an AI assistant create, edit, extract, convert and review Word documents. The source explains that a .docx file is a ZIP container of XML parts, and that creation, reading and modification all work on that XML structure. New documents are made with the docx npm module, and existing files are unpacked to XML, modified and repacked.
The skill also covers text extraction with anydoc or pandoc, converting legacy .doc files with soffice, rebuilding documents from PDF with pdf2docx, and rendering pages as images. It sets rules for professional documents, such as using Word styles instead of literal markdown, keeping tracked changes and fields live, and checking metadata before sharing.
Written from the project's SKILL.md and checked against it.
What it can do
- Create documentsBuilds a new Word document from scratch using the docx npm module.
- Edit existing filesUnpacks a .docx to XML, modifies it and repacks it.
- Extract textPulls text out of a document with anydoc, or with pandoc including tracked changes.
- Convert legacy .docConverts .doc files to .docx with soffice before XML work.
- Rebuild from PDFRuns pdf2docx to create a baseline .docx, then corrects layout artifacts.
- Export pages as imagesConverts a document to PDF with soffice, then renders JPEG pages with pdftoppm.
- Flatten tracked changesRuns a script that produces a copy with tracked changes accepted.
- Professional formatting rulesApplies Word styles, keeps fields live and preserves defined terms and placeholders.
What you need
- LibreOffice (soffice) for conversions and the flatten script
- pandoc
- pdftoppm
- Python 3 with lxml, python-docx and pdf2docx
- uv, only for packages that are not pre-installed
Try asking
- Extract the text from this .docx file as Markdown
- Convert this old .doc file to .docx and then edit it
- Rebuild this PDF as an editable Word document
Good to know
- The flatten script requires LibreOffice.
- Existing tracked changes from other reviewers are kept, not accepted or rejected.
- Legal clause numbering is not changed without instruction.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/starter/templates/general-knowledge-worker/skills/docx/SKILL.md, packages/starter/templates/general-knowledge-worker/skills/docx/scripts/accept_changes.py, packages/starter/templates/general-knowledge-worker/skills/docx/scripts/comment.py, packages/starter/templates/general-knowledge-worker/skills/docx/scripts/pack.py, packages/starter/templates/general-knowledge-worker/skills/docx/scripts/unpack.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
CREATION.md11 KB -
EDITING.md6 KB -
SKILL.md6 KB -
scripts/accept_changes.py4 KB -
scripts/comment.py12 KB
Show all 12 files
-
scripts/pack.py3 KB -
scripts/templates/comments.xml3 KB -
scripts/templates/commentsExtended.xml3 KB -
scripts/templates/commentsExtensible.xml3 KB -
scripts/templates/commentsIds.xml3 KB -
scripts/templates/people.xml115 B -
scripts/unpack.py10 KB
Alternatives to docx
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
docx: common questions
Can it edit a Word file that has tracked changes?
Yes. The source says to keep new edits tracked when a document already has tracked changes, and not to accept or reject other reviewers' redlines.
Can it turn a PDF into an editable Word file?
Yes. It runs pdf2docx to make a baseline .docx, then fixes issues such as misaligned tables or broken hyperlinks by editing the XML.
Does it work with old .doc files?
Yes. The source says to convert legacy .doc files to .docx with soffice before any XML work.
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 NOASSERTION licence. The service it connects to may have its own pricing.
Is docx safe to use?
It scores 85 of 100. Grades: maintenance A, licence F, 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.
