docx

Create and edit .docx files using docx-js and LibreOffice.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Garynan52000/learning --skill docx-garynan52000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Garynan52000/learning/tree/main/.trae/skills/docx
Command: npx skills add https://github.com/Garynan52000/learning --skill docx-garynan52000

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates and enhances various tasks associated with document creation, editing, and analysis in Microsoft Word documents (docx format).

Core Features & Use Cases

  • DOCX Creation & Editing: Automates creation of docx files from scratch using docx.js library and supports editing of existing docx files using Python scripts.
  • Text & Image Manipulation: Extracts text, images, and performs find-and-replace operations within docx files.
  • Formatting and Styling: Applies formatting like tables of contents, headings, page numbers, and letterheads to documents.
  • Use Case: For instance, when you need to create a complex report with multiple formatting elements in a Word document quickly and accurately.

Quick Start

Use the 'docx' skill to create a new document with a title 'My Report' and add a 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 automate document creation and edit existing docx files?

Automate docx creation using the docx.js library and edit existing Word documents via Python scripts to extract text, insert images, and perform find-and-replace operations programmatically.

Can I convert legacy .doc files to docx format?

Convert legacy .doc files using LibreOffice and LibreOffice Python bindings, which handle complex operations and formatting required for modern .docx document conversion.

Do I need LibreOffice installed to apply complex formatting like tables of contents and headings?

Yes, LibreOffice is required for complex operations and formatting such as applying tables of contents, headings, page numbers, and letterheads to professional Word documents.

What is the best way to extract text and images from a Word document?

Extract text and images from docx files using Python scripts integrated with LibreOffice Python bindings, enabling automated text manipulation and image extraction workflows.

Does docx.js work with poppler and pandoc for document processing?

Docx.js works alongside pandoc, poppler, and LibreOffice dependencies to support comprehensive document processing, text manipulation, and format conversion within professional workflows.