docx

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

2|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/bennoloeffler/bassi --skill docx-bennoloeffler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/bennoloeffler/bassi/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/bennoloeffler/bassi --skill docx-bennoloeffler

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the complex and often tedious tasks associated with Microsoft Word documents, from creation and detailed editing to advanced analysis and redlining. It eliminates manual effort, reduces errors in document processing, and streamlines professional workflows, especially for legal, academic, and and business documents.

Core Features & Use Cases

  • Comprehensive Document Management: Create new Word documents, modify existing content, and manage complex formatting with precision.
  • Advanced Review Workflows: Implement and manage tracked changes (redlining) and comments, essential for collaborative document review and legal compliance.
  • Content Extraction & Conversion: Extract text, access raw XML for deep analysis of document structure, and convert documents to images for visual inspection.
  • Use Case: A legal team needs to draft a new contract based on an existing template, incorporating specific clauses and tracking all modifications for client review. This Skill can automate the initial drafting, apply all necessary tracked changes, and even add comments for internal discussion, saving hours of manual legal document preparation.

Quick Start

To convert an attached Word document named 'report.docx' into a Markdown file, preserving all tracked changes, use the following command: pandoc --track-changes=all report.docx -o output.md

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate creating and editing Word documents with tracked changes?

This Skill enables you to programmatically create new .docx files, modify existing documents, and apply tracked changes for collaborative review. It handles OOXML manipulation, formatting preservation, and comment insertion, automating what would otherwise require manual editing in Microsoft Word.

Can I extract text and metadata from Word documents for analysis?

Yes. The Skill lets you extract raw text, access document XML structure for deep analysis, and pull metadata. This is useful for legal compliance workflows, content audits, and preparing documents for downstream processing or conversion.

What's the best way to convert Word documents while preserving tracked changes?

Use pandoc integration to convert .docx to other formats like Markdown while retaining all tracked changes and comments. This preserves review history during format conversion, essential for legal and academic workflows where change tracking must survive the transformation.

Does this work for redlining and collaborative document review?

Yes. The Skill manages tracked changes and comments at scale, automating the application of redlines and adding review notes. It handles RSID management and whitespace validation to ensure redlined documents remain compliant with OOXML standards.

Can I convert Word documents to images for visual inspection?

Yes. The Skill integrates poppler-utils and LibreOffice to convert .docx pages to image formats. This supports workflows requiring visual verification of document layout, formatting, or content without opening the file directly.

What dependencies do I need to work with .docx files?

The Skill requires pandoc, python-docx, LibreOffice, poppler-utils, and defusedxml. These handle OOXML parsing, XML validation, document conversion, and image extraction while protecting against malformed or malicious XML payloads.