docx

Automates Word (.docx) creation, editing, and review with tracked changes and comments.

26|1|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/gotar/opencode-config --skill docx-gotar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/gotar/opencode-config/tree/main/skills/docx
Command: npx skills add https://github.com/gotar/opencode-config --skill docx-gotar

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables automated creation, modification, and review of Word documents (.docx) with preserved formatting, tracked changes, and inline comments, reducing manual editing time and errors.

Core Features & Use Cases

  • Create new Word documents with consistent formatting and styles via programmatic APIs
  • Apply tracked changes and comments to document content, supporting collaboration workflows
  • Validate and maintain OOXML conformance (RSID, content types, relationships) while editing
  • Use case: a legal or corporate template revision where dozens of manuscript changes must be tracked and commented

Quick Start

Start by loading an unpacked Word document and performing a simple edit, then save the changes back to disk.

Frequently Asked Questions about docx

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

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

You can programmatically apply tracked changes and comments to a Word document by manipulating OOXML constructs like w:ins and w:del. This Skill validates RSIDs and content types to ensure strict formatting preservation while annotating document content.

What is the best way to automate Word document creation while preserving formatting?

Automating Word document creation while preserving formatting is best achieved by validating OOXML conformance and maintaining relationships programmatically. This approach ensures consistent styles and strict formatting preservation during automated drafting and revision workflows.

Does defusedxml support parsing OOXML constructs for tracked changes in docx files?

Defusedxml supports parsing OOXML constructs for tracked changes in docx files by safely loading the unpacked XML. The Skill leverages this dependency to implement and validate OOXML constructs like w:ins and w:del during document manipulation.

Can I use Python scripts to revise corporate Word templates with tracked changes?

You can use Python scripts to revise corporate Word templates with tracked changes and comments. This Skill is specifically designed for professional workflows requiring drafting, revising, and annotating documents while strictly maintaining OOXML compliance and formatting.

Why does XML editing break formatting when modifying Word documents?

XML editing breaks formatting when modifying Word documents if OOXML constructs like RSIDs, content types, and relationships are not properly validated. This Skill prevents formatting loss by strictly implementing and validating these OOXML constructs during edits.