docx

Generate and edit Microsoft Word documents via underlying XML structure.

2|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/Lord1Egypt/scientific-agent-toolkit --skill docx-lord1egypt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Lord1Egypt/scientific-agent-toolkit/tree/main/scientific-skills/docx
Command: npx skills add https://github.com/Lord1Egypt/scientific-agent-toolkit --skill docx-lord1egypt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, LibreOffice, Poppler, and includes scripts (resource) components.

What problem does it solve?

This skill solves the complexity of programmatically creating, editing, and analyzing Microsoft Word documents, which are inherently complex ZIP archives of XML files.

Core Features & Use Cases

  • Document Generation: Create polished, professional reports, memos, and templates using JavaScript-based generation.
  • Advanced Editing: Perform precise find-and-replace, manage tracked changes, and insert comments directly into the underlying XML structure.
  • Conversion & Analysis: Extract text, convert legacy formats, and generate publication-quality figures or reports from existing documents.

Quick Start

Use the docx skill to create a new professional report with a table of contents and custom headings based on the provided project requirements.

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 from structured data?

Automating Word document generation involves programmatically creating the underlying XML structure of docx files. This skill uses the docx-js library to build professional reports and templates directly from your project requirements.

Can I insert tracked changes and comments into a Word document programmatically?

Yes, you can insert tracked changes and comments into a Word document programmatically by directly manipulating its XML structure. This allows for advanced editing workflows without opening the document in Microsoft Word.

Do I need LibreOffice and pandoc to edit Microsoft Word documents?

Yes, LibreOffice and pandoc are required dependencies to ensure schema compliance and document integrity. They facilitate format conversion, legacy file analysis, and maintaining the structure of the generated docx files.

What is the best way to convert legacy Word formats and extract document text?

Converting legacy Word formats and extracting text is best handled by analyzing the underlying XML structure. This skill leverages pandoc and Poppler to extract content and convert files while preserving document integrity.

How does programmatic Word document editing handle complex XML structures?

Programmatic Word document editing handles complex XML structures by treating the file as a ZIP archive of XML files. The skill manipulates these internal XML components directly to perform precise find-and-replace and generate custom headings.

Are there limitations when generating complex reports using the docx-js library?

Generating complex reports with the docx-js library requires strict schema compliance to avoid document corruption. You must ensure that all injected XML elements for tables of contents and custom headings align with Office document standards.