docx

Create and edit .docx files using Python and JavaScript libraries.

1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/a0972199950/lazy-cv --skill docx-a0972199950
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/a0972199950/lazy-cv/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/a0972199950/lazy-cv --skill docx-a0972199950

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, editing, and manipulation of Microsoft Word documents (.docx), handling complex formatting and content management tasks efficiently.

Core Features & Use Cases

  • Document Generation: Create new .docx files from scratch using JavaScript, defining styles, tables, images, and more.
  • Content Editing: Modify existing .docx files by unpacking, editing XML, and repacking, including accepting tracked changes and adding comments.
  • Format Conversion: Convert between document formats (e.g., .doc to .docx) and extract content to Markdown or images.
  • Use Case: Automatically generate a professional report with a table of contents, specific styling, and embedded tables based on provided data.

Quick Start

Use the docx skill to create a new document with a title and a paragraph.

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 with custom formatting and tables?

Automating Word document generation involves using Python and JavaScript libraries to create .docx files from scratch, defining custom styles, embedding tables, and configuring multi-column layouts and headers.

How do I accept tracked changes and add comments to an existing .docx file?

To accept tracked changes and add comments in a .docx file, the Skill unpacks the document, directly modifies its underlying XML structure, and repacks it to preserve formatting and revision data.

What is the best way to convert .doc files to .docx or extract content to Markdown?

The best way to convert .doc to .docx or extract content to Markdown is by utilizing format conversion tools like pandoc and LibreOffice, which transform and extract document content into desired formats or images.

Do I need LibreOffice and Poppler installed to manage complex .docx formatting?

Yes, managing complex .docx formatting and extracting content requires dependencies like LibreOffice and Poppler installed, as they provide the necessary environment for format conversion and document rendering.

Can I modify XML directly to edit Word documents without breaking the file structure?

Yes, you can edit Word documents by directly modifying their internal XML, which allows for granular content manipulation and tracked changes acceptance while ensuring the repacked file structure remains intact.

What are the limitations of using Python scripts for advanced Word document manipulation?

Limitations of using Python scripts for Word document manipulation include potential rendering inconsistencies for highly complex layouts, as XML editing relies on precise structural preservation without native Microsoft Word validation.