docx

Manipulate OOXML in .docx files to create, edit, and redline Word documents.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MoshPitLabs/template-opencode --skill docx-moshpitlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/MoshPitLabs/template-opencode/tree/main/.opencode/skills/document-skills/docx
Command: npx skills add https://github.com/MoshPitLabs/template-opencode --skill docx-moshpitlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation, editing, and review of Word documents (.docx) by programmatically manipulating OOXML, enabling consistent, trackable changes and rich comments.

Core Features & Use Cases

  • Automated Word document creation with formatting, styles, and content structure.
  • Redlining and comment management: apply tracked changes and attach comments, preserving authorship metadata.
  • Collaborative workflows for contract drafting, reporting, and template generation using deterministic edits and validation.

Quick Start

Load an existing unpacked .docx from disk into the skill's Word editor, apply a sample tracked change and comment, then re-pack the document into a new .docx.

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 creation and editing programmatically?

Automate Word document creation and editing by programmatically manipulating OOXML in .docx files. This enables deterministic content changes, formatting preservation, and structure generation without manual intervention.

Can I apply tracked changes and manage comments in .docx files via OOXML?

Yes, you can apply tracked changes and manage comments in .docx files via OOXML. The toolkit handles redlining, comment attachment, and preserves authorship metadata including RSID injection for collaborative integrity.

What is the best way to automate contract drafting and reporting workflows?

Automate contract drafting and reporting workflows by programmatically manipulating OOXML to apply deterministic edits, generate templates, and validate content. This ensures consistent, trackable changes for corporate reporting.

Does this approach work for legal documents requiring tracked changes and author metadata?

Yes, this approach works for legal documents by handling tracked changes, comment management, and RSID/author metadata injection. It preserves formatting integrity and provides deterministic content changes for legal collaboration.

Do I need Python and defusedxml to manipulate OOXML in .docx files?

Yes, you need Python and the defusedxml dependency to manipulate OOXML in .docx files. The toolkit uses a Python OOXML editor to load, modify, and re-pack documents while ensuring secure XML parsing.

Why use OOXML manipulation instead of other tools for Word document redlining?

OOXML manipulation provides deterministic, integrity-preserving formatting changes with precise control over tracked changes and author metadata. Unlike category-level alternatives, it ensures consistent, automated redlining without manual Word interference.