📑

Word / DOCX

Create, edit, and inspect professional Microsoft Word documents with full support for styles, tracked changes, and complex OOXML layouts.

by

Iván

PDF & DocumentsProductivityAutomationSelf-HostedDeveloper Tool
Install
npx clawhub@latest install word-docx
Stars

121

Downloads

31.2k

Current Installs

75

Version

v1.0.0

Updated

Mar 11, 2026

Platforms

linux / darwin / win32

Requirements

Local Environment

View Source

ClawHub

Word / DOCX Overview

Word / DOCX works with Word documents as structured OOXML packages rather than plain text, preserving complex elements like tracked changes, comments, nested tables, and multi-level numbering.

It targets precise edits without formatting drift, keeping documents professional and compatible across Word, Google Docs, and LibreOffice.

How It Works

1Step 1 - Parse OOXML Parts

Treat .docx as a ZIP of XML parts and load document.xml, styles.xml, and numbering.xml.

2Step 2 - Preserve Structure

Track relationships between runs, paragraphs, styles, and numbering to avoid layout drift.

3Step 3 - Edit Precisely

Modify specific runs or sections without breaking metadata, tracked changes, or layout constraints.

4Step 4 - Validate Compatibility

Keep styles, numbering, and sections stable for cross-platform round-trips.

Key Features

Style Preservation

Prefers named styles over direct formatting to keep documents clean and consistent.

Review Workflow Support

Handles tracked changes, comments, and review wrappers without orphaning metadata.

Advanced Numbering

Manages abstractNum and paragraph properties so lists restart and indent correctly.

Section Control

Manages margins, orientation, and headers/footers at the section level.

Compatibility Auditing

Minimizes layout drift between Word, Google Docs, and LibreOffice.

Requirements

  • No VM required.
  • Local environment only; no external API keys are required for core functionality.

Use Cases

Legal & Business Review

Make precise, minimal replacements in documents with active tracked changes and comments.

Automated Document Generation

Create high-fidelity reports from templates that must survive round-trip editing.

Formatting Cleanup

Fix broken numbering, inconsistent margins, and stray formatting in legacy documents.

How to Install

npx clawhub@latest install word-docx

Run in your terminal, or click the Install button at the top of this page for one-click setup.

FAQ

Does this support legacy .doc files?

No. It targets .docx (OOXML) files; legacy .doc is not supported.

Will my tracked changes be lost during editing?

No. The skill preserves tracked changes and comments unless you explicitly accept or remove them.

Can it handle images in headers and footers?

Yes. It preserves header/footer relationships and their embedded media.

How are lists and bullets handled?

Lists are managed via abstractNum and num references; bullets and numbers share numbering parts.

Will fields like TOC and page numbers update automatically?

Fields store code and cached results; viewers usually update on open or print, and the skill can trigger updates on write.

How are tracked changes and comments preserved or removed?

Tracked changes keep original and revised content in XML; the skill can accept/reject revisions and remove comment ranges.