docx

Creates, edits, and analyzes Word .docx files using pandoc and docx-js.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/Rishabhupadhya/ai-content-repurpose --skill docx-rishabhupadhya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Rishabhupadhya/ai-content-repurpose/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/Rishabhupadhya/ai-content-repurpose --skill docx-rishabhupadhya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml.

What problem does it solve?

This skill automates the creation, reading, editing, and analysis of Word documents (.docx), reducing manual formatting and repetitive assembly.

Core Features & Use Cases

  • DOCX creation: generate new Word documents with professional formatting (headings, tables, headers/footers, TOCs).
  • Editing & analysis: unpack, modify, and re-pack existing .docx files, with content inspection and structure validation.
  • Local tooling: leverage open-source tools like pandoc for reading content and docx-js for programmatic document creation.

Quick Start

Create a new, polished Word document from a draft by outlining sections, adding a table of contents, and applying formatting as described.

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 creation from a draft?

To automate Word document creation, this Skill unpacks drafts and repacks them into polished .docx files with headings, tables, headers, footers, and tables of contents using pandoc and docx-js.

Can I edit an existing .docx file programmatically?

Yes, you can edit an existing .docx file programmatically by unpacking it, inspecting and modifying the content structure, and repacking it with validation using lxml and defusedxml.

What is the best way to generate a Word document with a table of contents?

The best way to generate a Word document with a table of contents is using this Skill's docx-js implementation to outline sections and apply professional formatting automatically.

Does this Word automation approach support converting content from other formats?

Yes, this Word automation approach supports converting content from various sources into polished .docx files by leveraging pandoc for reading content and docx-js for programmatic assembly.

Do I need pandoc and docx-js to format Word documents with headings and tables?

Yes, you need pandoc for reading content and docx-js for programmatic document creation to automatically format Word documents with structural elements like headings, tables, and page numbers.

Why use unpack and repack workflows for .docx editing?

Unpack and repack workflows are used for .docx editing to safely inspect document structure, modify content directly, and validate the output before generating the final formatted Word file.