docx

Create and edit Word documents with formatting using docx-js and pandoc.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/leanderriefel/scrobbling-away --skill docx-leanderriefel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/leanderriefel/scrobbling-away/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/leanderriefel/scrobbling-away --skill docx-leanderriefel

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the process of creating, editing, and manipulating Word documents (.docx files), reducing the complexity and time required for document creation and management.

Core Features & Use Cases

  • Document Creation: Generate new .docx files with formatting and styling options.
  • Document Editing: Modify existing .docx files by adding, removing, or editing content.
  • Data Extraction: Extract text and structured data from .docx files.
  • Use Case: Need to create a professional report or memo with formatting like tables of contents, headings, or page numbers? This Skill can help you generate and edit these documents quickly.

Quick Start

Use the docx skill to create a new Word document with a table of contents and headings.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate a Word document with a table of contents and headings?

To generate a Word document with a table of contents and headings, this Skill utilizes docx-js for document creation and formatting. It handles XML manipulation to structure professional reports and styled .docx files automatically.

What's the best way to extract text and structured data from a .docx file?

The best way to extract text and structured data from a .docx file is using pandoc for text processing. This approach captures document content efficiently for downstream data extraction and manipulation tasks.

Do I need pandoc and docx-js to edit existing Word documents?

Yes, you need pandoc and docx-js to edit existing Word documents. Pandoc handles text extraction while docx-js manages XML manipulation, allowing you to add, remove, or modify content within .docx files.

Can I use libreoffice and poppler for document conversion with this approach?

Yes, you can use libreoffice and poppler for document conversion alongside this approach. They are listed as dependencies to help manage format adjustments and convert Word documents into other file types.

How does XML manipulation work when formatting Word documents?

XML manipulation works by directly altering the underlying structure of .docx files to apply formatting and styling. Using docx-js, it translates formatting options like page numbers and headings into valid XML elements.