Install
openclaw skills install li-doc-answerAI自动识别Word文档中的8种题型题目,生成格式统一的参考答案,支持批量处理和doc/docx格式转换。
openclaw skills install li-doc-answer版本: 3.0.4
描述: 通用 Word 文档处理工具,AI 自动识别题目并生成参考答案,支持 doc/docx 格式批量处理
作者: 北京老李
# AI 自动识别题目并生成答案
python3 scripts/ai_generate_answers.py <输入文件> [输出文件]
# 示例
python3 scripts/ai_generate_answers.py 题库.doc
# 输出:题库_AI 答案版.docx
# 处理单个文档
python3 scripts/generate_answers.py <输入文件> [输出文件]
# 批量处理目录
python3 scripts/generate_all_answers.py <目录路径>
# 格式转换
python3 scripts/convert_md_to_docx.py <输入.md> <输出.docx>
# 文档校验
python3 scripts/check_answers.py <文件路径>
| 题型 | AI 识别 | 答案格式 |
|---|---|---|
| 判断题 | ✅ | 正确/错误 + 理由 |
| 单选题 | ✅ | 正确选项 + 解析 |
| 多选题 | ✅ | 正确选项 + 解析 |
| 简答题 | ✅ | 要点 1/2/3 + 详细说明 |
| 论述题 | ✅ | 引言 + 主体论述 + 结论 |
| 案例分析 | ✅ | 问题识别 + 理论应用 + 解决方案 + 总结 |
| 填空题 | ✅ | 正确答案 |
| 名词解释 | ✅ | 定义 + 特点 + 意义 |
Li_doc_answer/
├── SKILL.md # 技能说明
├── README.md # 使用文档(中文)
├── README_EN.md # 使用文档(英文)
├── data/ # 待处理文件目录(可选)
└── scripts/
├── ai_generate_answers.py # AI 答案生成(核心)
├── generate_answers.py # 单文档处理
├── generate_all_answers.py # 批量处理
├── complete_all_answers.py # 完整处理
├── add_answers_to_questions.py # 答案添加
├── check_answers.py # 文档校验
└── convert_md_to_docx.py # 格式转换
pip3 install python-docx mammoth