docx

Create, edit, and analyze .docx files with Python and JavaScript libraries.

Updated Jun 12, 2026
One-click install
npx skills add https://github.com/kkn1125/devkimson-skills --skill docx-kkn1125
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/kkn1125/devkimson-skills/tree/main/skills/docx
Command: npx skills add https://github.com/kkn1125/devkimson-skills --skill docx-kkn1125

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, editing, and analysis of Word documents (.docx files), reducing manual effort and ensuring professional-quality output.

Core Features & Use Cases

  • Document Creation: Generate .docx files with JavaScript and validate their structure.
  • Document Editing: Edit existing .docx files by unpacking, editing XML, and repacking.
  • Data Conversion: Convert .doc to .docx and extract text from .docx files.
  • Use Case: When a user needs to create a formal report or memo, this Skill can help format the document with tables, headings, and images.

Quick Start

Run the create_docx script to generate a new document with a title and a few paragraphs.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create a .docx file with formatted headings, tables, and images?

You can create a .docx file with formatted headings, tables, and images by using the `create_docx` script to generate a new document with titles and paragraphs. This approach allows precise document creation for professional reports and memos.

What is the best way to edit existing Word documents without breaking the formatting?

The best way to edit existing .docx files without breaking formatting involves unpacking the document, modifying its underlying XML structure directly, and repacking it. This method ensures precise manipulation while preserving the original layout.

Do I need LibreOffice to convert .doc files to .docx format?

Yes, you need LibreOffice to convert .doc files to .docx format and extract text from documents. It handles the document conversion process, while Python libraries manage the subsequent file manipulation and data extraction.

Can I use pandas to analyze and extract text from Word documents?

Yes, you can use pandas to analyze and extract text from Word documents in combination with the docx library. This allows you to extract text from .docx files and process the extracted data for administrative tasks requiring document analysis.

How does XML manipulation work when modifying Word document structures?

XML manipulation for modifying Word document structures works by unpacking the .docx file, directly editing the internal XML code to change elements like paragraphs or tables, and repacking the file. This bypasses standard editors for granular control.