docx-editing

Edit existing .docx files with tracked changes while preserving formatting.

37|4|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/UseJunior/safe-docx --skill docx-editing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx-editing
Source: https://github.com/UseJunior/safe-docx/tree/main/skills/docx-editing
Command: npx skills add https://github.com/UseJunior/safe-docx --skill docx-editing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Edit existing Word documents with surgical precision while preserving formatting and generating tracked changes.

Core Features & Use Cases

  • Surgical edits on existing .docx files with preserved layout and styles
  • Generate tracked changes redlines and export revised documents
  • Compare two Word documents and extract revisions
  • Enforce local, safe edits with strict path policies

Quick Start

Read a document with read_file, locate targets with grep, edit text with replace_text, then save the final document.

Frequently Asked Questions about docx-editing

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

FAQPage Schema
How do I edit existing Word documents with tracked changes while preserving formatting?

To edit Word documents with tracked changes and preserved formatting, use a local MCP server workflow that reads the .docx file, locates target text with grep, applies surgical replace_text edits, and saves the revised document with redlines.

What is the best way to redline contracts in .docx format without breaking the layout?

Redlining contracts in .docx format without breaking the layout requires surgical text replacements that enforce strict local path policies, preserving original document styles while generating tracked changes for legal compliance.

Can I compare two Word documents and extract revisions automatically?

Yes, you can compare two Word documents and extract revisions automatically by processing local .docx files through the MCP server to identify differences and export the extracted revisions for content review.

Does this docx editing approach work for brownfield documents like agreements and reports?

Yes, this docx editing approach works for brownfield documents like agreements and reports by applying surgical edits, redlines, and content reviews to existing files while strictly preserving their original formatting and styles.

What are the limitations when applying tracked changes to local Word files?

Limitations when applying tracked changes to local Word files include strict path restrictions enforced by the local MCP server, confining edits to safe local directories and preventing operation on remote or unauthorized file paths.

How do I locate and replace specific text in a Word document programmatically?

To locate and replace specific text in a Word document programmatically, read the file, use grep to find target strings, apply replace_text for surgical edits, and save the final document with generated tracked changes.