feat(pipelines): add 10 industry-specific pipeline templates

Education (3): research-to-quiz, student-analysis, lesson-plan
Healthcare (3): policy-compliance, meeting-minutes, data-report
Design Shantou (4): trend-to-design, competitor-research,
  client-communication, supply-chain-collect
This commit is contained in:
iven
2026-04-01 23:43:45 +08:00
parent 17a2501808
commit c6bd4aea27
10 changed files with 2318 additions and 0 deletions

View File

@@ -0,0 +1,267 @@
# ZCLAW Pipeline - 教案自动生成
# 输入课题和教学要求,自动生成完整教案(含教学目标、重难点、教学过程、板书设计)
apiVersion: zclaw/v1
kind: Pipeline
metadata:
name: lesson-plan-generator
displayName: 教案自动生成
category: education
industry: education
description: 输入课题和教学要求,自动生成含教学目标、重难点、教学过程、板书设计的完整教案
tags:
- 教育
- 教案
- 备课
- 教学设计
icon: 📋
author: ZCLAW
version: 1.0.0
spec:
inputs:
- name: topic
type: string
required: true
label: 课题名称
placeholder: 例如:光合作用的原理
validation:
min_length: 2
max_length: 100
- name: subject
type: select
required: false
label: 学科
default: 科学
options:
- 语文
- 数学
- 英语
- 物理
- 化学
- 生物
- 历史
- 地理
- 科学
- 信息科技
- name: grade_level
type: select
required: false
label: 年级
default: 初二
options:
- 小学三年级
- 小学四年级
- 小学五年级
- 小学六年级
- 初一
- 初二
- 初三
- 高一
- 高二
- 高三
- name: duration
type: select
required: false
label: 课时
default: 1课时(45分钟)
options:
- 1课时(45分钟)
- 2课时(90分钟)
- 半天(3课时)
- 全天(6课时)
- name: teaching_style
type: multi-select
required: false
label: 教学方法
default:
- 讲授法
- 讨论法
options:
- 讲授法
- 讨论法
- 实验法
- PBL项目式
- 翻转课堂
- 合作学习
steps:
# Step 1: 生成教学目标和重难点
- id: objectives_and_focus
description: 分析课题生成教学目标与重难点
action:
type: llm_generate
template: |
请为以下课题设计教学目标和重难点:
课题: {{topic}}
学科: {{subject}}
年级: {{grade_level}}
请生成 JSON 格式:
{
"knowledge_objectives": ["知识目标1", "知识目标2"],
"ability_objectives": ["能力目标1", "能力目标2"],
"emotion_objectives": ["情感目标1"],
"key_points": ["教学重点1", "教学重点2"],
"difficult_points": ["教学难点1", "教学难点2"],
"key_difficult_solutions": ["突破策略1", "突破策略2"]
}
input:
topic: ${inputs.topic}
subject: ${inputs.subject}
grade_level: ${inputs.grade_level}
json_mode: true
temperature: 0.5
max_tokens: 1500
# Step 2: 生成教学过程
- id: teaching_process
description: 设计完整教学过程
action:
type: llm_generate
template: |
基于以下教学目标,设计完整教学过程:
课题: ${inputs.topic}
学科: ${inputs.subject}
年级: ${inputs.grade_level}
课时: {{duration}}
教学方法: {{teaching_style}}
教学目标: ${steps.objectives_and_focus.output}
请生成 JSON 格式教学过程:
{
"phases": [
{
"name": "导入",
"duration_mins": 5,
"activities": ["活动描述"],
"teacher_actions": ["教师活动"],
"student_actions": ["学生活动"],
"purpose": "设计意图"
},
{
"name": "新课讲授",
"duration_mins": 20,
"activities": [],
"teacher_actions": [],
"student_actions": [],
"purpose": ""
},
{
"name": "巩固练习",
"duration_mins": 10,
"activities": [],
"teacher_actions": [],
"student_actions": [],
"purpose": ""
},
{
"name": "课堂小结",
"duration_mins": 5,
"activities": [],
"teacher_actions": [],
"student_actions": [],
"purpose": ""
},
{
"name": "布置作业",
"duration_mins": 5,
"activities": [],
"teacher_actions": [],
"student_actions": [],
"purpose": ""
}
]
}
input:
topic: ${inputs.topic}
subject: ${inputs.subject}
grade_level: ${inputs.grade_level}
duration: ${inputs.duration}
teaching_style: ${inputs.teaching_style}
objectives: ${steps.objectives_and_focus.output}
json_mode: true
temperature: 0.7
max_tokens: 4000
# Step 3: 生成板书设计和作业
- id: board_and_homework
description: 设计板书方案和分层作业
action:
type: llm_generate
template: |
为以下课程设计板书和作业:
课题: ${inputs.topic}
教学目标: ${steps.objectives_and_focus.output}
教学过程: ${steps.teaching_process.output}
请生成 JSON 格式:
{
"board_design": {
"layout": "板书结构描述",
"main_content": "主板书内容",
"supplementary": "副板书内容",
"key_formulas_or_diagrams": ["公式或图示1"]
},
"homework": {
"basic": ["基础作业1", "基础作业2"],
"intermediate": ["提高作业1"],
"advanced": ["拓展作业1"],
"estimated_time_mins": 30
}
}
input:
topic: ${inputs.topic}
objectives: ${steps.objectives_and_focus.output}
process: ${steps.teaching_process.output}
json_mode: true
temperature: 0.6
max_tokens: 2000
# Step 4: 生成教学反思预设
- id: reflection_prompts
description: 生成教学反思提示
action:
type: llm_generate
template: |
为以下课程生成教学反思提示问题:
课题: ${inputs.topic}
教学重点: ${steps.objectives_and_focus.output.key_points}
教学难点: ${steps.objectives_and_focus.output.difficult_points}
请生成 JSON 格式:
{
"reflection_questions": [
"教学目标是否达成?如何判断?",
"学生对难点的理解情况如何?",
"哪个教学环节效果最好?为什么?",
"下次可以改进的地方?"
],
"assessment_checklist": [
{"item": "检查项", "method": "检查方法"}
]
}
input:
topic: ${inputs.topic}
key_points: ${steps.objectives_and_focus.output.key_points}
difficult_points: ${steps.objectives_and_focus.output.difficult_points}
json_mode: true
temperature: 0.5
max_tokens: 1000
outputs:
objectives: ${steps.objectives_and_focus.output}
teaching_process: ${steps.teaching_process.output}
board_and_homework: ${steps.board_and_homework.output}
reflection: ${steps.reflection_prompts.output}
on_error: stop
timeout_secs: 240

View File

@@ -0,0 +1,268 @@
# ZCLAW Pipeline - 教研到测验一站式生成
# 输入教研主题,自动完成:文献调研 → 课件大纲 → 互动场景 → 课后测验
apiVersion: zclaw/v1
kind: Pipeline
metadata:
name: research-to-quiz
displayName: 教研→课件→测验
category: education
industry: education
description: 输入教研主题,自动生成文献摘要、课件大纲、互动场景和测验题目
tags:
- 教育
- 教研
- 课件生成
- 测验
icon: 🎓
author: ZCLAW
version: 1.0.0
spec:
inputs:
- name: topic
type: string
required: true
label: 教研主题
placeholder: 例如PBL 项目式学习在初中科学课中的应用
validation:
min_length: 4
max_length: 200
- name: subject
type: select
required: false
label: 学科
default: 综合
options:
- 语文
- 数学
- 英语
- 物理
- 化学
- 生物
- 历史
- 地理
- 科学
- 信息科技
- 综合
- name: grade_level
type: select
required: false
label: 学段
default: 初中
options:
- 小学低段(1-3)
- 小学高段(4-6)
- 初中
- 高中
- 大学
- 成人教育
- name: scene_count
type: number
required: false
label: 互动场景数
default: 4
validation:
min: 2
max: 10
- name: quiz_count
type: number
required: false
label: 测验题数
default: 5
validation:
min: 3
max: 20
steps:
# Step 1: 文献调研摘要
- id: literature_review
description: 针对教研主题生成文献综述和关键发现
action:
type: llm_generate
template: |
你是一位资深教育研究员。请针对以下教研主题生成文献综述:
主题: {{topic}}
学科: {{subject}}
学段: {{grade_level}}
请生成 JSON 格式的文献综述:
{
"title": "综述标题",
"summary": "200字以内概述",
"key_findings": [
{"finding": "核心发现", "source_type": "期刊/报告/政策", "implication": "实践启示"}
],
"trends": ["趋势1", "趋势2", "趋势3"],
"gaps": ["研究空白1", "研究空白2"]
}
input:
topic: ${inputs.topic}
subject: ${inputs.subject}
grade_level: ${inputs.grade_level}
json_mode: true
temperature: 0.6
max_tokens: 2500
# Step 2: 生成课件大纲
- id: generate_outline
description: 基于文献综述生成课件大纲
action:
type: llm_generate
template: |
基于以下文献综述,设计一节完整的课件大纲:
教研主题: ${inputs.topic}
学科: ${inputs.subject}
学段: ${inputs.grade_level}
文献综述关键发现:
${steps.literature_review.output.key_findings}
请生成 JSON 格式的课件大纲:
{
"title": "课件标题",
"objectives": ["教学目标1", "教学目标2", "教学目标3"],
"sections": [
{
"title": "章节标题",
"duration_mins": 10,
"type": "导入|讲解|互动|练习|总结",
"key_points": ["要点1", "要点2"]
}
],
"materials": ["教学材料1", "教学材料2"]
}
input:
topic: ${inputs.topic}
subject: ${inputs.subject}
grade_level: ${inputs.grade_level}
findings: ${steps.literature_review.output.key_findings}
json_mode: true
temperature: 0.7
max_tokens: 2000
# Step 3: 并行生成互动场景
- id: generate_scenes
description: 为课件各章节生成互动教学场景
action:
type: parallel
each: ${steps.generate_outline.output.sections}
max_workers: 4
step:
id: scene_item
action:
type: llm_generate
template: |
为以下课件章节设计互动教学场景:
主题: ${inputs.topic}
章节: {{item.title}}
类型: {{item.type}}
要点: {{item.key_points}}
学段: ${inputs.grade_level}
请生成 JSON 格式的互动场景:
{
"section_title": "{{item.title}}",
"scene_type": "讨论|实验|角色扮演|小组竞赛|案例分析",
"description": "场景描述",
"teacher_guide": "教师引导语",
"student_prompt": "学生任务提示",
"duration_mins": 5,
"materials_needed": ["材料1"],
"assessment": "评价方式"
}
input:
item: ${item}
json_mode: true
temperature: 0.8
max_tokens: 1000
# Step 4: 生成测验题目
- id: generate_quiz
description: 根据课件内容生成测验
action:
type: llm_generate
template: |
基于以下课件内容生成测验题:
教研主题: ${inputs.topic}
教学目标: ${steps.generate_outline.output.objectives}
场景数: ${steps.generate_scenes.output | length}
题目数量: {{quiz_count}}
学段: ${inputs.grade_level}
请生成 JSON 格式测验:
{
"quiz_title": "测验标题",
"questions": [
{
"type": "single_choice|multi_choice|true_false|short_answer",
"question": "题目内容",
"options": ["A", "B", "C", "D"],
"correct": "A",
"explanation": "解析",
"difficulty": "基础|提高|挑战",
"related_objective": "对应教学目标"
}
]
}
input:
topic: ${inputs.topic}
objectives: ${steps.generate_outline.output.objectives}
scene_count: ${steps.generate_scenes.output | length}
quiz_count: ${inputs.quiz_count}
grade_level: ${inputs.grade_level}
json_mode: true
temperature: 0.5
max_tokens: 3000
# Step 5: 组装完整输出
- id: assemble_output
description: 组装教研→课件→测验完整包
action:
type: llm_generate
template: |
请将以下内容整合为一份完整的教学方案摘要:
文献综述: ${steps.literature_review.output.summary}
课件大纲: ${steps.generate_outline.output.title}
互动场景数: ${steps.generate_scenes.output | length}
测验题数: ${inputs.quiz_count}
生成 JSON 格式摘要:
{
"title": "方案标题",
"literature_summary": "文献综述摘要",
"course_outline": "课件大纲摘要",
"total_interactive_scenes": 0,
"total_quiz_questions": 0,
"estimated_duration_mins": 0,
"preview_text": "300字方案预览"
}
input:
literature: ${steps.literature_review.output}
outline: ${steps.generate_outline.output}
scenes: ${steps.generate_scenes.output}
quiz: ${steps.generate_quiz.output}
quiz_count: ${inputs.quiz_count}
json_mode: true
temperature: 0.5
max_tokens: 1500
outputs:
literature: ${steps.literature_review.output}
outline: ${steps.generate_outline.output}
scenes: ${steps.generate_scenes.output}
quiz: ${steps.generate_quiz.output}
summary: ${steps.assemble_output.output}
on_error: stop
timeout_secs: 300
max_workers: 4

View File

@@ -0,0 +1,222 @@
# ZCLAW Pipeline - 学情分析报告
# 输入班级学生成绩/表现数据,自动生成学情分析报告和分层教学建议
apiVersion: zclaw/v1
kind: Pipeline
metadata:
name: student-analysis
displayName: 学情分析报告
category: education
industry: education
description: 输入学生成绩或表现数据,自动分析学情并生成分层教学建议
tags:
- 教育
- 学情分析
- 分层教学
- 数据分析
icon: 📊
author: ZCLAW
version: 1.0.0
spec:
inputs:
- name: student_data
type: text
required: true
label: 学生数据
placeholder: |
粘贴成绩表或表现描述,支持格式:
姓名,分数 或 姓名,等级,A/B/C 或自由文本描述
- name: subject
type: string
required: false
label: 科目
default: 综合
placeholder: 例如:数学
- name: analysis_focus
type: multi-select
required: false
label: 分析维度
default:
- score_distribution
- weak_points
- group_recommendation
options:
- score_distribution
- weak_points
- group_recommendation
- improvement_plan
- parent_communication
- name: class_name
type: string
required: false
label: 班级名称
placeholder: 例如:初一(3)班
steps:
# Step 1: 数据解析与统计
- id: parse_data
description: 解析输入数据并生成基础统计
action:
type: llm_generate
template: |
请解析以下学生数据并生成基础统计:
科目: {{subject}}
班级: {{class_name}}
学生数据:
```
{{student_data}}
```
请生成 JSON 格式统计:
{
"total_students": 0,
"score_distribution": {
"excellent": {"count": 0, "range": "90-100", "percentage": 0},
"good": {"count": 0, "range": "80-89", "percentage": 0},
"average": {"count": 0, "range": "60-79", "percentage": 0},
"below_average": {"count": 0, "range": "<60", "percentage": 0}
},
"class_average": 0,
"median_score": 0,
"std_deviation": "高/中/低"
}
input:
student_data: ${inputs.student_data}
subject: ${inputs.subject}
class_name: ${inputs.class_name}
json_mode: true
temperature: 0.3
max_tokens: 2000
# Step 2: 薄弱环节识别
- id: identify_weakness
description: 识别学生群体的薄弱知识点
action:
type: llm_generate
template: |
基于以下学情统计,识别薄弱环节:
科目: ${inputs.subject}
统计数据: ${steps.parse_data.output}
学生数据:
```
${inputs.student_data}
```
请生成 JSON 格式分析:
{
"weak_areas": [
{
"area": "薄弱知识点",
"affected_group": "受影响群体",
"severity": "高/中/低",
"possible_cause": "可能原因"
}
],
"strong_areas": ["优势领域1", "优势领域2"],
"polarization": "是否存在两极分化,程度如何"
}
input:
subject: ${inputs.subject}
stats: ${steps.parse_data.output}
student_data: ${inputs.student_data}
json_mode: true
temperature: 0.4
max_tokens: 2000
# Step 3: 分层教学建议
- id: group_recommendation
description: 生成分层教学建议
action:
type: llm_generate
template: |
基于以下学情分析,生成分层教学建议:
科目: ${inputs.subject}
统计数据: ${steps.parse_data.output}
薄弱环节: ${steps.identify_weakness.output}
请生成 JSON 格式建议:
{
"groups": [
{
"name": "培优组",
"criteria": "选拔标准",
"size": "建议人数",
"teaching_focus": "教学重点",
"activities": ["建议活动1", "建议活动2"],
"resources": ["推荐资源1"]
},
{
"name": "提高组",
"criteria": "选拔标准",
"size": "建议人数",
"teaching_focus": "教学重点",
"activities": ["建议活动1"],
"resources": ["推荐资源1"]
},
{
"name": "基础组",
"criteria": "选拔标准",
"size": "建议人数",
"teaching_focus": "教学重点",
"activities": ["建议活动1"],
"resources": ["推荐资源1"]
}
],
"shared_activities": ["全班共同活动1"],
"timeline": "建议实施周期"
}
input:
subject: ${inputs.subject}
stats: ${steps.parse_data.output}
weakness: ${steps.identify_weakness.output}
json_mode: true
temperature: 0.6
max_tokens: 2500
# Step 4: 生成报告
- id: generate_report
description: 生成完整学情分析报告
action:
type: llm_generate
template: |
基于以上分析,生成一份完整的学情分析报告摘要。
班级: ${inputs.class_name}
科目: ${inputs.subject}
请生成 JSON 格式报告:
{
"title": "学情分析报告标题",
"executive_summary": "200字摘要",
"data_overview": "数据概览描述",
"key_findings": ["发现1", "发现2", "发现3"],
"recommendations": ["建议1", "建议2", "建议3"],
"preview_text": "300字报告预览"
}
input:
class_name: ${inputs.class_name}
subject: ${inputs.subject}
stats: ${steps.parse_data.output}
weakness: ${steps.identify_weakness.output}
groups: ${steps.group_recommendation.output}
json_mode: true
temperature: 0.5
max_tokens: 2000
outputs:
statistics: ${steps.parse_data.output}
weakness_analysis: ${steps.identify_weakness.output}
group_recommendation: ${steps.group_recommendation.output}
report: ${steps.generate_report.output}
on_error: stop
timeout_secs: 240