docx

Create, edit, and analyze Word documents using Python scripts.

1|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/RehanTharusha/ScholarOS --skill docx-rehantharusha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/RehanTharusha/ScholarOS/tree/main/skills/docx
Command: npx skills add https://github.com/RehanTharusha/ScholarOS --skill docx-rehantharusha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx-js, libreoffice, poppler, pandoc, 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, providing a powerful toolset for handling various document-related tasks efficiently.

Core Features & Use Cases

  • Document Creation: Build new Word documents from scratch with formatting options such as tables, headings, and page numbers.
  • Document Editing: Modify existing Word documents by editing XML directly or using Python to manipulate content.
  • Content Analysis: Extract text and convert documents to other formats like PDF or images.
  • Use Case: If you need to create a detailed report with tables and page numbers, this skill can assist in generating a polished Word document from a template or scratch.

Quick Start

Use the docx skill to create a new Word document with the following structure: Title (Executive Summary), Introduction, Methodology, Results, Discussion, Conclusion.

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 formatting like tables and page numbers?

You can automate Word document generation by using Python scripts and libraries to build .docx files from scratch. This approach supports adding structured formatting elements like tables, headings, and page numbers directly into the document.

Can I convert an existing Word document to PDF or extract its text?

Yes, you can convert Word documents to PDF or images and extract text content. This functionality relies on integrating LibreOffice and Poppler to handle document format transformations and content analysis accurately.

Do I need LibreOffice and Poppler installed to edit Word documents?

Yes, LibreOffice and Poppler are required dependencies for specific operations like document conversion and text extraction. Python and docx-js are also utilized to manipulate content and edit XML directly within the Word documents.

What is the best way to modify an existing Word document programmatically?

The best way to modify an existing Word document is by using Python to manipulate the content or by editing the underlying XML directly. This allows precise modifications to the .docx file structure without manual editing.

How does inserting images into a Word document work with Python?

Inserting images into a Word document is handled through Python scripts that interact with the document's internal structure. This allows you to embed visual assets directly into the .docx file during the creation or editing process.

Can I use docx-js for professional document generation from a template?

Yes, docx-js is a required dependency for this workflow, enabling professional document generation. You can build a polished Word document from a template or from scratch, incorporating complex structures like methodologies and results.