docx

Create, edit, and analyze .docx files using the docx library and LibreOffice.

16|1|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/bahayonghang/my-claude-code-settings --skill docx-bahayonghang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/bahayonghang/my-claude-code-settings/tree/main/skills/docx
Command: npx skills add https://github.com/bahayonghang/my-claude-code-settings --skill docx-bahayonghang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Word documents (.docx) are everywhere, but programmatically creating, editing, and ensuring consistent formatting can be tedious and error-prone. This Skill provides automated tooling to generate, modify, and analyze Word documents, reducing manual effort and preserving structure.

Core Features & Use Cases

  • Programmatic document creation: Generate .docx files from templates and data sources.
  • XML-level editing: Modify WordprocessingML content to apply precise formatting and content changes.
  • Conversion and validation: Apply consistent styles, validate structure, and convert docs when needed via LibreOffice.

Quick Start

Install the docx library and run a sample script that builds a document and saves it as report.docx. Then open the file to verify formatting and content.

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 from templates and data sources?

Automate Word document generation by using the docx JavaScript library to populate templates with data sources, applying consistent formatting and styling to produce structured .docx files without manual effort.

Can I edit the XML structure of a Word document directly to apply precise formatting?

Yes, you can edit WordprocessingML XML content directly to apply precise formatting and content changes, ensuring exact styling control and structural validation within Word documents.

Do I need LibreOffice to convert and validate Word documents across different formats?

Yes, you need LibreOffice to perform cross-format conversions and validate document structure, ensuring consistent styles are applied when generating or modifying Word .docx files programmatically.

What is the best way to batch generate Word documents while preserving formatting?

Batch generate Word documents by running scripts with the docx library to automate content manipulation across templates and data sources, preserving formatting and structure throughout the generation workflow.

Does programmatic Word document editing handle styling and content manipulation across templates?

Programmatic Word document editing handles styling and content manipulation across templates by modifying WordprocessingML content, allowing precise formatting changes and consistent style application across multiple data sources.

Why does programmatically creating Word documents reduce manual effort and errors?

Programmatically creating Word documents reduces manual effort and errors by automating formatting, styling, and content manipulation through the docx library, ensuring consistent structure across templates and data sources.