docx

Create and edit Word documents with the Node.js docx-js library.

1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/bakwankawa/lazy-code-skill --skill docx-bakwankawa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/bakwankawa/lazy-code-skill/tree/main/.cursor/skills/anthropic/docx
Command: npx skills add https://github.com/bakwankawa/lazy-code-skill --skill docx-bakwankawa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The docx skill enables you to create, read, edit, format, and convert Word documents (.docx) programmatically, streamlining report production and collaboration without manual UI work.

Core Features & Use Cases

  • Create new Word documents with structured content, formatting, tables, lists, and images.
  • Edit existing .docx files, apply tracked changes, insert images, and manage headers/footers or tables of contents.
  • Real-world use: generate a client report in .docx with a title page, table of contents, images, and a formatted section for conclusions.

Quick Start

Use the docx skill to generate a new Word document titled "Quarterly_Report.docx" with a formatted table of contents.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create Word documents programmatically with tables, images, and tracked changes?

You can create Word documents programmatically by using the docx skill to generate structured .docx files, applying formatting, inserting tables and images, and enabling tracked changes without manual UI work.

Can I edit existing .docx files to insert headers, footers, or a table of contents?

Yes, you can edit existing .docx files to insert images, manage headers and footers, apply tracked changes, and generate formatted tables of contents for professional document workflows.

Does the docx skill require Node.js or specific libraries to generate Word documents?

Generating Word documents relies on the Node.js docx-js library and related tooling, with optional document conversion steps available via Pandoc or LibreOffice as needed for specific formats.

What is the best way to automate report generation in Word format?

Automating report generation in Word format is best handled by programmatically creating .docx files with title pages, tables of contents, images, and formatted conclusion sections to replace manual workflows.

Can I convert Word documents to other formats using Pandoc or LibreOffice?

Yes, Word documents created or edited programmatically can undergo optional conversion steps via Pandoc or LibreOffice, allowing you to export .docx files into other required formats seamlessly.

Are there limitations when applying tracked changes to Word documents programmatically?

While you can apply tracked changes when editing Word documents, programmatic generation relies on docx-js and may require Pandoc or LibreOffice for complex conversions, potentially limiting advanced native Word UI features.