docx

Generates and formats .docx documents from structured content using Python.

3|Updated Jan 14, 2022
One-click install
npx skills add https://github.com/bingran-you/bingran-you --skill docx-bingran-you
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx
Source: https://github.com/bingran-you/bingran-you/tree/main/repo-skills/docx
Command: npx skills add https://github.com/bingran-you/bingran-you --skill docx-bingran-you

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

This skill enables efficient creation, reading, editing, and formatting of Word documents (.docx), reducing manual formatting effort and ensuring consistent, professional outputs.

Core Features & Use Cases

  • Create new documents with structured formatting (headings, tables, headers/footers, images)
  • Edit existing documents, including tracked changes and comments
  • Produce polished Word outputs for reports, letters, templates, or proposals from drafted content

Quick Start

Input content and generate a ready-to-use .docx document.

Frequently Asked Questions about docx

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

FAQPage Schema
How do I generate Word documents with structured formatting from drafted content?

Yes, you can add tracked changes and comments when editing existing Word documents. The skill supports these features natively, allowing collaborative review and revision tracking within the generated .docx files.

Can I create Word documents with tracked changes and comments?

Yes, you can add tracked changes and comments when editing existing Word documents. The skill supports these features natively, allowing collaborative review and revision tracking within the generated .docx files.

Does Python-based document generation work for producing Word templates and proposals?

Python-based document generation works for producing Word templates, reports, letters, and proposals. It leverages Python workflows and frontmatter-driven scope to ensure proper DOCX structure.

Do I need lxml and defusedxml to automate Word document formatting?

Yes, you need lxml and defusedxml installed to automate Word document formatting. These dependencies handle XML parsing and manipulation to ensure proper DOCX structure and secure processing.

What is the best way to read and edit existing .docx files programmatically?

The best way to read and edit existing .docx files programmatically is using Python-based document manipulation workflows that ensure proper DOCX structure while applying edits like tracked changes.

Are there limitations when generating Word documents with images and tables?

Limitations when generating Word documents with images and tables depend on the proper DOCX structure maintained by lxml and defusedxml. Complex layouts may require careful frontmatter-driven scope configuration to avoid formatting issues.