# 流程管理 Skill 示例

## 示例 1：完整流程文件审核

### 输入
```json
{
  "process_file_content": "采购审批流程\n\n流程图：[采购申请] -> [部门经理审批] -> [财务审核] -> [总经理审批] -> [采购执行]\n\n流程说明：\n本流程适用于金额超过5000元的采购申请。申请人填写采购申请单，注明采购物品、数量、预算和用途。部门经理审批申请的合理性和必要性。财务审核预算合规性。总经理审批超过50000元的采购。采购部执行采购。\n\n操作说明：\n1. 申请人登录OA系统，填写采购申请单，上传报价单\n2. 部门经理在OA系统中查看申请，点击审批或退回\n3. 财务在ERP系统中核对预算，更新审核状态\n4. 总经理在OA系统中审批大额采购\n5. 采购部在ERP系统中创建采购订单\n\n输入：采购申请单、报价单\n输出：采购订单、合同\n角色职责：申请人、部门经理、财务、总经理、采购专员\n关键控制点：预算审核、大额审批\n系统记录：OA系统审批记录、ERP系统采购订单\n异常处理：审批退回时申请人修改后重新提交；供应商无法供货时采购部寻找替代供应商\n交付物：采购申请单、采购订单、合同\n留痕要求：所有审批节点保留审批意见和时间戳",
  "file_format": "文本"
}
```

### 输出
```json
{
  "completeness_check": {
    "has_flowchart": true,
    "has_process_description": true,
    "has_operation_instructions": true,
    "completeness_score": 100
  },
  "coverage_analysis": {
    "input_output": true,
    "roles_responsibilities": true,
    "key_control_points": true,
    "system_records": true,
    "exception_handling": true,
    "deliverables": true,
    "audit_trail": true,
    "coverage_score": 100
  },
  "breakpoints": [],
  "bottlenecks": [
    {
      "location": "总经理审批环节",
      "description": "所有超过50000元的采购都需要总经理审批，可能造成审批积压",
      "impact": "采购周期延长，影响业务效率"
    }
  ],
  "risks": [
    {
      "location": "采购执行环节",
      "description": "未明确供应商选择标准和比价要求",
      "severity": "中",
      "risk_type": "合规风险"
    }
  ],
  "improvement_opportunities": [
    {
      "area": "审批权限",
      "suggestion": "建议设置分级审批权限，如5-10万由财务总监审批，10万以上由总经理审批",
      "priority": "中"
    },
    {
      "area": "供应商管理",
      "suggestion": "建议增加供应商准入标准和比价流程说明",
      "priority": "高"
    }
  ],
  "overall_assessment": {
    "overall_score": 90,
    "summary": "流程文件完整性好，七大要素覆盖全面，包含流程图、流程说明和操作说明。存在1个瓶颈和1个风险点。",
    "recommendation": "建议优化审批权限分级，补充供应商管理要求"
  }
}
```

## 示例 2：不完整流程文件审核

### 输入
```json
{
  "process_file_content": "员工入职流程\n\n流程图：[提交入职申请] -> [HR审核] -> [部门接收] -> [系统开通]\n\n流程说明：\n新员工入职需要提交入职申请，HR审核后部门接收，IT部门开通系统账号。",
  "file_format": "文本"
}
```

### 输出
```json
{
  "completeness_check": {
    "has_flowchart": true,
    "has_process_description": true,
    "has_operation_instructions": false,
    "completeness_score": 67
  },
  "coverage_analysis": {
    "input_output": false,
    "roles_responsibilities": false,
    "key_control_points": false,
    "system_records": false,
    "exception_handling": false,
    "deliverables": false,
    "audit_trail": false,
    "coverage_score": 0
  },
  "breakpoints": [
    {
      "location": "HR审核到部门接收",
      "description": "未说明审核通过的标准和部门接收的具体动作",
      "severity": "中"
    }
  ],
  "bottlenecks": [],
  "risks": [
    {
      "location": "系统开通环节",
      "description": "未明确权限分配标准，可能导致权限过度开放",
      "severity": "高",
      "risk_type": "安全风险"
    }
  ],
  "improvement_opportunities": [
    {
      "area": "操作说明",
      "suggestion": "补充每个环节的具体操作步骤和所需材料清单",
      "priority": "高"
    },
    {
      "area": "要素覆盖",
      "suggestion": "补充输入输出、角色职责、异常处理、留痕要求等七大要素",
      "priority": "高"
    },
    {
      "area": "权限管理",
      "suggestion": "明确系统权限分配标准和审批流程",
      "priority": "高"
    }
  ],
  "overall_assessment": {
    "overall_score": 35,
    "summary": "流程文件包含流程图和基本说明，但缺少操作说明，七大要素覆盖度为0，存在1个断点和1个高风险点。",
    "recommendation": "需要大幅补充完善，增加操作说明和七大要素的详细内容"
  }
}
```
