# Docx Tracked Edits

> Propose native Microsoft Word tracked changes and redlines instead of silently overwriting .docx files.

Docx Tracked Edits is a free AI agent skill on Agensi by Edward Lin, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Edward Lin](https://www.agensi.io/creators/edward-lin)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/docx-tracked-edits
- Tags: documentation, node-js, automation, legal, writing

## About this skill

Redlining Word documents with LLMs often leads to silent overwrites that hide what actually changed. This skill interfaces with native Word tracked changes, allowing you to propose edits that a human reviewer can accept or reject in Microsoft Word.

### What it does
- **Native redlining** converts LLM edits into actual Word deletions and insertions credited to a specific author.
- **Precision reading** extracts document text with markers for existing tracked changes and structural boundaries.
- **Bulk editing** applies multiple replacements from a JSON manifest to prevent shell-quoting errors.
- **Author attribution** lets you set a custom name for the revisions so they appear as "Legal Review" or "Senior Editor" in Word.
- **Safe output** defaults to creating new files to prevent data loss or unintentional overwrites.

### How it works
1. **Read phase** uses `read_docx.mjs` to extract text and identify paragraph indices and existing revision markers.
2. **Analysis phase** identifies specific phrases to change, ensuring the match text is unique and captures the exact typography.
3. **Execution phase** runs `edit_docx.mjs` with a JSON edit list or direct CLI flags to generate the redlined file.
4. **Verification phase** checks the replacement count to ensure no unintended matches occurred before reporting back to the user.

### Frameworks & tools
Built with Node.js. It requires Node.js 18 or later and operates directly on the `.docx` XML structure without external dependencies or network calls.

### Why this beats prompting it yourself
Prompting an LLM to "rewrite this file with changes" destroys the document's version history and metadata. This skill preserves the original file and creates a standard audit trail that stakeholders can review using the Word interface they already know.

### Use cases
- **Contract redlining** to suggest clause changes while keeping the legal team in control of the final version.
- **Copy editing** for long-form content where the author needs to see every grammatical fix.
- **Collaborative drafting** where an AI assistant acts as one of several named contributors to a document.
- **Audit trails** for regulatory documents that require a clear record of who changed what.

### Known limitations
Does not support `.doc` or `.odt` files. Edits are limited to the document body; headers, footers, footnotes, and comments are not accessible for modification.

## Requires

- Node.js

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Docx Tracked Edits skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does 'Docx Tracked Edits' differ from a standard AI text rewrite?

This skill allows the AI to suggest edits as native Microsoft Word 'Tracked Changes' (redlines), meaning a human can review, accept, or reject each specific change rather than the AI simply overwriting the entire document.

### What are the technical requirements to run this skill?

The skill is built with Node.js and requires Node.js 18 or later; it operates locally on the .docx XML structure and does not require an active internet connection or external API calls to process the files.

### Can I customize the author name that appears on the redlines in Word?

Yes, you can set a custom author name (e.g., 'AI Assistant' or 'Legal Review') for all proposed edits, ensuring that the revision history clearly identifies who suggested the changes within the Word interface.

### Does this skill work with legacy .doc files or OpenOffice formats?

No, this skill is specifically designed for the modern .docx format; it does not support legacy .doc files, .odt files, or editing content located in headers, footers, and footnotes.

### Will using this skill overwrite my original document?

To ensure data safety, the skill defaults to creating a new version of your document rather than overwriting your original file, preserving your primary copy while the AI generates its proposed redlines.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
