docx

Create and edit .docx files with python-docx and docx-js.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/digresik-tech/olt-monitoring-mini --skill docx-digresik-tech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/digresik-tech/olt-monitoring-mini/tree/main/skills/docx
Command: npx skills add https://github.com/digresik-tech/olt-monitoring-mini --skill docx-digresik-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of professional Word documents, handling complex formatting, tracked changes, and comments with ease.

Core Features & Use Cases

  • Document Creation: Generate new .docx files from scratch using JavaScript/TypeScript with the docx-js library.
  • Content Editing: Modify existing .docx files, including text replacement, formatting changes, and tracked revisions.
  • Comment Management: Add, reply to, and manage comments within documents.
  • Advanced Formatting: Apply specific styles, line spacing, table formatting, and layout rules.
  • Use Case: Automatically generate a quarterly report, ensuring all headings are correctly formatted, tables have specific borders and cell margins, and comments are added to sections requiring review.

Quick Start

Use the docx skill to create a new document with a title and two 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 python-docx while preserving complex formatting?

To generate a Word document with python-docx while preserving complex formatting, this Skill manages creation and editing by adhering to strict design requirements for line spacing, chart centering, color palettes, and typography for professional output.

Can I add and manage comments in a .docx file using JavaScript?

Yes, you can manage comments in a .docx file using JavaScript. This Skill leverages the docx-js library to add, reply to, and manage comments within documents, alongside handling text replacement and tracked revisions.

What is the best way to implement tracked changes in an existing Word document?

The best way to implement tracked changes in an existing Word document is using this Skill, which modifies .docx files to apply tracked revisions and manage content edits while adhering to specific formatting rules and styles.

Does this approach support extracting text and analyzing OOXML structures?

Yes, this approach supports text extraction and OOXML analysis. It uses libraries like python-docx and docx-js to analyze .docx files, implementing tracked changes and complex formatting preservation based on strict document design requirements.

Why do my generated Word documents lose specific line spacing and table borders?

Generated Word documents lose specific line spacing and table borders when strict design requirements are not applied. This Skill ensures professional document output by enforcing specific styles, table formatting, borders, and cell margins during document creation.