docx

Create, edit, and analyze .docx files using JavaScript and docx-js library.

Updated Nov 18, 2025
One-click install
npx skills add https://github.com/bowoxdaily/SistemAbsensi-ptmingda --skill docx-bowoxdaily
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/bowoxdaily/SistemAbsensi-ptmingda/tree/main/.windsurf/skills/docx
Command: npx skills add https://github.com/bowoxdaily/SistemAbsensi-ptmingda --skill docx-bowoxdaily

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of Word documents, enabling users to efficiently manage their document workflows without manual formatting or complex software.

Core Features & Use Cases

  • Document Creation: Generate new .docx files with custom styles and layouts.
  • Document Editing: Modify existing .docx files with advanced XML manipulation.
  • Content Analysis: Extract text, images, and metadata from .docx files.
  • Use Case: Users can create professional-looking memos, reports, and letters, and even automate the insertion of tables, images, and footnotes.

Quick Start

Use the docx skill to create a new document with the following structure:

# Project Report
This report outlines the project status and highlights key achievements.

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 generation and create .docx files programmatically?

To automate Word document generation, you can create .docx files programmatically using JavaScript and the docx-js library to define custom styles, layouts, and content structures like tables and images.

How do I extract text, images, and metadata from an existing .docx file?

You can extract text, images, and metadata from a .docx file by performing content analysis through XML manipulation, allowing you to parse document contents and retrieve embedded media effectively.

Do I need LibreOffice to edit and validate .docx files using JavaScript?

Yes, you need LibreOffice alongside the docx-js dependency to convert and validate documents during the .docx file editing and creation process, ensuring your generated Word documents are correctly formatted.

What is the best way to modify existing Word documents without manual formatting?

The best way to modify existing Word documents without manual formatting is through advanced XML manipulation using docx-js, enabling precise customization of .docx files directly within your code workflow.

Can I insert tables, images, and footnotes into a Word document via code?

Yes, you can automate the insertion of tables, images, and footnotes into a Word document via code by leveraging the docx-js library to structure and generate professional reports and memos.

What are the limitations of using docx-js for document analysis and editing?

While docx-js handles document creation and XML manipulation effectively, complex document analysis or advanced formatting validation requires pairing it with LibreOffice to convert and verify the final .docx output.