docx

Create and edit .docx files with JavaScript and Python tools.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/felixboehm/biochem-allergy --skill docx-felixboehm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/felixboehm/biochem-allergy/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/felixboehm/biochem-allergy --skill docx-felixboehm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, pandoc, 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), eliminating the need for manual intervention in complex document formatting and content management tasks.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript, including complex formatting like tables of contents, headers, footers, and custom styles.
  • Document Editing: Modify existing .docx files by unpacking, editing XML, and repacking, or by accepting tracked changes.
  • Content Extraction & Conversion: Extract text, convert documents to images, and manage tracked changes.
  • Use Case: Generate a professional client report with specific branding, tables, and a table of contents, all programmatically.

Quick Start

Use the docx skill to create a new Word document with a title and a 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 generation with custom styles and tables of contents?

Automating Word document generation uses JavaScript and Python libraries to programmatically create .docx files with specific formatting like tables of contents, headers, footers, and custom styles. This eliminates manual formatting by handling document structure directly through code.

Can I edit existing .docx files by modifying their XML content directly?

Editing existing .docx files involves unpacking the document, modifying the underlying XML content, and repacking it. This approach allows precise manipulation of document structure and content without relying on visual text editors.

How do I programmatically accept tracked changes in a Word document?

Accepting tracked changes in a Word document is handled programmatically by processing the .docx file structure to resolve revisions. This automatically finalizes edits without requiring manual acceptance through the Microsoft Word interface.

What is the best way to convert PDFs to images for document processing workflows?

Converting PDFs to images within document processing workflows utilizes poppler-utils to extract visual representations. This allows automated systems to render document pages as images for further analysis or integration.

Does this document manipulation approach work with pandoc and LibreOffice for format conversion?

This document manipulation approach integrates with pandoc and LibreOffice to handle format conversion and editing. These dependencies enable seamless transformation between .docx files and other document formats.

Why does extracting text from Word documents fail when tracked changes are present?

Extracting text from Word documents with tracked changes can fail if the revision metadata is not processed first. Resolving or accepting tracked changes ensures the extracted text reflects the final document content accurately.