From c6bd4aea276abe1a823c0a50fbaf2fde74ceafed Mon Sep 17 00:00:00 2001 From: iven Date: Wed, 1 Apr 2026 23:43:45 +0800 Subject: [PATCH] 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 --- .../design-shantou/client-communication.yaml | 226 +++++++++++++++ .../design-shantou/competitor-research.yaml | 224 +++++++++++++++ .../design-shantou/supply-chain-collect.yaml | 248 ++++++++++++++++ pipelines/design-shantou/trend-to-design.yaml | 248 ++++++++++++++++ pipelines/education/lesson-plan.yaml | 267 +++++++++++++++++ pipelines/education/research-to-quiz.yaml | 268 ++++++++++++++++++ pipelines/education/student-analysis.yaml | 222 +++++++++++++++ pipelines/healthcare/data-report.yaml | 205 ++++++++++++++ pipelines/healthcare/meeting-minutes.yaml | 205 ++++++++++++++ pipelines/healthcare/policy-compliance.yaml | 205 ++++++++++++++ 10 files changed, 2318 insertions(+) create mode 100644 pipelines/design-shantou/client-communication.yaml create mode 100644 pipelines/design-shantou/competitor-research.yaml create mode 100644 pipelines/design-shantou/supply-chain-collect.yaml create mode 100644 pipelines/design-shantou/trend-to-design.yaml create mode 100644 pipelines/education/lesson-plan.yaml create mode 100644 pipelines/education/research-to-quiz.yaml create mode 100644 pipelines/education/student-analysis.yaml create mode 100644 pipelines/healthcare/data-report.yaml create mode 100644 pipelines/healthcare/meeting-minutes.yaml create mode 100644 pipelines/healthcare/policy-compliance.yaml diff --git a/pipelines/design-shantou/client-communication.yaml b/pipelines/design-shantou/client-communication.yaml new file mode 100644 index 0000000..eb54087 --- /dev/null +++ b/pipelines/design-shantou/client-communication.yaml @@ -0,0 +1,226 @@ +# ZCLAW Pipeline - 客户沟通辅助 +# 输入客户需求和沟通背景,生成专业沟通方案(邮件/报价单/产品推荐) + +apiVersion: zclaw/v1 +kind: Pipeline +metadata: + name: client-communication + displayName: 客户沟通辅助 + category: design + industry: design-shantou + description: 输入客户需求和背景,自动生成专业沟通邮件、报价单、产品推荐书 + tags: + - 汕头 + - 客户沟通 + - 报价 + - 外贸 + icon: 💬 + author: ZCLAW + version: 1.0.0 + +spec: + inputs: + - name: client_background + type: text + required: true + label: 客户背景 + placeholder: | + 客户公司名、国家、主营业务 + 例如:美国 ABC Toys Inc., 主营益智玩具零售 + + - name: inquiry_details + type: text + required: true + label: 询盘内容 + placeholder: 粘贴客户询盘原文或描述客户需求 + + - name: communication_type + type: multi-select + required: false + label: 生成内容 + default: + - reply_email + - quotation + - product_recommendation + options: + - reply_email + - quotation + - product_recommendation + - follow_up_plan + + - name: language + type: select + required: false + label: 输出语言 + default: English + options: + - English + - 中文 + - 双语 + + - name: our_products + type: text + required: false + label: 我方产品 + placeholder: 简述可供推荐的产品线和特点 + + steps: + # Step 1: 客户需求分析 + - id: analyze_inquiry + description: 分析客户询盘和需求 + action: + type: llm_generate + template: | + 分析以下客户询盘: + + 客户背景: + ``` + {{client_background}} + ``` + + 询盘内容: + ``` + {{inquiry_details}} + ``` + + 请生成 JSON 格式分析: + { + "client_profile": { + "company": "公司名", + "country": "国家", + "industry": "行业", + "business_type": "进口商/分销商/零售商", + "estimated_size": "规模估计" + }, + "requirements": [ + {"requirement": "具体需求", "priority": "高/中/低", "detail": "详细说明"} + ], + "pain_points": ["痛点1", "痛点2"], + "budget_indicator": "预算水平判断", + "urgency": "紧急程度", + "decision_factors": ["决策因素1", "决策因素2"] + } + input: + client_background: ${inputs.client_background} + inquiry_details: ${inputs.inquiry_details} + json_mode: true + temperature: 0.4 + max_tokens: 2000 + + # Step 2: 产品推荐匹配 + - id: match_products + description: 匹配推荐产品 + action: + type: llm_generate + template: | + 基于客户需求,匹配推荐产品: + + 客户需求分析: ${steps.analyze_inquiry.output} + 我方产品: {{our_products}} + + 请生成 JSON 格式推荐: + { + "recommendations": [ + { + "product": "产品名称", + "match_reason": "匹配理由", + "specs": "规格参数", + "suggested_price": "建议报价(FOB)", + "moq": "最小起订量", + "lead_time": "交货周期", + "certifications": "相关认证", + "competitive_edge": "竞争优势" + } + ], + "cross_sell_opportunities": ["交叉销售机会1"], + "upsell_possibilities": ["向上销售可能1"] + } + input: + analysis: ${steps.analyze_inquiry.output} + our_products: ${inputs.our_products} + json_mode: true + temperature: 0.6 + max_tokens: 2500 + + # Step 3: 生成沟通内容 + - id: generate_communications + description: 生成专业沟通内容 + action: + type: llm_generate + template: | + 生成专业客户沟通内容: + + 客户分析: ${steps.analyze_inquiry.output} + 产品推荐: ${steps.match_products.output} + 输出语言: {{language}} + 生成类型: {{communication_type}} + + 请生成 JSON 格式: + { + "reply_email": { + "subject": "邮件主题", + "body": "邮件正文(专业、简洁、有吸引力)", + "call_to_action": "行动号召" + }, + "quotation": { + "header": "报价单抬头", + "items": [ + {"item": "产品", "description": "描述", "qty": 0, "unit_price": 0, "amount": 0} + ], + "terms": "贸易条款", + "validity": "报价有效期", + "payment_terms": "付款条件", + "notes": "备注" + }, + "product_recommendation": { + "title": "推荐书标题", + "sections": ["章节1概述", "产品亮点", "合作优势"], + "closing": "结束语" + } + } + input: + analysis: ${steps.analyze_inquiry.output} + products: ${steps.match_products.output} + language: ${inputs.language} + communication_type: ${inputs.communication_type} + json_mode: true + temperature: 0.7 + max_tokens: 4000 + + # Step 4: 跟进计划 + - id: follow_up_plan + description: 生成客户跟进计划 + action: + type: llm_generate + template: | + 生成客户跟进计划: + + 客户: ${steps.analyze_inquiry.output.client_profile} + 紧急度: ${steps.analyze_inquiry.output.urgency} + + 请生成 JSON 格式: + { + "follow_up_steps": [ + {"day": 0, "action": "立即行动", "channel": "邮件/WhatsApp/电话"}, + {"day": 3, "action": "第一次跟进", "channel": ""}, + {"day": 7, "action": "第二次跟进", "channel": ""}, + {"day": 14, "action": "深度跟进", "channel": ""} + ], + "relationship_building": ["关系维护建议1", "关系维护建议2"], + "cultural_notes": "文化注意事项" + } + input: + client_profile: ${steps.analyze_inquiry.output.client_profile} + urgency: ${steps.analyze_inquiry.output.urgency} + json_mode: true + temperature: 0.5 + max_tokens: 1500 + + outputs: + inquiry_analysis: ${steps.analyze_inquiry.output} + product_match: ${steps.match_products.output} + communications: ${steps.generate_communications.output} + follow_up: ${steps.follow_up_plan.output} + + on_error: stop + timeout_secs: 240 diff --git a/pipelines/design-shantou/competitor-research.yaml b/pipelines/design-shantou/competitor-research.yaml new file mode 100644 index 0000000..b4d19db --- /dev/null +++ b/pipelines/design-shantou/competitor-research.yaml @@ -0,0 +1,224 @@ +# ZCLAW Pipeline - 竞品分析推荐 +# 输入竞品信息和产品类别,自动进行竞品分析并给出差异化建议 + +apiVersion: zclaw/v1 +kind: Pipeline +metadata: + name: competitor-analysis-design + displayName: 竞品→分析→推荐 + category: design + industry: design-shantou + description: 输入竞品品牌/产品信息,自动进行功能、定价、设计风格对比分析,给出差异化产品建议 + tags: + - 汕头 + - 竞品分析 + - 产品定位 + - 玩具 + - 服装 + icon: 🔍 + author: ZCLAW + version: 1.0.0 + +spec: + inputs: + - name: competitors + type: text + required: true + label: 竞品信息 + placeholder: | + 列出竞品品牌/产品,例如: + 1. 奥迪双钻 - 遥控车系列 + 2. 星辉 - 遥控车系列 + 3. ... + + - name: our_product + type: string + required: false + label: 我方产品 + placeholder: 简述我方产品的定位和特点 + + - name: product_category + type: select + required: false + label: 产品类别 + default: 玩具 + options: + - 益智玩具 + - 遥控玩具 + - 毛绒玩具 + - 童装 + - 内衣 + - 工艺品 + + - name: analysis_depth + type: select + required: false + label: 分析深度 + default: 标准 + options: + - 快速概览 + - 标准 + - 深度分析 + + steps: + # Step 1: 竞品信息整理 + - id: organize_competitors + description: 整理竞品基本信息 + action: + type: llm_generate + template: | + 整理以下竞品信息: + + 产品类别: {{product_category}} + 竞品信息: + ``` + {{competitors}} + ``` + + 请生成 JSON 格式: + { + "competitors": [ + { + "name": "品牌/产品名", + "origin": "产地", + "product_line": "产品线", + "price_range": "价格区间", + "target_market": "目标市场", + "distribution": "渠道" + } + ], + "market_landscape": "市场竞争格局概述" + } + input: + competitors: ${inputs.competitors} + product_category: ${inputs.product_category} + json_mode: true + temperature: 0.4 + max_tokens: 2000 + + # Step 2: 多维度对比 + - id: compare_dimensions + description: 多维度竞品对比分析 + action: + type: llm_generate + template: | + 对以下竞品进行多维度对比分析: + + 竞品信息: ${steps.organize_competitors.output} + 我方产品: {{our_product}} + 产品类别: ${inputs.product_category} + + 请生成 JSON 格式: + { + "comparison_matrix": [ + { + "dimension": "设计风格", + "our": "我方评价", + "competitors": {"竞品A": "评价", "竞品B": "评价"} + }, + { + "dimension": "产品功能", + "our": "", + "competitors": {} + }, + { + "dimension": "价格定位", + "our": "", + "competitors": {} + }, + { + "dimension": "渠道覆盖", + "our": "", + "competitors": {} + }, + { + "dimension": "品牌认知", + "our": "", + "competitors": {} + } + ], + "our_position": "我方市场定位评估", + "gaps": ["我方不足1", "我方不足2"], + "advantages": ["我方优势1", "我方优势2"] + } + input: + competitors_info: ${steps.organize_competitors.output} + our_product: ${inputs.our_product} + product_category: ${inputs.product_category} + json_mode: true + temperature: 0.5 + max_tokens: 3000 + + # Step 3: 差异化建议 + - id: differentiation_advice + description: 生成差异化产品建议 + action: + type: llm_generate + template: | + 基于竞品对比,生成差异化产品建议: + + 对比分析: ${steps.compare_dimensions.output} + 我方优势: ${steps.compare_dimensions.output.advantages} + 我方不足: ${steps.compare_dimensions.output.gaps} + + 请生成 JSON 格式: + { + "differentiation_strategies": [ + { + "strategy": "差异化策略", + "description": "策略描述", + "implementation": "实施路径", + "investment": "投入评估(低/中/高)", + "time_to_market": "上市周期", + "expected_impact": "预期影响" + } + ], + "product_suggestions": [ + { + "suggestion": "产品建议", + "differentiator": "差异化点", + "target_segment": "目标客群", + "price_strategy": "定价策略" + } + ], + "quick_wins": ["快速见效1", "快速见效2"], + "long_term_bets": ["长期布局1", "长期布局2"] + } + input: + comparison: ${steps.compare_dimensions.output} + json_mode: true + temperature: 0.7 + max_tokens: 3000 + + # Step 4: 综合报告 + - id: generate_report + description: 生成综合竞品分析报告 + action: + type: llm_generate + template: | + 生成综合竞品分析报告摘要: + + 请生成 JSON 格式报告: + { + "title": "竞品分析报告标题", + "executive_summary": "200字摘要", + "key_insights": ["核心洞察1", "核心洞察2", "核心洞察3"], + "top_recommendations": ["首要建议1", "首要建议2"], + "preview_text": "300字报告预览" + } + input: + competitors: ${steps.organize_competitors.output} + comparison: ${steps.compare_dimensions.output} + advice: ${steps.differentiation_advice.output} + json_mode: true + temperature: 0.5 + max_tokens: 1500 + + outputs: + competitors: ${steps.organize_competitors.output} + comparison: ${steps.compare_dimensions.output} + advice: ${steps.differentiation_advice.output} + report: ${steps.generate_report.output} + + on_error: stop + timeout_secs: 300 diff --git a/pipelines/design-shantou/supply-chain-collect.yaml b/pipelines/design-shantou/supply-chain-collect.yaml new file mode 100644 index 0000000..accfaa5 --- /dev/null +++ b/pipelines/design-shantou/supply-chain-collect.yaml @@ -0,0 +1,248 @@ +# ZCLAW Pipeline - 供应链信息采集 +# 输入采购需求,自动采集供应商信息并生成比价分析 + +apiVersion: zclaw/v1 +kind: Pipeline +metadata: + name: supply-chain-collect + displayName: 供应链信息采集 + category: design + industry: design-shantou + description: 输入采购需求,自动采集和整理供应商信息,生成比价分析和采购建议 + tags: + - 汕头 + - 供应链 + - 采购 + - 比价 + icon: 🏭 + author: ZCLAW + version: 1.0.0 + +spec: + inputs: + - name: material_type + type: select + required: true + label: 采购类别 + options: + - 塑料原料(ABS/PP/PE) + - 电子元件 + - 五金配件 + - 包装材料 + - 面料 + - 辅料(拉链/纽扣/魔术贴) + - 模具加工 + - 印刷服务 + - 其他 + + - name: specifications + type: text + required: true + label: 规格要求 + placeholder: | + 描述所需材料的详细规格,例如: + - ABS塑料,注塑级,白色,需通过EN71认证 + - 或:230T涤纶面料,幅宽150cm,防水处理 + + - name: quantity + type: string + required: false + label: 采购量 + placeholder: 例如:500kg/月 或 10000件 + + - name: quality_requirements + type: multi-select + required: false + label: 质量要求 + default: + - ISO认证 + options: + - ISO认证 + - 环保认证 + - 出口认证(EN71/ASTM) + - 食品级 + - 阻燃要求 + - 无特殊要求 + + - name: preferred_region + type: select + required: false + label: 供应商地域 + default: 不限 + options: + - 汕头本地 + - 广东省内 + - 长三角 + - 不限 + + steps: + # Step 1: 需求解析 + - id: parse_requirements + description: 解析采购需求为结构化规格 + action: + type: llm_generate + template: | + 解析以下采购需求: + + 采购类别: {{material_type}} + 规格要求: + ``` + {{specifications}} + ``` + 采购量: {{quantity}} + 质量要求: {{quality_requirements}} + + 请生成 JSON 格式: + { + "material_category": "材料大类", + "detailed_specs": [ + {"spec_name": "规格项", "spec_value": "要求值", "tolerance": "容差"} + ], + "quality_standards": ["标准1", "标准2"], + "estimated_monthly_volume": "月采购量估计", + "critical_parameters": ["关键参数1", "关键参数2"], + "substitute_acceptable": "是否接受替代品" + } + input: + material_type: ${inputs.material_type} + specifications: ${inputs.specifications} + quantity: ${inputs.quantity} + quality_requirements: ${inputs.quality_requirements} + json_mode: true + temperature: 0.3 + max_tokens: 2000 + + # Step 2: 供应商画像 + - id: supplier_profiling + description: 生成理想供应商画像和市场概况 + action: + type: llm_generate + template: | + 为以下采购需求生成理想供应商画像: + + 需求规格: ${steps.parse_requirements.output} + 地域偏好: {{preferred_region}} + + 请生成 JSON 格式: + { + "ideal_supplier_profile": { + "company_type": "工厂/贸易公司/均可", + "min_years_in_business": 3, + "production_capacity": "产能要求", + "certifications_required": ["必需认证1"], + "preferred_location": "优先地区", + "moq": "起订量要求" + }, + "market_overview": { + "supplier_density": "供应商密度(丰富/一般/稀缺)", + "price_range": "市场价格区间估计", + "lead_time_range": "交货周期范围", + "market_trends": "市场趋势" + }, + "potential_sources": [ + {"source": "渠道", "description": "说明", "reliability": "可靠性"} + ] + } + input: + requirements: ${steps.parse_requirements.output} + preferred_region: ${inputs.preferred_region} + json_mode: true + temperature: 0.5 + max_tokens: 2500 + + # Step 3: 评估标准制定 + - id: evaluation_criteria + description: 制定供应商评估标准 + action: + type: llm_generate + template: | + 为以下采购需求制定供应商评估标准: + + 需求规格: ${steps.parse_requirements.output} + 供应商画像: ${steps.supplier_profiling.output} + + 请生成 JSON 格式: + { + "evaluation_dimensions": [ + { + "dimension": "价格竞争力", + "weight": 30, + "scoring_criteria": "评分标准", + "data_needed": "需要收集的数据" + }, + { + "dimension": "质量保证", + "weight": 30, + "scoring_criteria": "", + "data_needed": "" + }, + { + "dimension": "交货能力", + "weight": 20, + "scoring_criteria": "", + "data_needed": "" + }, + { + "dimension": "服务响应", + "weight": 10, + "scoring_criteria": "", + "data_needed": "" + }, + { + "dimension": "资质认证", + "weight": 10, + "scoring_criteria": "", + "data_needed": "" + } + ], + "must_have_requirements": ["必要条件1", "必要条件2"], + "nice_to_have": ["加分项1"], + "red_flags": ["风险信号1", "风险信号2"] + } + input: + requirements: ${steps.parse_requirements.output} + supplier_profile: ${steps.supplier_profiling.output} + json_mode: true + temperature: 0.4 + max_tokens: 2000 + + # Step 4: 生成采购报告 + - id: generate_report + description: 生成供应链信息采集报告 + action: + type: llm_generate + template: | + 生成供应链信息采集报告: + + 采购需求: ${steps.parse_requirements.output} + 供应商画像: ${steps.supplier_profiling.output} + 评估标准: ${steps.evaluation_criteria.output} + + 请生成 JSON 格式报告: + { + "title": "供应链信息采集报告", + "executive_summary": "200字摘要", + "specification_summary": "规格摘要", + "market_intelligence": "市场情报摘要", + "evaluation_framework": "评估框架摘要", + "next_steps": [ + {"step": "下一步行动", "timeline": "时间线", "owner": "负责人"} + ], + "preview_text": "300字报告预览" + } + input: + requirements: ${steps.parse_requirements.output} + suppliers: ${steps.supplier_profiling.output} + criteria: ${steps.evaluation_criteria.output} + json_mode: true + temperature: 0.5 + max_tokens: 2000 + + outputs: + requirements: ${steps.parse_requirements.output} + supplier_profile: ${steps.supplier_profiling.output} + evaluation_criteria: ${steps.evaluation_criteria.output} + report: ${steps.generate_report.output} + + on_error: stop + timeout_secs: 240 diff --git a/pipelines/design-shantou/trend-to-design.yaml b/pipelines/design-shantou/trend-to-design.yaml new file mode 100644 index 0000000..d5e8582 --- /dev/null +++ b/pipelines/design-shantou/trend-to-design.yaml @@ -0,0 +1,248 @@ +# ZCLAW Pipeline - 设计趋势到方案 +# 输入产品类别,自动采集趋势、匹配素材、生成设计方案 + +apiVersion: zclaw/v1 +kind: Pipeline +metadata: + name: trend-to-design + displayName: 趋势→素材→方案 + category: design + industry: design-shantou + description: 输入产品类别(玩具/服装/工艺品),自动采集市场趋势、匹配设计素材、生成初步设计方案 + tags: + - 汕头 + - 设计 + - 趋势分析 + - 玩具 + - 服装 + icon: 🎨 + author: ZCLAW + version: 1.0.0 + +spec: + inputs: + - name: product_category + type: select + required: true + label: 产品类别 + options: + - 益智玩具 + - 遥控玩具 + - 毛绒玩具 + - 女童服装 + - 男童服装 + - 内衣 + - 工艺品 + - 文创产品 + + - name: target_market + type: select + required: false + label: 目标市场 + default: 北美 + options: + - 北美 + - 欧洲 + - 东南亚 + - 中东 + - 日韩 + - 国内 + + - name: season + type: select + required: false + label: 季节/节日 + default: 全年 + options: + - 春季 + - 夏季 + - 秋季 + - 冬季 + - 圣诞节 + - 万圣节 + - 春节 + - 全年 + + - name: style_preference + type: multi-select + required: false + label: 风格偏好 + default: + - 现代简约 + options: + - 现代简约 + - 可爱卡通 + - 科技未来 + - 复古怀旧 + - 自然生态 + - 国潮 + + - name: budget_range + type: string + required: false + label: 预算范围 + placeholder: 例如:单品成本 5-15 元 + + steps: + # Step 1: 市场趋势采集 + - id: collect_trends + description: 采集目标市场和产品类别的市场趋势 + action: + type: llm_generate + template: | + 分析以下产品类别在目标市场的最新趋势: + + 产品类别: {{product_category}} + 目标市场: {{target_market}} + 季节/节日: {{season}} + + 请生成 JSON 格式趋势报告: + { + "market_overview": { + "market_size": "市场规模估计", + "growth_rate": "增长率", + "key_drivers": ["驱动因素1", "驱动因素2"] + }, + "design_trends": [ + { + "trend": "趋势名称", + "description": "趋势描述", + "popularity": "高/中/低", + "examples": ["代表产品/品牌1"] + } + ], + "color_trends": ["流行色1", "流行色2", "流行色3"], + "material_trends": ["材质趋势1", "材质趋势2"], + "consumer_preferences": ["消费者偏好1", "消费者偏好2"], + "regulatory_notes": ["法规/安全标准1"] + } + input: + product_category: ${inputs.product_category} + target_market: ${inputs.target_market} + season: ${inputs.season} + json_mode: true + temperature: 0.6 + max_tokens: 3000 + + # Step 2: 设计方向筛选 + - id: design_direction + description: 基于趋势和偏好筛选设计方向 + action: + type: llm_generate + template: | + 基于市场趋势,筛选适合的设计方向: + + 产品类别: ${inputs.product_category} + 目标市场: ${inputs.target_market} + 风格偏好: {{style_preference}} + 预算: {{budget_range}} + 市场趋势: ${steps.collect_trends.output} + + 请生成 JSON 格式: + { + "recommended_directions": [ + { + "direction": "设计方向", + "rationale": "推荐理由", + "target_age": "目标年龄", + "price_point": "建议定价", + "feasibility": "可行性评估", + "differentiation": "差异化亮点" + } + ], + "color_palettes": [ + {"name": "配色方案名", "colors": ["#颜色1", "#颜色2", "#颜色3"], "mood": "风格描述"} + ], + "material_suggestions": ["材质建议1"], + "packaging_ideas": ["包装创意1"] + } + input: + product_category: ${inputs.product_category} + target_market: ${inputs.target_market} + style_preference: ${inputs.style_preference} + budget_range: ${inputs.budget_range} + trends: ${steps.collect_trends.output} + json_mode: true + temperature: 0.7 + max_tokens: 3000 + + # Step 3: 设计方案生成 + - id: generate_design + description: 生成具体设计方案 + action: + type: llm_generate + template: | + 基于筛选的设计方向,生成具体设计方案: + + 产品类别: ${inputs.product_category} + 设计方向: ${steps.design_direction.output.recommended_directions} + 配色: ${steps.design_direction.output.color_palettes} + + 请生成 JSON 格式方案: + { + "design_proposals": [ + { + "name": "方案名称", + "concept": "设计理念", + "features": ["特征1", "特征2", "特征3"], + "color_scheme": "配色描述", + "dimensions": "建议尺寸", + "materials": "建议材质", + "key_selling_points": ["卖点1", "卖点2"], + "production_notes": "生产注意事项", + "estimated_cost": "成本估计" + } + ] + } + input: + product_category: ${inputs.product_category} + directions: ${steps.design_direction.output} + budget_range: ${inputs.budget_range} + json_mode: true + temperature: 0.8 + max_tokens: 3000 + + # Step 4: 方案评估 + - id: evaluate_designs + description: 评估设计方案的竞争力和可行性 + action: + type: llm_generate + template: | + 评估以下设计方案: + + 市场趋势: ${steps.collect_trends.output} + 设计方案: ${steps.generate_design.output} + + 请生成 JSON 格式评估: + { + "evaluations": [ + { + "proposal_name": "方案名", + "market_fit": "市场契合度(高/中/低)", + "feasibility": "生产可行性(高/中/低)", + "uniqueness": "独特性(高/中/低)", + "cost_efficiency": "性价比(高/中/低)", + "overall_score": 85, + "strengths": ["优势1"], + "weaknesses": ["不足1"], + "improvement_suggestions": ["改进建议1"] + } + ], + "recommendation": "综合推荐", + "next_steps": ["下一步1", "下一步2"] + } + input: + trends: ${steps.collect_trends.output} + designs: ${steps.generate_design.output} + json_mode: true + temperature: 0.5 + max_tokens: 2500 + + outputs: + trends: ${steps.collect_trends.output} + directions: ${steps.design_direction.output} + designs: ${steps.generate_design.output} + evaluation: ${steps.evaluate_designs.output} + + on_error: stop + timeout_secs: 300 diff --git a/pipelines/education/lesson-plan.yaml b/pipelines/education/lesson-plan.yaml new file mode 100644 index 0000000..c79a8be --- /dev/null +++ b/pipelines/education/lesson-plan.yaml @@ -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 diff --git a/pipelines/education/research-to-quiz.yaml b/pipelines/education/research-to-quiz.yaml new file mode 100644 index 0000000..0d8d339 --- /dev/null +++ b/pipelines/education/research-to-quiz.yaml @@ -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 diff --git a/pipelines/education/student-analysis.yaml b/pipelines/education/student-analysis.yaml new file mode 100644 index 0000000..e58956f --- /dev/null +++ b/pipelines/education/student-analysis.yaml @@ -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 diff --git a/pipelines/healthcare/data-report.yaml b/pipelines/healthcare/data-report.yaml new file mode 100644 index 0000000..b1b03e0 --- /dev/null +++ b/pipelines/healthcare/data-report.yaml @@ -0,0 +1,205 @@ +# ZCLAW Pipeline - 医疗数据报告生成 +# 输入科室运营数据,自动生成结构化运营分析报告 + +apiVersion: zclaw/v1 +kind: Pipeline +metadata: + name: healthcare-data-report + displayName: 医疗数据报告生成 + category: healthcare + industry: healthcare + description: 输入科室运营数据(门诊量、住院、手术、费用等),自动生成运营分析报告 + tags: + - 医疗 + - 数据报告 + - 运营分析 + - 行政管理 + icon: 📈 + author: ZCLAW + version: 1.0.0 + +spec: + inputs: + - name: data_content + type: text + required: true + label: 运营数据 + placeholder: | + 粘贴科室运营数据,支持格式: + 指标名称,数值 或自由文本描述 + 例如:门诊量 1250人次,同比增长8% + + - name: report_period + type: select + required: false + label: 报告周期 + default: 月报 + options: + - 周报 + - 月报 + - 季报 + - 半年报 + - 年报 + + - name: department + type: string + required: false + label: 科室 + placeholder: 例如:内科、外科、急诊科 + + - name: focus_areas + type: multi-select + required: false + label: 分析重点 + default: + - volume_analysis + - quality_metrics + - financial + options: + - volume_analysis + - quality_metrics + - financial + - patient_satisfaction + - resource_utilization + + steps: + # Step 1: 数据解析 + - id: parse_data + description: 解析原始数据为结构化指标 + action: + type: llm_generate + template: | + 解析以下医疗运营数据为结构化指标: + + 报告周期: {{report_period}} + 科室: {{department}} + + 原始数据: + ``` + {{data_content}} + ``` + + 请生成 JSON 格式: + { + "metrics": { + "outpatient": {"value": 0, "unit": "人次", "yoy_change": "同比变化"}, + "inpatient": {"value": 0, "unit": "人次", "yoy_change": ""}, + "surgery": {"value": 0, "unit": "台次", "yoy_change": ""}, + "bed_occupancy": {"value": "0%", "unit": "", "yoy_change": ""}, + "average_stay": {"value": "0天", "unit": "", "yoy_change": ""}, + "revenue": {"value": "0万", "unit": "", "yoy_change": ""} + }, + "data_quality": "数据完整/部分缺失", + "missing_fields": ["缺失指标"] + } + input: + data_content: ${inputs.data_content} + report_period: ${inputs.report_period} + department: ${inputs.department} + json_mode: true + temperature: 0.3 + max_tokens: 2000 + + # Step 2: 同比环比分析 + - id: trend_analysis + description: 同比环比趋势分析 + action: + type: llm_generate + template: | + 对以下医疗指标进行趋势分析: + + 科室: ${inputs.department} + 报告周期: ${inputs.report_period} + 结构化数据: ${steps.parse_data.output} + + 请生成 JSON 格式: + { + "trends": [ + { + "metric": "指标名称", + "current": "当前值", + "previous": "上期值", + "change_rate": "变化率", + "trend": "上升/下降/持平", + "assessment": "正常/需关注/预警" + } + ], + "highlights": ["亮点1", "亮点2"], + "concerns": ["关注点1", "关注点2"], + "overall_assessment": "整体评估" + } + input: + department: ${inputs.department} + report_period: ${inputs.report_period} + data: ${steps.parse_data.output} + json_mode: true + temperature: 0.4 + max_tokens: 2500 + + # Step 3: 质量指标分析 + - id: quality_analysis + description: 医疗质量指标分析 + action: + type: llm_generate + template: | + 基于运营数据进行医疗质量分析: + + 科室: ${inputs.department} + 运营数据: ${steps.parse_data.output} + 趋势分析: ${steps.trend_analysis.output} + + 请生成 JSON 格式: + { + "quality_indicators": [ + {"indicator": "质量指标", "value": "当前值", "benchmark": "参考标准", "status": "达标/未达标"} + ], + "safety_events": "安全事件统计", + "improvement_areas": ["改进方向1", "改进方向2"], + "recommendations": ["质量改进建议1", "质量改进建议2"] + } + input: + department: ${inputs.department} + data: ${steps.parse_data.output} + trends: ${steps.trend_analysis.output} + json_mode: true + temperature: 0.4 + max_tokens: 2000 + + # Step 4: 生成完整报告 + - id: generate_report + description: 生成完整运营分析报告 + action: + type: llm_generate + template: | + 生成完整的医疗运营分析报告: + + 科室: ${inputs.department} + 周期: ${inputs.report_period} + + 请生成 JSON 格式报告: + { + "title": "报告标题", + "executive_summary": "200字摘要", + "data_overview": "数据概览", + "key_findings": ["关键发现1", "关键发现2", "关键发现3"], + "action_items": ["行动建议1", "行动建议2"], + "preview_text": "300字报告预览" + } + input: + department: ${inputs.department} + report_period: ${inputs.report_period} + data: ${steps.parse_data.output} + trends: ${steps.trend_analysis.output} + quality: ${steps.quality_analysis.output} + json_mode: true + temperature: 0.5 + max_tokens: 2000 + + outputs: + parsed_data: ${steps.parse_data.output} + trends: ${steps.trend_analysis.output} + quality: ${steps.quality_analysis.output} + report: ${steps.generate_report.output} + + on_error: stop + timeout_secs: 240 diff --git a/pipelines/healthcare/meeting-minutes.yaml b/pipelines/healthcare/meeting-minutes.yaml new file mode 100644 index 0000000..a7e8621 --- /dev/null +++ b/pipelines/healthcare/meeting-minutes.yaml @@ -0,0 +1,205 @@ +# ZCLAW Pipeline - 医疗行政会议纪要 +# 输入会议内容,自动生成结构化纪要、决议事项、待办追踪和会签单 + +apiVersion: zclaw/v1 +kind: Pipeline +metadata: + name: healthcare-meeting-minutes + displayName: 医疗会议→纪要→待办 + category: healthcare + industry: healthcare + description: 专为医疗行政会议设计,自动生成结构化纪要、决议事项追踪表和会签单 + tags: + - 医疗 + - 会议纪要 + - 行政管理 + - 待办追踪 + icon: 📝 + author: ZCLAW + version: 1.0.0 + +spec: + inputs: + - name: meeting_content + type: text + required: true + label: 会议内容 + placeholder: 粘贴会议记录、转录文本或笔记 + + - name: meeting_title + type: string + required: false + label: 会议名称 + placeholder: 例如:2026年第一季度医疗质量委员会 + + - name: meeting_type + type: select + required: false + label: 会议类型 + default: 院务会 + options: + - 院务会 + - 科主任会 + - 医疗质量委员会 + - 药事委员会 + - 伦理委员会 + - 感控委员会 + - 科室例会 + - 专项讨论 + + - name: participants + type: string + required: false + label: 参会人员 + placeholder: 例如:张院长、李主任、王科长 + + steps: + # Step 1: 提取会议信息 + - id: extract_info + description: 提取会议基本信息 + action: + type: llm_generate + template: | + 从医疗行政会议内容中提取基本信息: + + 会议名称: {{meeting_title}} + 会议类型: {{meeting_type}} + + 会议内容: + ``` + {{meeting_content}} + ``` + + 请生成 JSON 格式: + { + "meeting_topic": "会议议题", + "date": "会议日期", + "location": "会议地点", + "chairperson": "主持人", + "recorder": "记录人", + "attendees": [{"name": "姓名", "title": "职务/科室"}], + "quorum": "是否满足法定人数" + } + input: + meeting_content: ${inputs.meeting_content} + meeting_title: ${inputs.meeting_title} + meeting_type: ${inputs.meeting_type} + participants: ${inputs.participants} + json_mode: true + temperature: 0.3 + max_tokens: 1500 + + # Step 2: 提取议题讨论 + - id: extract_discussions + description: 提取各议题讨论要点 + action: + type: llm_generate + template: | + 从医疗行政会议内容中提取各议题讨论要点: + + 会议类型: ${inputs.meeting_type} + + 会议内容: + ``` + ${inputs.meeting_content} + ``` + + 请生成 JSON 格式: + { + "agenda_items": [ + { + "topic": "议题名称", + "presenter": "汇报人", + "key_points": ["要点1", "要点2"], + "discussion_summary": "讨论摘要", + "different_opinions": ["不同意见1"], + "data_mentioned": ["提及的数据/指标1"] + } + ] + } + input: + meeting_content: ${inputs.meeting_content} + meeting_type: ${inputs.meeting_type} + json_mode: true + temperature: 0.4 + max_tokens: 3000 + + # Step 3: 提取决议和待办 + - id: extract_resolutions + description: 提取决议事项和待办追踪 + action: + type: llm_generate + template: | + 从医疗行政会议内容中提取决议和待办: + + 议题讨论: ${steps.extract_discussions.output} + + 请生成 JSON 格式: + { + "resolutions": [ + { + "resolution": "决议内容", + "resolution_type": "通过|修改后通过|暂缓|否决", + "conditions": "附加条件", + "votes": "表决情况(如适用)" + } + ], + "action_items": [ + { + "task": "待办事项", + "assignee": "责任人", + "department": "责任科室", + "deadline": "完成时限", + "priority": "紧急/重要/一般", + "status": "新增/跟进", + "follow_up_meeting": "下次汇报时间" + } + ], + "pending_issues": ["遗留问题1", "遗留问题2"] + } + input: + discussions: ${steps.extract_discussions.output} + json_mode: true + temperature: 0.4 + max_tokens: 3000 + + # Step 4: 生成会签单 + - id: generate_signoff + description: 生成会签单和纪要正文 + action: + type: llm_generate + template: | + 生成医疗行政会议纪要正文和会签单: + + 会议信息: ${steps.extract_info.output} + 议题讨论: ${steps.extract_discussions.output} + 决议待办: ${steps.extract_resolutions.output} + + 请生成 JSON 格式: + { + "minutes_text": "纪要正文(格式化的完整纪要文本)", + "sign_off": { + "prepared_by": "纪要整理人", + "reviewed_by": "审核人", + "approved_by": "签发人", + "distribution_list": ["抄送科室1", "抄送科室2"], + "confidentiality": "公开/内部/机密" + }, + "preview_text": "200字纪要摘要" + } + input: + info: ${steps.extract_info.output} + discussions: ${steps.extract_discussions.output} + resolutions: ${steps.extract_resolutions.output} + json_mode: true + temperature: 0.5 + max_tokens: 3000 + + outputs: + meeting_info: ${steps.extract_info.output} + discussions: ${steps.extract_discussions.output} + resolutions: ${steps.extract_resolutions.output} + signoff: ${steps.generate_signoff.output} + + on_error: stop + timeout_secs: 180 diff --git a/pipelines/healthcare/policy-compliance.yaml b/pipelines/healthcare/policy-compliance.yaml new file mode 100644 index 0000000..85bf0d6 --- /dev/null +++ b/pipelines/healthcare/policy-compliance.yaml @@ -0,0 +1,205 @@ +# ZCLAW Pipeline - 政策摘要与合规报告 +# 输入医疗政策文件,自动生成政策摘要、影响分析和合规行动清单 + +apiVersion: zclaw/v1 +kind: Pipeline +metadata: + name: policy-compliance-report + displayName: 政策→摘要→合规报告 + category: healthcare + industry: healthcare + description: 输入医疗政策文件或链接,自动生成政策摘要、对本院/科室的影响分析、合规行动清单 + tags: + - 医疗 + - 政策解读 + - 合规 + - 行政管理 + icon: 📑 + author: ZCLAW + version: 1.0.0 + +spec: + inputs: + - name: policy_content + type: text + required: true + label: 政策内容 + placeholder: 粘贴政策文件全文或关键条款 + + - name: policy_name + type: string + required: false + label: 政策名称 + placeholder: 例如:关于推进分级诊疗制度建设的指导意见 + + - name: institution_type + type: select + required: false + label: 机构类型 + default: 综合医院 + options: + - 综合医院 + - 专科医院 + - 社区卫生中心 + - 乡镇卫生院 + - 民营医院 + - 其他 + + - name: department + type: string + required: false + label: 关注科室 + placeholder: 例如:医务科、医保办、信息科(可多科室) + + - name: compliance_deadline + type: string + required: false + label: 合规截止日期 + placeholder: 例如:2026年6月30日 + + steps: + # Step 1: 政策摘要 + - id: policy_summary + description: 生成政策核心要点摘要 + action: + type: llm_generate + template: | + 请对以下医疗政策生成摘要: + + 政策名称: {{policy_name}} + + 政策内容: + ``` + {{policy_content}} + ``` + + 请生成 JSON 格式摘要: + { + "title": "政策标题", + "issuing_authority": "发文机关", + "effective_date": "生效日期", + "core_requirements": [ + {"requirement": "核心要求", "detail": "具体内容", "priority": "高/中/低"} + ], + "key_changes": ["主要变化1", "主要变化2"], + "scope": "适用范围", + "summary_200": "200字摘要" + } + input: + policy_content: ${inputs.policy_content} + policy_name: ${inputs.policy_name} + json_mode: true + temperature: 0.3 + max_tokens: 2500 + + # Step 2: 影响分析 + - id: impact_analysis + description: 分析政策对本院/科室的影响 + action: + type: llm_generate + template: | + 分析以下政策对医疗机构的实际影响: + + 政策摘要: ${steps.policy_summary.output} + 机构类型: {{institution_type}} + 关注科室: {{department}} + + 请生成 JSON 格式分析: + { + "direct_impacts": [ + {"area": "受影响领域", "impact": "具体影响", "severity": "高/中/低"} + ], + "indirect_impacts": ["间接影响1", "间接影响2"], + "affected_workflows": [ + {"workflow": "受影响的工作流程", "change": "需要的变化", "effort": "实施难度"} + ], + "risk_assessment": { + "compliance_risks": ["合规风险1"], + "operational_risks": ["运营风险1"], + "financial_impact": "财务影响评估" + } + } + input: + summary: ${steps.policy_summary.output} + institution_type: ${inputs.institution_type} + department: ${inputs.department} + json_mode: true + temperature: 0.4 + max_tokens: 3000 + + # Step 3: 合规行动清单 + - id: action_items + description: 生成合规行动清单和时间线 + action: + type: llm_generate + template: | + 基于影响分析,生成合规行动清单: + + 政策摘要: ${steps.policy_summary.output} + 影响分析: ${steps.impact_analysis.output} + 合规截止日期: {{compliance_deadline}} + + 请生成 JSON 格式清单: + { + "immediate_actions": [ + {"action": "立即行动", "owner": "责任部门", "deadline": "截止日期", "priority": "紧急"} + ], + "short_term_actions": [ + {"action": "短期行动(1-3月)", "owner": "责任部门", "deadline": "截止日期", "priority": "高/中"} + ], + "long_term_actions": [ + {"action": "长期行动(3-12月)", "owner": "责任部门", "milestones": ["里程碑1"]} + ], + "budget_estimation": { + "min_cost": "最低成本估计", + "max_cost": "最高成本估计", + "major_items": ["大项支出1"] + } + } + input: + summary: ${steps.policy_summary.output} + impact: ${steps.impact_analysis.output} + compliance_deadline: ${inputs.compliance_deadline} + json_mode: true + temperature: 0.4 + max_tokens: 3000 + + # Step 4: 生成合规报告 + - id: generate_report + description: 生成完整合规报告 + action: + type: llm_generate + template: | + 生成完整的政策合规报告摘要: + + 政策: ${inputs.policy_name} + 机构: ${inputs.institution_type} + + 请生成 JSON 格式报告: + { + "title": "合规报告标题", + "executive_summary": "200字摘要", + "compliance_status": "当前合规状态评估", + "gap_analysis": "差距分析摘要", + "total_action_items": 0, + "urgent_count": 0, + "preview_text": "300字报告预览" + } + input: + policy_name: ${inputs.policy_name} + institution_type: ${inputs.institution_type} + summary: ${steps.policy_summary.output} + impact: ${steps.impact_analysis.output} + actions: ${steps.action_items.output} + json_mode: true + temperature: 0.5 + max_tokens: 1500 + + outputs: + summary: ${steps.policy_summary.output} + impact: ${steps.impact_analysis.output} + actions: ${steps.action_items.output} + report: ${steps.generate_report.output} + + on_error: stop + timeout_secs: 240