docx-official

Create, edit, and analyze .docx files using docx-js and ooxml.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the creation, editing, and analysis of .docx files, saving users time and effort by automating tasks that are otherwise labor-intensive.

Core Features & Use Cases

  • Create New Documents: Build custom Word documents using JavaScript/TypeScript and predefined styles.
  • Edit Existing Documents: Make changes to any .docx file, including redlining for document review.
  • Analyze Content: Extract text, modify XML structures, and convert documents to images for visual analysis.
  • Use Case: If you need to create a new report from scratch, this Skill allows you to design and populate it with the desired content and formatting without manually opening Word.

Quick Start

Create a new .docx file by running the following JavaScript code:

const { Document } = require('docx');
const doc = new Document();
doc.addParagraph('Hello, World!');
const buffer = Packer.toBuffer(doc);
fs.writeFileSync('new_file.docx', buffer);

Frequently Asked Questions about docx-official

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

FAQPage Schema
How do I automate Word document creation and formatting without opening Word?

Automate Word document creation by using JavaScript and TypeScript libraries like docx-js to programmatically build custom .docx files with predefined styles and content. This allows you to generate formatted reports without manually opening Word.

Can I edit existing .docx files and apply redlining for document review?

Edit existing .docx files by programmatically modifying their XML structures and applying changes like redlining for document review. This Skill parses and manipulates Word document formats to automate labor-intensive editing workflows.

What is the best way to extract text and analyze .docx file content?

Analyze .docx file content by extracting text and modifying underlying XML structures using JavaScript, TypeScript, and Python libraries. You can also convert documents to images using tools like poppler for visual analysis.

Does this approach work with pandoc and LibreOffice for document conversion?

Document conversion works with pandoc and LibreOffice to transform and render .docx files across various formats. These dependencies integrate with docx-js and ooxml to parse, manipulate, and convert Word documents.

Do I need JavaScript and Python libraries to parse and manipulate Word document XML?

You need JavaScript, TypeScript, and Python libraries to parse and manipulate Word document XML effectively. These dependencies, including defusedxml, are required to automate creation, editing, and analysis of .docx files.