exam-diagnosis-pipeline
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "exam-diagnosis-pipeline" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1489e7fe845c85ba8d9b7e53d83806ba2ab03b921bf03f779430fa03530eed5b. Verify the upstream source and version against https://skillhub.cn/skills/user_f6eb3123/exam-diagnosis-pipeline before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A three-step student learning-analysis pipeline covering assignment grading, error-diagnosis reports, and targeted practice question generation, providing a closed-loop workflow from grading through diagnosis to practice creation.
Introduction source: third_party · user_f6eb3123 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: exam-diagnosis-pipeline
slug: exam-diagnosis-pipeline
displayName: 学情诊断三步流水线
version: 1.0.0
description: 学生作业批改 → 错题诊断报告 → 针对性训练题生成,三步全链路学情分析工具
author: QClaw Agent
tags:
- 教育
- 学情分析
- 作业批改
- 错题诊断
- 物理
- 数学
- 初中exam-diagnosis-pipeline
学生作业批改 → 错题诊断报告 → 针对性训练题生成,三步全链路学情分析工具
功能说明
输入学生作业/试卷图片,自动完成:
- Step 1 - 作业批改:逐题识别、评分、分类错误类型,输出结构化 JSON
- Step 2 - 诊断报告:生成精美 HTML 诊断报告(ECharts 可视化图表)或 PDF
- Step 3 - 训练题生成:基于薄弱点生成三套针对性训练题(HTML/Word)
适用于:初中数学、物理、化学等理科作业诊断
使用方式
标准流程(传入图片路径)
@agent 请使用 exam-diagnosis-pipeline 处理这份作业
上传作业/试卷图片后,Agent 自动完成三步诊断流程
直接触发关键词
- "批改作业" + 附图片
- "生成错题诊断报告"
- "针对性训练题"
- "学情分析"
手动执行脚本
# Step 1: 作业批改(生成结构化 JSON)
python scripts/step1_grade.py <图片路径> <输出JSON路径>
# Step 2: 生成 HTML 诊断报告
python scripts/step2_report_html.py <学生数据JSON> <输出HTML路径>
# Step 2: 生成 PDF 诊断报告
python scripts/step2_report_pdf.py <学生数据JSON> <输出PDF路径>
# Step 2: 生成手机端图片报告
python scripts/step2_report_image.py <学生数据JSON> <输出PNG路径>
# Step 3: 生成训练题 HTML
python scripts/step3_practice_html.py <题目数据JSON> <输出HTML路径>
# Step 3: 生成训练题 Word(新版格式)
node scripts/step3_practice_docx.js <题目数据JSON> <输出DOCX路径>
输入说明
Step 1 输入
- 学生作业/试卷图片(支持 JPG/PNG,建议分辨率 1000px 以上)
- 自动识别:年级、科目、题型、题目内容、学生答案
Step 2 输入(依赖 Step 1 输出)
student_data.json:批改结果结构化数据
Step 3 输入(依赖 Step 1 输出)
questions_data.json:题目数据(含题目、答案、解析)- 也可由 Step 1 自动生成
输出说明
诊断报告 HTML
- 6 个 ECharts 图表(得分仪表盘/题型柱状图/错误类型饼图/知识雷达图/热力条形图/提升轨迹折线图)
- 错题明细表(含严重程度标签)
- 个性化改进建议
诊断报告 PDF / 图片
- 精简化排版,适合打印/手机查看
- 包含:得分概览、题型分析、知识掌握度、错题详情、改进建议
训练题 Word
- 按薄弱知识点分板块
- 每道题含【答案】和【解析】
- 支持自定义模板格式
依赖环境
- Python 3.12+
- Node.js 18+
- Python 依赖:
pyecharts,reportlab,Pillow - Node 依赖:
docx(自动安装)
目录结构
exam-diagnosis-pipeline/
├── SKILL.md # 本文件
├── scripts/
│ ├── step1_grade.py # Step 1 批改脚本
│ ├── step2_report_html.py # Step 2 HTML 报告
│ ├── step2_report_pdf.py # Step 2 PDF 报告
│ ├── step2_report_image.py # Step 2 手机图片报告
│ ├── step3_practice_html.py # Step 3 训练题 HTML
│ └── step3_practice_docx.js # Step 3 训练题 Word
├── sample_data/
│ ├── student_data.json # 示例学生数据
│ └── questions_data.json # 示例题目数据
└── README.md # 详细使用文档
数据格式
student_data.json 结构
{
"student_info": {
"exam_name": "八年级物理期中检测卷",
"student": "学生姓名",
"grade": "八年级",
"subject": "物理",
"score": 80,
"total_score": 100,
"score_rate": 0.80
},
"question_type_scores": [
{"type": "选择题", "score": 32, "total": 42, "rate": 0.762}
],
"knowledge_modules": [
{"name": "力学基础", "stars": 4, "mastery": 0.8}
],
"error_types": [
{"type": "概念理解错误", "count": 3}
],
"wrong_questions": [
{
"id": 4,
"type": "选择题",
"knowledge": "弹簧测力计使用",
"reason": "对测力计调零规范不熟悉",
"severity": "高"
}
],
"recommendations": {
"short_term": {
"title": "短期(1-2周)",
"items": ["重点复习力的示意图规范"]
}
}
}
questions_data.json 结构
{
"set1": [
["T1-1", "作图题", "力的示意图作图", "基础", false, "题目内容...", "答案", "解析"]
],
"set2": [...],
"set3": [...]
}
示例数据
sample_data/ 目录下包含:
student_data.json:80分八年级物理期中卷示例数据questions_data.json:26道针对性训练题(含答案解析)
可直接用示例数据测试各脚本,无需上传真实试卷。
注意事项
- 图片清晰度直接影响识别准确率,建议扫描或拍照时光线充足
- Step 1 目前依赖 Agent 图像识别能力,结果由 AI 模型生成
- 训练题内容可根据学生实际情况在
questions_data.json中调整 - PDF/Word 生成需要中文字体支持(Windows 已内置,Linux 需安装)
- 手机端图片报告宽度固定 750px,适合竖屏查看
更新日志
- v1.0.0(2026-06-16):初始版本,支持三步全流程
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供作业批改→错题诊断→训练题生成的完整学情分析闭环
- 面向初中理科教育高频刚需场景,实用价值高
Highlights
- 触发词覆盖全面且边界清晰,无明显歧义
Highlights
- 三步流程划分清晰,含完整示例和出口条件
- frontmatter 完整,文档结构规范
Highlights
- 工具来源明确,参数规范,异常处理覆盖主要场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.