Edu outline Excel operations: identify, read, edit, validate, and extract from textbook/course/training .xlsx outline files. Do not use for general spreadsheet tasks — use xlsx skill instead. Not for Word docs or PowerPoint.
=C{row}+D{row},不硬编码✅ 教师提供 Excel 大纲需读取/编辑;按模板填写新大纲;从大纲提取 section-requirements 派发 Phase 1;大纲完整性验证
❌ 通用 Excel 操作 → xlsx 技能 | 非 Excel 大纲 → 直接 Markdown | PPT 课件 → edu-pptx
完整列定义见 references/column-structure.md。简要:
必填列:教材 A-E | 课程 A-F | 培训 A-F
代码实现见 references/code-examples.md(含 identify / read / fill / edit / validate / extract 完整函数)。
关键调用要点:
identify(path) 返回 textbook / course / training / None。教材大纲常在第5行才出现表头,函数会自动检查第1行和第5行pd.read_excel(path, header=4);标准模板 pd.read_excel(path, header=0)iter_rows(min_row=1, max_row=6) 确认结构xlsx 技能的 recalc.py.strip() + normalize 全角/半角空格| 场景 | 处理 |
|---|---|
| 无法识别类型 | 报告前6行表头,让用户指定 |
| 文件不存在 | 查 import/、knowledge-base/templates/、courses/{slug}/design/ |
| 列不匹配 | 列出实际 vs 期望,建议手动调整 |
| 不完整标记过多 | 列出所有位置,不自动填充 |