docx

Create and edit .docx files with docx-js and pandoc.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/mcauduro0/Macro_Trading --skill docx-mcauduro0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/mcauduro0/Macro_Trading/tree/main/.claude/skills/anthropics-docx
Command: npx skills add https://github.com/mcauduro0/Macro_Trading --skill docx-mcauduro0

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, libreoffice, poppler-utils, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Microsoft Word documents (.docx files), eliminating the need for manual intervention in document formatting and content management.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using programmatic control over structure, styles, tables, and images.
  • Content Editing: Modify existing .docx files, including accepting tracked changes, performing find-and-replace operations, and updating document elements.
  • Use Case: Automatically generate a monthly performance report in .docx format, incorporating data from various sources, applying consistent branding, and accepting all reviewer comments before finalization.

Quick Start

Use the docx skill to create a new Word document with the title 'Quarterly Report'.

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 generation with tables, headers, and images?

Automate Word document generation by using the docx-js library to programmatically control document structure, styles, tables, headers, footers, and image insertion. This eliminates manual formatting and ensures consistent branding across generated .docx files.

Can I programmatically accept tracked changes in an existing .docx file?

Yes, you can programmatically accept tracked changes in existing .docx files. The Skill processes documents to accept all reviewer comments and tracked modifications, streamlining finalization workflows for reviewed files.

How do I convert a .doc file to .docx format?

Convert .doc files to .docx format using integrated command-line tools like pandoc and LibreOffice. This transformation upgrades legacy documents into modern Word formats for subsequent automated editing and content extraction.

What's the best way to perform find-and-replace text operations in a Word document?

Perform find-and-replace text operations in Word documents by applying automated text replacement scripts to existing .docx files. This allows precise content updates without manually opening or editing the document.

Do I need pandoc and LibreOffice installed to manipulate Word documents?

Yes, pandoc, LibreOffice, and poppler-utils are required dependencies. They provide the command-line conversion and rendering capabilities needed to manipulate Word documents, extract content, and handle format transformations.

How does extracting content with tracked changes from Word documents work?

Extracting content with tracked changes works by processing the .docx file structure to isolate and retrieve text along with its revision metadata. This enables review of document modifications without altering the original file.