docx

Create, edit, and analyze DOCX documents with tracked changes and comments.

10|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/viktorbezdek/skillstack --skill docx-viktorbezdek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/viktorbezdek/skillstack/tree/main/skill-foundry/skills/skill-foundry/examples/document-skills/docx
Command: npx skills add https://github.com/viktorbezdek/skillstack --skill docx-viktorbezdek

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, libreoffice, poppler, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill tackles the challenges of creating, editing, and analyzing complex Word documents, ensuring accurate handling of formatting, comments, and revisions without losing structure or introducing errors.

Core Features & Use Cases

  • Tracked Changes Implementation: Apply precise redlining with insertions, deletions, and comments while preserving original formatting.
  • Document Creation and Extraction: Build new DOCX files from scratch or extract text and metadata via XML unpacking and pandoc conversion.
  • Use Case: For a legal contract review, use this Skill to batch-process changes across sections, adding comments and verifying compliance before final export.

Quick Start

Use the docx skill to implement tracked changes replacing "30 days" with "60 days" in the attached contract.docx file.

Frequently Asked Questions about docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add tracked changes to a DOCX file programmatically?

You can add tracked changes to a DOCX file by applying precise redlining with insertions, deletions, and comments while preserving the original formatting. This Skill uses XML-based modifications to ensure document structure remains intact during review workflows.

Can I extract text and metadata from a DOCX file without losing formatting?

Yes, you can extract text and metadata from a DOCX file without losing formatting by unpacking the OOXML structure and converting content via pandoc. This allows precise analysis while maintaining the original document's layout and properties.

What is the best way to batch process redlining across multiple Word document sections?

The best way to batch process redlining across multiple Word document sections is using automated XML-based modifications. This Skill supports batch processing for legal, business, and academic scenarios, applying changes across sections while verifying compliance before final export.

Does this DOCX editing approach work for legal contract review workflows?

Yes, this DOCX editing approach works specifically for legal contract review workflows. It supports batch-processing changes across sections, adding comments, and verifying compliance before final export, ensuring accurate handling of revisions without introducing errors.

Do I need pandoc and LibreOffice to create and edit Word documents?

You need pandoc and LibreOffice along with poppler and defusedxml dependencies to create and edit Word documents effectively. These tools enable document creation from scratch, format conversion, OOXML validation, and secure XML unpacking for precise modifications.

Why does my DOCX document lose formatting when I apply tracked changes?

Your DOCX document loses formatting when tracked changes are applied if the tool does not properly handle OOXML structure. This Skill prevents formatting loss by using precise XML-based modifications via Python and JavaScript tools to preserve the original layout.