Agent Skills
› XiaomingX/mimofan
› documents
documents
GitHub用于创建、编辑、检查或转换Word文档及DOCX文件,支持备忘录、报告等格式。利用python-docx和pandoc处理内容生成与格式转换,确保保留原格式并验证输出质量。
Trigger Scenarios
用户需要生成.docx或Word风格文档
需要对现有文档进行编辑、注释、提取或格式转换
Install
npx skills add XiaomingX/mimofan --skill documents -g -y
SKILL.md
Frontmatter
{
"name": "documents",
"description": "Create, edit, inspect, or convert Word documents and DOCX deliverables such as memos, reports, letters, templates, and forms."
}
Documents
Use this skill when the user wants a .docx or Word-style document, or when an
existing document needs edits, comments, extraction, or conversion.
Workflow
- Clarify the output path if needed. Prefer a
.docxfile in the workspace. - Preserve existing documents. Write edited copies instead of overwriting originals unless the user asked for an in-place edit.
- Use the best available local tool:
python-docxfor creation and structured editspandocfor Markdown/HTML to DOCX conversion- OOXML inspection with
unziponly for targeted low-level fixes
- For new documents, choose a simple professional structure: title, metadata when useful, clear headings, readable body text, and tables only for real row/column data.
- For edits, make the smallest change that satisfies the request and keep the original formatting where practical.
- Verify by reopening the file with a parser such as
python-docx, checking paragraph/table counts, and extracting representative text. If LibreOffice or another renderer is available, render or export a quick visual check.
If required dependencies are missing, ask before installing packages. If the user only needs content and a DOCX cannot be produced in the environment, offer Markdown or HTML as a fallback and clearly state the limitation.
Version History
- ccf85b9 Current 2026-08-08 08:00


