Word 文档处理技能

SkillFiles & storage

Local Word / DOCX document processing skill. Supports reading, creating, editing, template filling, batch processing, and format conversion, completing Word document workflows locally. Use when the user asks to read or generate .docx files, batch-generate documents from templates, extract tables/met

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Word 文档处理技能 skill

What this skill tells your AI

The instructions your AI receives, as published by qianleigood/crawclaw in skills-optional/word-processor/SKILL.md and read by ahel’s review.

完全本地的 Word / DOCX 文档处理工具,适合本地读取、生成、修改、模板填充和批量转换。

核心能力

  • 读取文本、表格、图片、元数据
  • 从零创建新文档
  • 编辑现有文档内容和结构
  • 基于模板批量生成文档
  • 批量处理多个文件
  • DOCX 与 PDF / Markdown 之间转换

基本工作流

1. 准备环境

pip3 install -r requirements.txt

2. 判断任务类型

  • 读取:抽取文本 / 表格 / 元数据
  • 创建:从零生成新文档
  • 编辑:替换、追加、插入内容
  • 模板填充:用 JSON 或数据目录批量出文档
  • 批量处理 / 转换:对多份文件做统一动作

3. 选择调用方式

  • 命令行方式:用户只需要完成具体任务时,优先用 CLI
  • Python API 方式:任务需要嵌入脚本或程序时,直接调用库

何时读取参考文档

CLI 示例

references/cli-recipes.md,当你需要:

  • create / read / edit / template / batch 命令示例
  • 常见批量处理命令
  • 典型业务场景参考

Python API

references/python-api.md,当你需要:

  • 在 Python 中直接创建 / 读取 / 编辑文档
  • 模板占位符示例
  • 代码级集成方式

注意事项

  • 仅支持 .docx,不处理旧版 .doc
  • 复杂格式(如 SmartArt)可能无法完整保留
  • 宏(VBA)不会保留
  • PDF 转换通常依赖 LibreOffice 等外部能力
  • 若用户明确要求云端协作,改用飞书文档类技能

交付时说明

完成后应告诉用户:

  • 生成或修改了哪些文件
  • 输出文件在哪里
  • 若涉及转换,哪些格式需要额外依赖
  • 有哪些格式保真限制

Signals

GitHub stars
30
Forks
1
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
word-processor
Source
github.com/qianleigood/crawclaw