docx

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

2|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/bloknayrb/claudestuff --skill docx-bloknayrb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/bloknayrb/claudestuff/tree/main/plugins/ms-office-suite/skills/docx
Command: npx skills add https://github.com/bloknayrb/claudestuff --skill docx-bloknayrb

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 streamlines complex Word document operations, from creating professional documents from scratch to meticulously editing existing ones with tracked changes.

Core Features & Use Cases

  • Document Creation: Generate new .docx files using programmatic control over text, styles, tables, and formatting.
  • Document Editing: Modify existing .docx files, including complex tasks like applying tracked changes, adding comments, and preserving formatting.
  • Redlining Workflow: Implement a systematic approach to document review and revision tracking, ensuring clarity and accuracy.
  • Use Case: A legal professional needs to review a contract. They can use this Skill to apply tracked changes for specific clauses, add comments for clarification, and ensure all edits are clearly marked for the client.

Quick Start

Use the docx skill to create a new Word document with a title and two paragraphs.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I apply tracked changes and comments to an existing Word document programmatically?

You can apply tracked changes and add comments to a .docx file by leveraging OOXML manipulation libraries like python-docx. This systematically edits existing content while preserving the original formatting and ensuring all modifications are clearly marked.

Can I generate a new .docx file with specific styles, tables, and formatting from scratch?

Generating a new .docx file with specific styles and tables is fully supported by programmatically controlling text and formatting. This process utilizes libraries such as docx-js to structure documents from scratch with precise formatting preservation.

What is the best way to automate a redlining workflow for contract review?

Automating a redlining workflow involves using programmatic document editing to apply tracked changes to specific clauses and add comments for clarification. This ensures clarity and accuracy throughout the professional document review and revision tracking process.

Does this document editing approach require any specific dependencies like LibreOffice or pandoc?

Yes, this approach to document editing relies on several dependencies including pandoc, docx, libreoffice, and poppler-utils. These tools facilitate the seamless creation, modification, and detailed OOXML manipulation required for complex .docx workflows.

How does OOXML manipulation handle formatting preservation when modifying complex Word documents?

OOXML manipulation handles formatting preservation by directly interfacing with the underlying XML structure of .docx files. By leveraging libraries like python-docx and defusedxml, it modifies content while meticulously maintaining the original document's styles and layout.

Why use python-docx and docx-js instead of standard word processors for document generation?

Using python-docx and docx-js for document generation provides automated, programmatic control over text, styles, and tables. This approach streamlines complex document operations that would be tedious to perform manually in standard word processors.