- Home
- Skills
- Workflow Automation
- DOCX Toolkit — Create, Edit, and Analyze Word Documents
DOCX Toolkit — Create, Edit, and Analyze Word Documents
Professional-grade skill for all Word document (.docx) operations without needing Microsoft Office
Free
Works with the AI Agents you already use
DOCX Toolkit — Create, Edit, and Analyze Word Documents
Example session with this skill installed
Create a professional US Letter report with a Table of Contents, Arial 12pt font, and a two-column layout for the executive summary.
- Read your context and instructions
- Compiled the docx toolkit
I have generated the report using docx-js. I configured US Letter dimensions (12240x15840 DXA), mapped Heading 1 and 2 to the TOC, and implemented a two-column section for the summary using a 720 DXA gap. The file is validated and ready.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Programmatically generating and editing Word documents is notoriously fragile, often resulting in corrupted XML or inconsistent formatting across different viewers. Manually managing docx-js configurations or parsing raw OpenXML is time-consuming and prone to schema violations.
What it does
- Generates professional .docx files using docx-js with explicit control over page sizes, margins, and multi-column layouts.
- Edits existing documents by unpacking XML, merging adjacent runs, and repacking with automatic schema validation and repair.
- Implements complex document features including tracked changes, nested comments, table of contents, and dot-leader tab stops.
- Handles legacy .doc to .docx conversion and high-fidelity text extraction via Pandoc integration.
- Converts documents to PDF or high-resolution images using headless LibreOffice and Poppler.
Frameworks & tools
Node.js (docx-js), Python (scripts/office), Pandoc, LibreOffice, and Poppler.
Why this beats prompting it yourself
This skill enforces strict XML compliance rules that LLMs typically hallucinate, such as element ordering in pPr and proper namespace handling for tracked changes. It provides a structured workflow for unpacking and repacking files that prevents the common "corrupted file" errors associated with direct string manipulation of OpenXML.
Use cases
- Automate the generation of legal contracts with precise formatting and smart quotes.
- Review documents programmatically by inserting tracked changes and replies to comments as a named author.
- Build reporting pipelines that convert dynamic data into branded Word templates with headers, footers, and tables.
- Extract clean Markdown from complex Word documents while preserving tracked changes for analysis.
Known limitations
Requires a Node.js environment for new document creation and Python for the unpacking/packing utility scripts. Does not support direct manipulation of Google Docs or PDFs without local conversion.
Based on the open-source skill from Anthropic's anthropics/skills repository (Apache-2.0). See NOTICE.md.
For merging several documents into one, see Multi-Source Document Merger by Shogun Labs.
Requires npm docx package and Python scripts. Auto-repair cannot fix malformed XML nesting or missing relationships. PDF/Image conversion requires LibreOffice and Poppler.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
23 uses
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 6 days ago
- Free with an Agensi account