Docx Tracked Edits

    by Edward Lin

    1

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

    Free

    Security scanned

    Works with the AI Agents you already use

    Docx Tracked Edits

    Example session with this skill installed

    Please redline legal_agreement.docx. Change "shall provide thirty days notice" to "shall provide sixty days notice" and credit the edits to "Legal Counsel".

    • Read your context and instructions
    • Compiled the docx tracked edits

    I have processed the document and applied the requested redline as a native tracked change.

    Document Edit Summary

    Original TextProposed ReplacementStatusAuthor
    shall provide thirty days noticeshall provide sixty days notice1 replacement appliedLegal Counsel

    The edits were saved to a new file: legal_agreement.edited.docx.

    [
      {
        "find": "shall provide thirty days notice",
        "replace": "shall provide sixty days notice",
        "occurrences_found": 1
      }
    ]
    

    Next steps

    1. Open legal_agreement.edited.docx in Microsoft Word.
    2. Navigate to the Review tab and ensure Track Changes is enabled to see the redlines.
    3. Use the Accept or Reject buttons to finalize the proposed "Legal Counsel" edits.

    Connects securely to your tools. The creator never sees your data.

    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.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    • Free with an Agensi account

    Software
    Node.js

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files
    Listed8 days ago

    What's inside

    Creator

    Edward Lin

    Edward Lin

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    New in Technical Documentation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Technical Documentation.

    Free