docx

Create, edit, and read .docx files using docx-js, docxtpl, and Pandoc.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/TsuneariKuroiwa/nurture-first-agent --skill docx-tsunearikuroiwa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/TsuneariKuroiwa/nurture-first-agent/tree/main/.claude/skills/docx
Command: npx skills add https://github.com/TsuneariKuroiwa/nurture-first-agent --skill docx-tsunearikuroiwa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Word document automation: programmatically create, edit, and read .docx files, handling headings, tables, images, headers/footers, tracked changes, and comments to streamline document workflows.

Core Features & Use Cases

  • Create new Word documents using docx-js with structured sections and styles.
  • Edit existing documents by manipulating underlying XML or using templating with docxtpl.
  • Read and convert .docx content (with text and basic formatting) via Pandoc; handle templates and reports.

Quick Start

Install the docx tooling and try creating a new document using the basic docx-js example provided.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I programmatically create a Word document with headings, tables, and headers?

Programmatically create Word documents with structured sections, headings, tables, and headers by using the docx-js library. This approach automates document workflows and generates styled .docx files directly from code without manual formatting.

Can I edit an existing .docx file to update templates and client documentation?

Edit existing .docx files by manipulating the underlying XML or applying templating with docxtpl. This allows you to update templates, client documentation, and reports automatically while preserving the original document structure.

What's the best way to read and convert Word documents containing tables and tracked changes?

Read and convert Word documents containing text, tables, and basic formatting via Pandoc. Pandoc extracts the document content for downstream processing, while underlying XML manipulation handles tracked changes and comments.

Do I need LibreOffice to convert .docx files to other formats?

LibreOffice is required for format conversions when processing .docx files. Alongside docx-js for creation, docxtpl for templating, and pandoc for reading, it provides the environment necessary to automate document format workflows.

How does docxtpl templating work for generating reports from Word documents?

Docxtpl templating works by injecting data into predefined Word document templates to generate reports. It manipulates the existing .docx structure to populate headings, tables, and styles dynamically, streamlining automated report generation.