docx

Create and edit .docx documents with python-docx.

33.0k|3.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill docx-k-dense-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/scientific-skills/docx
Command: npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill docx-k-dense-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables users to create, read, edit, and format Word documents (.docx) without leaving their workflow, saving time on document assembly and styling.

Core Features & Use Cases

  • Read, write, and edit .docx content programmatically.
  • Apply consistent formatting, headings, tables, headers/footers, and tables of contents.
  • Insert images, perform find-and-replace, manage tracked changes and comments, and generate polished outputs for reports, letters, templates, and proposals.

Quick Start

Create a polished Word document (.docx) with a formatted title, sections, and a generated table of contents.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I create a formatted Word document with a table of contents and headers?

You can create a Word document by programmatically applying styles, generating tables of contents, and managing headers and footers within .docx files. The Skill structures reports, letters, and templates automatically.

Can I insert images and tables into a .docx file programmatically?

Yes, you can insert images and tables into a .docx file programmatically. The Skill handles image insertion, creates structured tables, and applies consistent formatting to produce polished outputs for reports and proposals.

Do I need Python and python-docx to automate Word document generation?

Yes, automating Word document generation requires Python 3 and the python-docx library. This environment enables the Skill to read, write, and edit .docx content, handling document assembly and styling tasks.

Does python-docx support tracked changes and comments for document editing?

Yes, the Skill supports tracked changes and comments for document editing. It manages these revisions within .docx files while applying find-and-replace operations and formatting updates to polish the final output.

What is the best way to automate find-and-replace across Word document templates?

The best way to automate find-and-replace across Word document templates is using programmatic .docx manipulation. The Skill reads existing files, updates text content, and applies consistent styles to generate polished outputs.