1
0
Files
Skill/openspec/changes/archive/2026-02-12-develop-lyxy-reader-docx-skill/tasks.md
2026-02-12 17:57:05 +08:00

28 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. 准备工作
- [x] 1.1 研究现有 skill 定义格式,查看 `skills/` 目录下的其他 skill 示例(如 `lyxy-runner-python``lyxy-runner-js`)了解标准结构
- [x] 1.2 阅读 `skills/lyxy-reader-docx/docx_parser.md` 了解解析脚本的详细功能和使用方式
## 2. 创建 skill 定义文件
- [x] 2.1 创建 `skills/lyxy-reader-docx/skill.md` 文件
- [x] 2.2 编写 skill 的 description 字段,描述该 skill 的用途和定位(优先解析 docx 文档)
- [x] 2.3 编写 skill 的 capabilities 字段,列出所有支持的解析功能:
- 全文转换为 Markdown
- 获取文档元信息(字数、行数)
- 标题列表提取
- 指定章节内容提取
- 正则表达式搜索
- [x] 2.4 编写 skill 的 Compatibility 字段,声明 Python 3.6+ 和依赖库要求markitdown 或 python-docx 至少安装其一)
- [x] 2.5 编写 skill 的 Triggers 字段,包含中文和英文触发短语:
- 中文:"读取 docx", "解析 docx", "打开 word 文档"
- 英文:"read docx", "parse docx", "extract from word document"
- 文件扩展名 ".docx"
## 3. 验证和测试
- [x] 3.1 验证 skill.md 文件格式是否符合项目规范
- [x] 3.2 确认 skill.md 中的触发器能够正确识别 docx 解析需求
- [x] 3.3 确认 skill.md 中的依赖说明清晰准确
- [x] 3.4 确认 skill.md 的 capabilities 覆盖了 docx_parser.py 的所有功能