docx

Create, edit, and review Word documents with tracked changes and comments.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/MalikABK/panacloud_ass1 --skill docx-malikabk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/MalikABK/panacloud_ass1/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/MalikABK/panacloud_ass1 --skill docx-malikabk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

The DOCX tooling provides a comprehensive workflow to create, modify, analyze, and review Word documents, preserving formatting, comments, and tracked changes.

Core Features & Use Cases

  • Tracked changes and redlining: manage insertions and deletions with provenance.
  • Comments and review workflow: attach comments to specific ranges and threads for collaboration.
  • Formatting preservation and OOXML familiarity: maintain fonts, spacing, and styles across edits, including tracked changes, comments, and text extraction.

Quick Start

Unpack a DOCX, apply edits with tracked changes and comments, and re-pack to a new Word document.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document editing with tracked changes and comments?

Automating Word document editing with tracked changes and comments involves unpacking the .docx file, applying programmatic modifications while preserving OOXML formatting, and repacking it. This ensures redlining provenance and author metadata remain intact for reliable review workflows.

What is the best way to programmatically add redlining to a .docx file?

The best way to programmatically add redlining to a .docx file is to manipulate the underlying OOXML structure directly. This approach enforces robust RSID handling and author metadata, maintaining full auditability and interoperability across professional Word environments.

Can I preserve Word formatting and styles when modifying documents with lxml?

Yes, you can preserve Word formatting and styles when modifying documents using lxml. By parsing and updating the OOXML structure carefully, the tooling maintains fonts, spacing, and styles across edits, including tracked changes and comments.

Does Python defusedxml work with OOXML document editing for tracked changes?

Python defusedxml works with OOXML document editing by providing secure XML parsing for .docx files. It integrates with lxml to handle tracked changes, comments, and formatting preservation while ensuring reliable Word compatibility and protecting against XML vulnerabilities.

Why does my Word document lose formatting after programmatic text extraction and edits?

Word documents lose formatting after programmatic edits when the OOXML structure is not preserved correctly. Proper document-editing tools maintain OOXML integrity, ensuring fonts, spacing, and styles remain intact alongside tracked changes and comments during text extraction and modification.

When do I need RSID handling for Word document redlining workflows?

You need RSID handling for Word document redlining workflows whenever multiple authors edit the same .docx file. Proper RSID tracking maintains changelog provenance and ensures reliable interoperability across different Word environments during collaborative review.