docx

Create, edit, and analyze .docx documents via XML and Python/Node tooling.

38|3|Updated May 7, 2026
One-click install
npx skills add https://github.com/Chanw-research/claude-code-paper-writing --skill docx-chanw-research
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Chanw-research/claude-code-paper-writing/tree/main/skills/document-handling/docx
Command: npx skills add https://github.com/Chanw-research/claude-code-paper-writing --skill docx-chanw-research

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides end-to-end Word document handling by enabling creation, reading, editing, formatting, and analysis of .docx documents, simplifying complex document workflows.

Core Features & Use Cases

  • Create new documents from templates and content
  • Edit existing documents by unpacking XML, modifying content, and repacking
  • Manage images, tables, styles, and tracked changes to produce polished Word documents
  • Convert legacy .doc files to .docx for modern editing and compatibility

Quick Start

Create a new Word document called report.docx with a title and a short paragraph.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I automate Word document creation from a template?

To automate Word document creation from a template, this tool uses scripts and Node tooling to generate new .docx files by populating predefined templates with custom content and formatting.

Can I insert images and format tables in a docx file programmatically?

Yes, you can insert images and format tables in a docx file programmatically. The tool handles image embedding and manages table formatting with proper widths through XML-based edits and scripts.

How do you edit existing Word documents without breaking the formatting?

Editing existing Word documents without breaking formatting is done by unpacking the document XML, modifying the targeted content, and repacking it to preserve original styles and outline levels.

What is the best way to convert legacy .doc files to .docx format?

The best way to convert legacy .doc files to .docx format is using this tool's built-in conversion features, which modernize older documents for current editing environments and compatibility.

Does this tool support managing tracked changes across professional documents?

Yes, this tool supports managing tracked changes across professional documents. It allows users to handle revisions and review edits directly within the .docx file structure using scripts.

What are the limitations of manipulating docx files through XML-based edits?

Manipulating docx files through XML-based edits requires unpacking and repacking the document correctly. Complex formatting may need careful handling of underlying XML structures to avoid breaking styles.