docx

Create, edit, and analyze .docx files via OOXML manipulation.

19|5|Updated Nov 23, 2025
One-click install
npx skills add https://github.com/Nir-Bhay/markups --skill docx-nir-bhay
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/Nir-Bhay/markups/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/Nir-Bhay/markups --skill docx-nir-bhay

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, docx, 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 documents, particularly .docx files, by providing robust tools for content manipulation, formatting preservation, and tracked changes.

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 using Python's Document library for basic or complex OOXML manipulation.
  • Tracked Changes (Redlining): Implement precise edits with tracked changes, essential for collaborative document review and legal/academic work.
  • Text Extraction & Analysis: Convert .docx to Markdown using pandoc to easily read content and analyze changes.
  • Use Case: A legal team needs to review a contract. They can use this Skill to apply specific edits with tracked changes, add comments, and ensure all formatting is preserved, facilitating a smooth review process.

Quick Start

Use the docx skill to convert the document 'contract_draft_v1.docx' into markdown format.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I apply tracked changes to a Word document programmatically?

To apply tracked changes to a Word document, this Skill manipulates Office Open XML (OOXML) directly via Python or docx-js, inserting or deleting content with redlining while preserving original formatting for collaborative review.

Can I extract text from a .docx file for analysis?

You can extract text from a .docx file by converting it to Markdown format using the integrated pandoc utility, which simplifies reading and analyzing document content while stripping complex OOXML formatting.

Does this tool support adding comments to existing Word documents?

Yes, this tool supports adding comments to existing Word documents by leveraging programmatic OOXML manipulation, allowing you to annotate specific text sections during collaborative document review.

What is the best way to generate a new .docx file from scratch?

The best way to generate a new .docx file from scratch is using the docx-js library, which allows you to create Word documents and apply complex formatting programmatically through structured JavaScript or TypeScript inputs.

Do I need LibreOffice installed to edit complex document formatting?

While LibreOffice is listed as a dependency for processing, complex formatting and edits are primarily handled through Python's Document library and direct OOXML manipulation, ensuring precise formatting preservation without manual conversion.

When should I not use Markdown conversion for document analysis?

You should avoid Markdown conversion when you need to preserve exact visual formatting or tracked changes, as pandoc extracts text content and may strip complex OOXML styling required for legal document review.