One-click install
npx skills add https://github.com/yashs33244/my-mac-claude --skill docx-yashs33244
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/yashs33244/my-mac-claude/tree/main/skills/anthropic/docx
Command: npx skills add https://github.com/yashs33244/my-mac-claude --skill docx-yashs33244

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill makes it practical to create, edit, and debug Word documents (.docx) by working directly with their underlying OOXML structure, while reducing the chance of producing a “corrupt” file.

Core Features & Use Cases

  • Create .docx documents using the JavaScript docx library, with guidance for page size, styles, tables, images, hyperlinks, footnotes, TOC, and layout details.
  • Edit existing .docx documents safely by unpacking to XML, applying targeted XML changes (including tracked changes and comments), then repacking with validation/auto-repair.
  • Convert and verify outputs via LibreOffice-powered conversion (e.g., .docx → PDF/images) and schema/relationship/ID validation helpers to catch structural issues early.

Quick Start

Use the docx skill to unpack an input .docx into editable XML, make the minimal required XML edits, then repack it back into a valid .docx file.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I edit a Word .docx file without corrupting the document structure?

To edit a Word .docx file safely, you unpack the file into its underlying OOXML components, apply targeted XML modifications, and repack it with structural validation to ensure the document remains uncorrupted.

Can I insert tracked changes and comments into an existing .docx document programmatically?

Yes, you can insert tracked changes and comments into an existing .docx by unpacking the file to XML, adding the specific OOXML elements for revisions and annotations, then repacking it into a valid document.

What is the best way to convert a .docx file to PDF or images for verification?

The best way to convert a .docx file to PDF or images for verification is using LibreOffice-powered conversion, which transforms the document while running schema and relationship validation to catch rendering issues.

How do I create a Word document with tables, hyperlinks, and footnotes from scratch?

You can create a Word document with tables, hyperlinks, and footnotes using the JavaScript docx library, applying specific OOXML constraints for page size, styles, and layout during generation.

Why does my Word document render incorrectly after manual XML editing?

Manual XML editing often causes incorrect Word rendering due to broken relationship consistency, improper run or paragraph structure, or lost whitespace, which requires OOXML-specific validation and auto-repair to fix.

Do I need LibreOffice installed to troubleshoot broken Word rendering?

Yes, LibreOffice is required for converting .docx files to PDF or images to visually verify outputs, while schema and relationship validation helpers check the underlying OOXML structure for broken rendering issues.