1
0
Files
Skill/openspec/changes/archive/2026-02-17-create-lyxy-reader-office/tasks.md

23 lines
1.8 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. 创建 SKILL.md
- [x] 1.1 创建 `skills/lyxy-reader-office/SKILL.md` 文件,包含符合规范的 YAML frontmattername、description、compatibility
- [x] 1.2 编写 SKILL.md 正文Purpose 部分,说明 skill 用途及与 lyxy-runner-python 的协作关系(必须使用 lyxy-runner-python不可用时降级到直接 Python 执行)
- [x] 1.3 编写 SKILL.md 正文When to Use 部分,列出典型场景、触发词和支持的文件扩展名(.docx、.xlsx、.pptx、.pdf
- [x] 1.4 编写 SKILL.md 正文Capabilities 部分,概述四种格式的解析能力和统一查询功能(全文提取、元数据、标题、章节、搜索)
- [x] 1.5 编写 SKILL.md 正文Execution 部分,给出基本的执行命令格式,并引导大模型阅读 `scripts/README.md` 获取详细参数说明和依赖安装指南
- [x] 1.6 编写 SKILL.md 正文Examples 部分,给出各格式的基本使用示例
- [x] 1.7 编写 SKILL.md 正文Notes 部分,说明限制和注意事项
- [x] 1.8 验证 SKILL.md 总行数不超过 500 行,符合渐进式披露原则
## 2. 清理旧 Skill
- [x] 2.1 删除 `skills/lyxy-reader-docx/` 整个目录(包含 SKILL.md、docx_parser.md、scripts/docx_parser.py
- [x] 2.2 检查项目中是否有其他位置引用了 `lyxy-reader-docx`(如 .claude/settings 配置),如有则清理引用
## 3. 验证
- [x] 3.1 确认 `skills/lyxy-reader-office/SKILL.md` 存在且 frontmatter 格式正确
- [x] 3.2 确认 `skills/lyxy-reader-office/scripts/` 下所有脚本文件完整parser.py、common.py、docx_parser.py、pptx_parser.py、xlsx_parser.py、pdf_parser.py、README.md
- [x] 3.3 确认 `skills/lyxy-reader-docx/` 目录已被删除
- [x] 3.4 使用各格式的测试文件temp/test.docx、temp/test.xlsx、temp/test.pptx、temp/test.pdf验证 parser.py 可正常运行