docx

Create, edit, and convert .docx files using Python scripts.

3|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/syahrilTGR/Template-Research --skill docx-syahriltgr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/syahrilTGR/Template-Research/tree/main/.agents/skills/docx
Command: npx skills add https://github.com/syahrilTGR/Template-Research --skill docx-syahriltgr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx-js, Pandoc, LibreOffice, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill allows you to create, edit, and analyze Word documents with precision and efficiency.

Core Features & Use Cases

  • Document Creation & Editing: Create and modify .docx files with advanced features.
  • Conversion: Convert documents from .doc to .docx.
  • Read Content: Extract text and images from .docx files.
  • Use Case: For instance, you can create a professional report from scratch or transform an existing .doc file into a well-formatted .docx document.

Quick Start

Run the setup_env.ps1 script to prepare your environment, then execute the following command to create a new Word document:

powershell -ExecutionPolicy Bypass -File .\scripts\setup_env.ps1

Frequently Asked Questions about docx

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

FAQPage Schema
How do I convert a .doc file to a .docx format?

To convert a .doc file to .docx format, you can use Pandoc and LibreOffice libraries to process the legacy document and generate a well-formatted .docx file. This ensures compatibility with modern Word document standards.

How do I extract text and images from a Word document programmatically?

You can extract text and images from a Word document by utilizing Python scripts alongside docx-js to parse the .docx file structure. This allows precise retrieval of embedded media and textual content for further analysis.

Can I create a professional Word document from scratch using Python?

Yes, you can create a professional Word document from scratch using Python scripts with docx-js. This approach enables advanced formatting adjustments and structured content generation without opening Microsoft Word.

Do I need to install Pandoc and LibreOffice to manipulate .docx files?

Yes, manipulating .docx files with this Skill requires installing Pandoc and LibreOffice as dependencies. You must run the setup_env.ps1 script to prepare your environment before executing document manipulation commands.

What is the best way to automate formatting adjustments across multiple Word documents?

The best way to automate formatting adjustments is by applying Python scripts with docx-js to batch process .docx files. This method programmatically modifies document structures, ensuring consistent formatting without manual editing.

Are there limitations when generating structured content in a .docx file?

Limitations when generating structured content in a .docx file depend on the capabilities of docx-js and Pandoc. Complex Word features like dynamic macros or advanced embedded charts may not be fully supported during programmatic document creation.