docx

Create, edit, redact, merge, split, and extract Word documents.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/nmoralescyber/claude-skill-optimization --skill docx-nmoralescyber
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/nmoralescyber/claude-skill-optimization/tree/main/skills/admin/docx
Command: npx skills add https://github.com/nmoralescyber/claude-skill-optimization --skill docx-nmoralescyber

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx-js, pandoc, LibreOffice, pdftoppm, python, npm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Word documents are often produced and edited in a fragmented, inconsistent way. This skill centralizes Word workflows, packaging creation, editing, redaction, and content extraction into a single auditable .docx output while preserving formatting and deliverable quality.

Core Features & Use Cases

  • Create new documents using docx-js with the Default Professional Preset to deliver polished .docx files.
  • Edit existing documents by unpacking, modifying XML, and repacking while preserving styles, track changes, and comments.
  • Redact content and export Word documents with careful metadata handling and version control.
  • Extract text, tables, and comments, and support conversions between Word and other formats (e.g., PDF, Markdown) as needed.
  • Support bilingual typography for PR contexts and deliverables, with consistent typography and layout.
  • Validate and audit outputs with the included scripts to ensure repeatable, compliant results.

Quick Start

Create a new .docx from draft content using the Default Professional Preset and validate the result with the built-in checks.

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 and editing while preserving tracked changes?

You can automate Word document creation and editing by unpacking the .docx XML to modify content directly, which preserves styles, tracked changes, and comments before repacking the file.

What is the best way to redact content in a .docx file for legal workflows?

Redacting content in a .docx file for legal workflows requires careful metadata handling and version control to ensure sensitive text is removed without leaving recoverable traces in the document structure.

Can I convert Markdown or PDF files to .docx format automatically?

Yes, you can convert files to and from .docx format including PDF and Markdown conversions, using a suite of shell scripts and document conversion tools to extract and repackage text and tables.

Does Word document packaging support bilingual typography for PR deliverables?

Yes, Word document packaging supports bilingual typography specifically for PR contexts and deliverables, applying consistent typography and layout rules when generating or editing the final .docx output.

How do I extract text and tables from existing Word documents without losing formatting?

To extract text and tables from Word documents without losing formatting, the process unpacks the underlying document XML to pull structured content, tables, and comments while maintaining the original style definitions.

What are the limitations of manipulating Word documents through XML unpacking?

Manipulating Word documents through XML unpacking requires strict validation scripts to ensure auditable, repeatable outputs, as direct XML modification can corrupt complex formatting if not carefully managed during repacking.