home / skills / feiwanghub / playground / docx-skill
/skills/.trae/skills/docx-skill
This skill reads text from and creates Microsoft Word documents, enabling easy extraction and markdown-driven doc generation.
npx playbooks add skill feiwanghub/playground --skill docx-skillReview the files below or copy the command above to add this skill to your agents.
---
name: docx-skill
description: "Read text from and create Microsoft Word documents (.docx)."
---
# DOCX Skill
This skill provides tools to interact with Microsoft Word documents.
## Capabilities
- **Read**: Extract full text from `.docx` files.
- **Create**: Generate `.docx` files from simple Markdown-formatted text.
## Usage
### Read a Document
```bash
python3 .shared/docx-skill/scripts/docx_tool.py read "document.docx"
```
### Create a Document
```bash
python3 .shared/docx-skill/scripts/docx_tool.py create "content.md" "output.docx"
```
This skill reads text from and creates Microsoft Word (.docx) documents. It extracts full plain text from existing .docx files and generates new .docx files from simple Markdown-formatted content. The focus is fast, reliable conversion for automation and content pipelines.
The skill inspects .docx files and extracts all readable text, preserving paragraph boundaries and basic ordering. For creation, it converts simple Markdown input into a .docx document, mapping headings, paragraphs, and basic formatting into Word structures. Both operations are available via simple command-line entry points for integration into scripts and CI workflows.
Does the skill preserve complex Word formatting like tables and images?
It focuses on extracting text and converting simple Markdown. Complex elements like advanced tables, embedded objects, or detailed image placement may not be preserved fully.
What input formats are supported for creation?
Creation accepts simple Markdown-formatted text as input, converting headings and paragraphs into .docx structure.