eigent-ai/eigent✦ 精选0°

docx

仓库创建 2025年7月29日最近提交 1 天前SkillHot 收录 20 天前
▸ 精选理由

系统化覆盖.docx常见任务,便于自动化文档生成与解析。

这个 Skill 做什么

创建、读取、编辑和解析 .docx 文档的操作与示例指南。

负责创建、读取和编辑 .docx 文件,能做目录、页码、样式、图片替换、查找替换和修订痕迹等操作。适合要把报告、信函或模板导出为 Word 文档,或从 .docx 中抽取并重组内容时使用。特点是兼顾格式与内容,能直接生成或修改可打开的专业 Word 文档。

▸ 展开 SKILL.md 英文原文

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a "report", "memo", "letter", "template", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

办公文档DOCX文档处理模板通用
1.5w
Stars
1.7k
Forks
6
仓库内 Skill
+185
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/eigent-ai/eigent/main/resources/example-skills/docx/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/eigent-ai/eigent/main/resources/example-skills/docx/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# DOCX creation, editing, and analysis

## Overview

A .docx file is a ZIP archive containing XML files.

## Quick Reference

| Task | Approach |
|------|----------|
| Read/analyze content | `pandoc` or unpack for raw XML |
| Create new document | Use `docx-js` - see Creating New Documents below |
| Edit existing document | Unpack → edit XML → repack - see Editing Existing Documents below |

### Converting .doc to .docx

Legacy `.doc` files must be converted before editing:

```bash
python scripts/office/soffice.py --headless --convert-to docx document.doc
```

### Reading Content

```bash
# Text extraction with tracked changes
pandoc --track-changes=all document.docx -o output.md

# Raw XML
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有