docx

Create, edit, review, and redline Word documents with tracked changes via the office tool.

6|Updated Jun 25, 2026
One-click install
npx skills add https://github.com/tribgames/mixdog --skill docx-tribgames
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/tribgames/mixdog/tree/main/src/defaults/skills/docx
Command: npx skills add https://github.com/tribgames/mixdog --skill docx-tribgames

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Producing polished Word documents programmatically is error-prone: fragmented runs break text replacement, tracked changes are hard to audit, and layout issues only appear after rendering. This Skill provides a structured workflow for authoring, editing, and redlining .docx files with render-based review and automated validation. ## Core Features & Use Cases - Native document authoring: Create Word files paragraph by paragraph with explicit control over fonts, spacing, tables, images, headers, footers, and page numbers, then render and visually inspect every page. - Existing document editing: Open, snapshot, normalize runs, and batch-edit paragraphs, tables, templates, and content controls, with attach mode for co-editing files already open in Word. - Redlining with tracked changes: Enable tracked changes, apply reviewer-labeled edits, and finalize with an audit that detects untracked edits and foreign authors before delivery. - Use Case: A legal team needs a contract reviewed with tracked changes. Open the .docx, enable track_changes with a reviewer label, apply replace_text edits, then finalize with the redlining audit to prove every change is tracked and attributed. ## Quick Start Use the docx skill to create a two-page project status report in Word format with a title, summary, and a metrics table, then render it for review.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create a Word document programmatically with tracked changes?▼

Enable tracked changes with the track_changes operation before making edits, and label each edit with an author name. Operations like replace_text and set_paragraph_text then record insertions and deletions as revisions that Word displays as a redline.

How to edit an existing .docx file without breaking formatting?▼

Open the file, take a snapshot to locate paragraphs and tables by path, then start your first batch with normalize_runs so fragmented runs merge. Apply edits through batch operations like replace_text and set_table_cell, which preserve surrounding formatting.

Can I edit a Word document without Microsoft Office installed?▼

Yes, the portable backend edits .docx files without Office and preserves macros without running them. A Microsoft Office session is only needed for attach mode, which co-edits a document the user already has open in Word.

Why does replace_text fail to find a phrase in my Word document?▼

Documents that went through real editing are fragmented into many runs, so a visible phrase may not exist as one string. Run normalize_runs first to merge identically formatted runs, after which replace_text matches whole phrases.

What file formats does the docx skill support?▼

It supports .docx, .dotx, and .docm Word packages. Legacy .doc files are not Word packages and must be saved as .docx in Word first; PDF and slide formats are out of scope.

How is a redline verified before delivering the document?▼

Finalize with auditProfile set to redlining and the same author label used for edits. The runtime undoes only new tracked changes, compares text against the source, and blocks delivery if untracked edits or foreign authors are found.