docx

用途概括创建、读取、编辑和操作Word文档(.docx文件),支持格式化、表格、图片、目录、修订等高级功能。

业务领域

CodingOfficeDocument

技能形态

Cli ManualWorkflow
所需工具
pandocpdftoppmsoffice
语言环境
pythonnodejs
包管理器
npmpip

Agent Skill 规格描述

"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."

使用场景

两种典型用法

场景 01

生成专业格式的Word报告

用户需要生成一份包含目录、标题、表格、图片和页码的专业Word报告。Agent使用docx-js库创建文档,设置US Letter页面大小、Arial字体、自定义标题样式、编号列表和表格,并验证生成的docx文件,确保格式正确。

场景 02

编辑现有Word文档并接受修订

用户提供一个包含修订标记的Word文档,需要清理并生成最终版本。Agent使用pandoc提取内容,通过accept_changes.py脚本接受所有修订,然后重新打包为干净的docx文件,确保文档内容完整且无修订标记。

技能关系

我用了哪些 Skills · 哪些 skills 用了我

依赖关系读作“上一格指向下一格”。当前 Skill 位于第二格,上下分别是影响它与被它影响的 Skill。

第一层 · 这些 Skills 用了我

  • 无显式依赖

第二层 · 当前 Skill

  • docxCli Manual · Workflow

第三层 · 我用了这些 Skills

  • 无其他 Skill 显式依赖此项

技能文件

SKILL.md

在 GitHub 打开 ↗
SKILL.md从 GitHub 加载中…

目录结构

技能结构

在 GitHub 打开 ↗
  • skills/docx/
  • root
    • ·LICENSE.txt
    • ·SKILL.md
    • scripts
      • ·__init__.py
      • ·accept_changes.py
      • ·comment.py
      • office
      • templates

按 Agent Skills 规范,必需项仅 SKILL.md;其余目录均为可选的脚本 / 引用 / 资源扩展。