docx

Generate and edit .docx files via JavaScript and XML-level manipulation.

3|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/legout/pi-config --skill docx-legout
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/legout/pi-config/tree/main/installed-skills/docx
Command: npx skills add https://github.com/legout/pi-config --skill docx-legout

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill solves the complexity of programmatically creating, editing, and manipulating .docx files, which are inherently complex ZIP archives of XML, by providing standardized workflows for generation and precise XML-level modification.

Core Features & Use Cases

  • Document Generation: Create professional, formatted Word documents including tables, images, and headers using JavaScript.
  • XML-Level Editing: Perform surgical edits, find-and-replace, and tracked change management directly within the document's underlying XML structure.
  • Conversion & Cleanup: Convert legacy .doc files, accept tracked changes, and extract content for analysis.

Quick Start

Use the docx skill to create a new report document with a table of contents and specific page margins based on the provided template.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically generate Word documents with tables and images?

You can programmatically generate Word documents with tables, images, and headers using JavaScript. This approach creates professional, formatted .docx files for structured document assembly and automated formatting.

Can I edit the underlying XML of a .docx file to manage tracked changes?

Yes, you can perform surgical edits and manage tracked changes by modifying the .docx file's underlying XML structure directly. This allows precise find-and-replace operations and schema-compliant XML modification.

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

The best way to convert legacy .doc files is through automated conversion and cleanup workflows. This process modernizes older documents into the .docx format for cross-platform compatibility and content extraction.

Does this approach work for extracting content from .docx files for analysis?

Yes, this approach supports content extraction from .docx files for analysis. By unpacking the document's XML structure, it enables automated content retrieval and accept tracked changes workflows.

Why does programmatic .docx manipulation require handling ZIP archives of XML?

Programmatic .docx manipulation requires handling ZIP archives of XML because the .docx format is inherently structured as a compressed bundle of XML files. This design necessitates standardized workflows for precise modification.

Do I need LibreOffice and pandoc to automate document generation and conversion?

You need LibreOffice and pandoc dependencies to automate document generation and conversion tasks. These tools enable legacy .doc conversion, content extraction, and cross-platform compatibility for your professional deliverables.