maxoreric

synthesize-skill

- v1.0.0 (2026-01-19): 初始版本

maxoreric 0 Updated 4mo ago

Resources

1
GitHub

Install

npx skillscat add maxoreric/sop-engine/workflow-input-user-intent-skills-synthesize-skill

Install via the SkillsCat registry.

SKILL.md

synthesize-skill

用途: 汇总多个部分的信息,形成完整方案

输入: 多个组件的输出(structure, workflows, skills, agents...)

输出: 统一的、完整的设计方案


核心能力

  1. 信息整合 - 将分散的信息汇总
  2. 一致性检查 - 确保各部分之间一致
  3. 生成摘要 - 提取关键信息
  4. 格式统一 - 输出标准格式

输入格式

input:
  structure: object         # 目录结构
  workflows: array          # Workflows 列表
  skills: array             # Skills 列表
  agents: array             # Agents 列表(可选)
  requirements: object      # 原始需求

输出格式

output:
  design_plan:
    system_name: string
    summary:
      agents_count: number
      skills_count: number
      workflows_count: number
    
    structure: object       # 完整结构
    workflows: array        # Workflow 详情
    skills: array           # Skill 详情
    agents: array           # Agent 详情
    
    next_steps: array       # 后续步骤
    quick_start: string     # 快速开始指南

执行逻辑

1. 汇总统计

summary = {
    "agents_count": len(agents),
    "skills_count": len(skills),
    "workflows_count": len(workflows),
    "total_files": calculate_file_count(structure)
}

2. 一致性检查

def check_consistency(workflows, skills):
    """检查 Workflow 需要的 Skills 是否都定义了"""
    required = set()
    defined = {s.name for s in skills}
    
    for wf in workflows:
        for step in wf.steps:
            required.add(step.skill)
    
    missing = required - defined
    if missing:
        return {"consistent": False, "missing": list(missing)}
    
    return {"consistent": True}

3. 生成快速开始指南

def generate_quick_start(system_name, workflows):
    guide = f"# {system_name} 快速开始\n\n"
    guide += "## 第一步:填写数据\n..."
    guide += "## 第二步:触发 Workflow\n..."
    return guide

示例

输入:

structure: {...}
workflows: [{name: daily-check, ...}, {name: weekly-report, ...}]
skills: [{name: checkup-analysis-skill, ...}, ...]
agents: [{name: health-advisor, ...}]
requirements: {domain: health, focus: disease_prevention}

输出:

design_plan:
  system_name: health-system
  summary:
    agents_count: 1
    skills_count: 8
    workflows_count: 3
  
  consistency_check:
    passed: true
  
  quick_start: |
    # health-system 快速开始
    
    1. 填写个人档案
    2. 记录今日数据
    3. 触发每日检查
  
  next_steps:
    - "执行 system-execute-workflow 创建文件"
    - "测试 daily-check workflow"
    - "上传体检报告测试分析功能"

评价标准

  • 信息完整性(40%)
  • 一致性(30%)
  • 摘要质量(20%)
  • 格式规范(10%)

通过条件:>= 7.0


版本历史

  • v1.0.0 (2026-01-19): 初始版本