docx

Generate and edit .docx files with XML structure management.

Updated Nov 23, 2025
One-click install
npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill docx-manuelbrandner85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/manuelbrandner85/Weltenbibliothekapp/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill docx-manuelbrandner85

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, LibreOffice, Poppler, defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

This skill solves the complexity of programmatically creating, editing, and analyzing Word documents, ensuring professional formatting and structural integrity without manual intervention.

Core Features & Use Cases

  • Document Generation: Create polished .docx files with tables, headers, footers, and custom styles using JavaScript.
  • Content Manipulation: Perform find-and-replace, extract text, and manage tracked changes or comments in existing documents.
  • Conversion & Analysis: Convert legacy .doc files, generate images from document pages, and validate XML structure for compatibility.

Quick Start

Use the docx skill to generate a professional report template with a table of contents and custom heading styles based on the provided project requirements.

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 without manual formatting?

Automate Word document generation by programmatically creating .docx files through XML structure management, ensuring professional formatting and structural integrity without manual intervention. Supports tables, headers, footers, and custom styles using JavaScript.

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

Yes, you can insert tracked changes and comments into existing .docx files programmatically. This skill manipulates Word documents by managing the underlying XML structure to add revisions, comments, and perform find-and-replace operations.

What do I need to convert legacy .doc files to .docx format?

Converting legacy .doc files requires LibreOffice, pandoc, and the docx-js library to ensure schema compliance and cross-platform compatibility. These tools validate XML structure and generate compliant .docx files from older formats.

What's the best way to validate XML structure for Word document compatibility?

Validate XML structure for Word document compatibility using the docx-js library alongside defusedxml and lxml. This approach ensures schema compliance and cross-platform compatibility when generating or editing .docx files programmatically.

Does this approach work for generating custom report templates with tables of contents?

Yes, this approach works for generating custom report templates with tables of contents. It creates polished .docx files with custom heading styles, headers, footers, and tables based on project requirements using JavaScript and XML management.