v1.0.1: 课程成绩异常诊断与报告生成 - 初版骨架
基于匠厂 skill-template 主仓 v1.0.108 派生的业务技能。 核心业务: - 教师在教务系统录完成绩后自动触发 - 统计指标计算 + 三种异常模式识别(高分低能 / 两极分化 / 挂科异常) - 生成三段式 AI 评语(总体 / 问题 / 建议) 输出形态: - HTML 报告(含统计表 + 正态分布图 + AI 评语) - 高风险课程自动标记 + 异常预警通知 预期提效:教师撰写成绩分析报告的时间从半天 → 10 分钟。 业务行生命周期:无(一次性报告存档,不重复处理) Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
123
assets/actions.json
Normal file
123
assets/actions.json
Normal file
@@ -0,0 +1,123 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"skill": "analyze-grade-distribution-aa",
|
||||
"actions": [
|
||||
{
|
||||
"id": "health",
|
||||
"label": "运行检查",
|
||||
"description": "检查技能运行环境、教务系统 API 连通性、历史成绩库完整性。",
|
||||
"placements": ["skill-detail", "agent"],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "health",
|
||||
"args": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "version",
|
||||
"label": "查看版本",
|
||||
"description": "返回技能版本和机器标识。",
|
||||
"placements": ["skill-detail"],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "version",
|
||||
"args": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "config-path",
|
||||
"label": "查看配置位置",
|
||||
"description": "返回技能配置文件位置。",
|
||||
"placements": ["skill-detail"],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "config-path",
|
||||
"args": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "analyze-grade-distribution",
|
||||
"label": "分析这份成绩",
|
||||
"description": "对指定课程的成绩执行统计指标计算 + 三种异常模式识别 + AI 三段式评语生成,10~30 秒内返回报告。",
|
||||
"placements": ["row", "agent"],
|
||||
"executionProfile": "sync",
|
||||
"bind": {
|
||||
"tables": ["课程成绩"],
|
||||
"selectionMode": "required",
|
||||
"labelColumn": "课程名称"
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "analyze-grade-distribution",
|
||||
"args": ["--course-id", "{row.课程ID}"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "batch-analyze-courses",
|
||||
"label": "批量分析本学期",
|
||||
"description": "批量分析某学期所有课程的成绩,按顺序逐门执行并汇总结果。",
|
||||
"placements": ["toolbar", "agent"],
|
||||
"executionProfile": "async",
|
||||
"bind": {
|
||||
"tables": ["课程成绩"]
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "batch-analyze-courses",
|
||||
"args": ["--semester-id", "{form.semester_id}"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "render-html",
|
||||
"label": "查看分析报告",
|
||||
"description": "渲染指定分析报告的 HTML 页面,宿主 iframe 预览。",
|
||||
"placements": ["row", "skill-detail", "agent"],
|
||||
"executionProfile": "sync",
|
||||
"bind": {
|
||||
"tables": ["分析报告"],
|
||||
"selectionMode": "required",
|
||||
"labelColumn": "课程名称"
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "render-html",
|
||||
"args": ["--report-id", "{row.报告ID}"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "flag-high-risk-course",
|
||||
"label": "标记为高风险课程",
|
||||
"description": "手动将某门课程标记为高风险课程,推送通知给教学督导与学院教学副院长。",
|
||||
"placements": ["row"],
|
||||
"executionProfile": "sync",
|
||||
"bind": {
|
||||
"tables": ["分析报告"],
|
||||
"selectionMode": "required",
|
||||
"labelColumn": "课程名称"
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "flag-high-risk-course",
|
||||
"args": ["--report-id", "{row.报告ID}"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "sync-historical-grades",
|
||||
"label": "同步历史成绩",
|
||||
"description": "从教务系统重新拉取历史成绩数据。占位 Action,cron 启用后由定时调度。",
|
||||
"placements": ["cron", "agent", "toolbar"],
|
||||
"executionProfile": "async",
|
||||
"bind": {
|
||||
"tables": ["历史成绩"]
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "sync-historical-grades",
|
||||
"args": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user