exam-question-generator — 考试题目生成器
v1.0.0读取 knowledge_map.json 文件,根据三套差异化规则(基础巩固/综合能力/冲刺模拟)生成模拟题,使用 AI 生成题目内容并写入 questions.json 文件。运行脚本后,渲染出三个独立的 HTML Tab 页面,生成后引导用户选择下一步。
0· 0·0 当前·0 累计
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install exam-question-generator
镜像加速npx clawhub@latest install exam-question-generator --registry https://cn.longxiaskill.com 镜像可用
本土化适配说明
exam-question-generator — 考试题目生成器 安装说明: 安装命令:["openclaw skills install exam-question-generator"]
技能文档
技能:exam-question-generator
- 触发条件
- 执行流程
- 题目生成规范
- 输出格式
{
"questions": {
"exam_type": "string",
"exam_date": "YYYY-MM-DD",
"days_remaining": 0,
"target_score": "string",
"generated_at": "YYYY-MM-DD",
"sets": [
{
"set_id": "set1",
"label": "套1 · 基础巩固",
"difficulty": "basic",
"total_score": 100,
"total_questions": 20,
"time_minutes": 60,
"questions": [
{
"id": "q_s1_001",
"type": "mc",
"source_point_id": "kp_001",
"source_point_name": "string",
"source_type": "generated",
"content": "题目内容",
"options": ["A. ...", "B. ...", "C. ...", "D. ..."],
"answer": "B",
"explanation": "逐项解析...",
"knowledge_ref": "kp_001",
"score": 2
}
]
},
{
"set_id": "set2",
"label": "套2 · 综合能力",
"difficulty": "intermediate",
"total_score": 100,
"total_questions": 20,
"time_minutes": 90,
"questions": []
},
{
"set_id": "set3",
"label": "套3 · 冲刺模拟",
"difficulty": "advanced",
"total_score": 100,
"total_questions": 20,
"time_minutes": 90,
"questions": []
}
]
}
}
- 字段说明:
- type:"mc" | "mma" | "tf" | "sa"
- options:mc/mma 有值(字符串数组),tf/sa 为 null
- answer:见 3.4 格式规范
- knowledge_ref:对应 knowledge_map 中的 point.id- 模板填充规范
块,拼接后填入对应占位符):
```
{题号}
{类型中文:单选/多选/判断/简答}
{score}分
{source_point_name}
{content}
查看答案 ▼
答案:{answer}
{explanation}
考点:{source_point_name}
{题号}
{类型中文}
{score}分
{source_point_name}
{content}
查看答案 ▼