Files
chenfuqiang 04026d0372
All checks were successful
技能自动化发布 / release (push) Successful in 7s
feat: 职称评审核验助手首版 v1.0.1(verify-promotion-metric-default)
2026-09-13 16:05:20 +08:00

360 lines
8.2 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"schemaVersion": 1,
"skill": "verify-promotion-metric-default",
"actions": [
{
"id": "verify-metric",
"label": "职称指标核验",
"description": "对申报案例逐项比对刚性门槛,生成达标矩阵与红黄绿三色结论及《核验报告》。",
"placements": [
"agent",
"toolbar"
],
"executionProfile": "sync",
"interaction": "form",
"bind": {
"tables": [
"verify_cases"
]
},
"entrypoint": {
"type": "cli",
"command": "verify-metric",
"args": [
"--teacher",
"{{teacher}}",
"--apply-rank",
"{{applyRank}}",
"--metrics-json",
"{{metricsJson}}",
"--department",
"{{department}}"
]
},
"inputSchema": {
"type": "object",
"properties": {
"teacher": {
"type": "string",
"title": "教师姓名",
"description": "必填。"
},
"applyRank": {
"type": "string",
"title": "申报级别",
"enum": [
"副教授",
"教授"
]
},
"metricsJson": {
"type": "string",
"title": "申报指标 JSON",
"description": "如 {\"presidingProvincial\":1,\"corePapers\":3,\"teachingHours\":160,\"currentTitleYears\":5}",
"display_type": "textarea"
},
"department": {
"type": "string",
"title": "所属学院"
}
},
"required": [
"teacher",
"applyRank",
"metricsJson"
]
},
"hostEffects": {
"onSuccess": [
"reloadTable"
]
}
},
{
"id": "verify-batch-input",
"label": "批量核验",
"description": "核验 input/ 目录中的申报案例 JSON(评审季集中跑,任务中心可见进度)。",
"placements": [
"agent"
],
"executionProfile": "async",
"entrypoint": {
"type": "cli",
"command": "verify-batch-input",
"args": []
}
},
{
"id": "set-threshold",
"label": "更新评审门槛",
"description": "按(申报级别+指标键)录入/更新刚性门槛。",
"placements": [
"row"
],
"executionProfile": "sync",
"interaction": "form",
"bind": {
"tables": [
"threshold_rules"
],
"inputMapping": {
"rank": "{{rank}}",
"metricKey": "{{metric_key}}"
}
},
"entrypoint": {
"type": "cli",
"command": "set-threshold",
"args": [
"--rank",
"{{rank}}",
"--metric-key",
"{{metricKey}}",
"--metric-name",
"{{metricName}}",
"--min-value",
"{{minValue}}",
"--unit",
"{{unit}}",
"--basis-doc",
"{{basisDoc}}",
"--clause",
"{{clause}}"
]
},
"inputSchema": {
"type": "object",
"properties": {
"rank": {
"type": "string",
"title": "申报级别",
"description": "由所在行预填。",
"enum": [
"副教授",
"教授"
]
},
"metricKey": {
"type": "string",
"title": "指标键",
"description": "由所在行预填。"
},
"metricName": {
"type": "string",
"title": "指标名称"
},
"minValue": {
"type": "number",
"title": "最低要求"
},
"unit": {
"type": "string",
"title": "单位"
},
"basisDoc": {
"type": "string",
"title": "依据文件"
},
"clause": {
"type": "string",
"title": "条款"
}
},
"required": [
"rank",
"metricKey",
"minValue"
]
},
"hostEffects": {
"onSuccess": [
"reloadTable"
]
}
},
{
"id": "import-thresholds",
"label": "批量导入门槛",
"description": "粘贴门槛 JSON 数组批量导入/更新。",
"placements": [
"agent"
],
"executionProfile": "sync",
"interaction": "form",
"entrypoint": {
"type": "cli",
"command": "import-thresholds",
"args": [
"--thresholds-json",
"{{thresholdsJson}}"
]
},
"inputSchema": {
"type": "object",
"properties": {
"thresholdsJson": {
"type": "string",
"title": "门槛 JSON",
"display_type": "textarea"
}
},
"required": [
"thresholdsJson"
]
}
},
{
"id": "view-thresholds",
"label": "查看门槛库",
"description": "按级别查询刚性门槛。",
"placements": [
"agent",
"skill-detail"
],
"executionProfile": "sync",
"entrypoint": {
"type": "cli",
"command": "view-thresholds",
"args": [
"--rank",
"{{rank}}"
]
},
"inputSchema": {
"type": "object",
"properties": {
"rank": {
"type": "string",
"title": "级别",
"enum": [
"副教授",
"教授"
]
}
}
}
},
{
"id": "list-cases",
"label": "查询核验案例",
"description": "查看核验历史,可按结论筛选。",
"placements": [
"agent"
],
"executionProfile": "sync",
"entrypoint": {
"type": "cli",
"command": "list-cases",
"args": [
"--limit",
"{{limit}}",
"--verdict",
"{{verdict}}"
]
},
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"title": "条数"
},
"verdict": {
"type": "string",
"title": "结论",
"enum": [
"安全",
"边缘",
"硬伤"
]
}
}
}
},
{
"id": "render-html",
"label": "生成核验报告",
"description": "重建《核验报告》HTML(缺省最近 10 份)。",
"placements": [
"toolbar",
"skill-detail",
"agent"
],
"executionProfile": "sync",
"interaction": "direct",
"bind": {
"tables": [
"verify_cases"
]
},
"entrypoint": {
"type": "cli",
"command": "render-html",
"args": []
},
"steps": [
{
"when": "afterSuccess",
"do": "refreshCatalog"
}
]
},
{
"id": "stats",
"label": "核验统计",
"description": "查看结论分布、门槛数量与硬伤案例。",
"placements": [
"agent",
"skill-detail"
],
"executionProfile": "sync",
"entrypoint": {
"type": "cli",
"command": "stats",
"args": []
}
},
{
"id": "health",
"label": "运行检查",
"description": "检查技能运行环境。",
"placements": [
"skill-detail"
],
"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": "返回用户 .env 路径。",
"placements": [
"skill-detail"
],
"executionProfile": "sync",
"entrypoint": {
"type": "cli",
"command": "config-path",
"args": []
}
}
]
}