docx

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

1|Updated Jul 4, 2025
One-click install
npx skills add https://github.com/MoshPitCodes/moshpitcodes.nix --skill docx-moshpitcodes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/MoshPitCodes/moshpitcodes.nix/tree/main/.opencode/skills/document-skills/docx
Command: npx skills add https://github.com/MoshPitCodes/moshpitcodes.nix --skill docx-moshpitcodes

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The Skill automates creation, editing, and analysis of Word documents (.docx), preserving formatting and enabling robust workflows around tracked changes and comments.

Core Features & Use Cases

  • Create new Word documents programmatically and export as .docx using a Word document library.
  • Edit existing documents, apply tracked changes and comments, and maintain full formatting fidelity.
  • Analyze and extract text from documents for review, auditing, or data consumption.

Quick Start

Create a new Word document, add a title paragraph, and save it as output.docx.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically create and edit Word documents while preserving formatting?

Programmatically create and edit Word documents while preserving formatting by applying OOXML-aware operations, schema-based validation, and structured changes to .docx files.

What is the best way to automate tracked changes and comments in a .docx file?

The best way to automate tracked changes and comments in a .docx file is to use document automation workflows that inject RSID and author data while maintaining full formatting fidelity.

How do I extract text from Word documents for review or auditing purposes?

Extract text from Word documents for review or auditing by programmatically analyzing .docx files to pull structured text content, enabling data consumption and document review workflows.

Does this approach support OOXML schema validation and RSID injection for redlining?

Yes, this approach supports OOXML schema validation and RSID injection for redlining, satisfying requirements for professional document scenarios like drafting, commenting, and auditing.

Can I use lxml and defusedxml for Word document automation workflows?

Yes, you can use lxml and defusedxml for Word document automation workflows, as these dependencies provide the XML parsing and security layers needed for robust OOXML operations.

What are the limitations of using document automation for Word processing compared to manual editing?

Document automation for Word processing requires strict schema-based validation and OOXML awareness to prevent formatting loss, making it less flexible than manual editing for unstructured or highly dynamic layout changes.