| name | devops-pipeline-management |
| description | This skill should be used when the user asks to "run pipeline", "check pipeline", "build status", "CI/CD", "create pipeline", "pipeline logs", "运行流水线", "流水线状态", "构建", "部署流水线", "查看日志", "创建流水线", "流水线列表", or discusses CI/CD pipeline operations (CI/CD 流水线操作). |
| version | 1.0.0 |
云效流水线管理
管理和操作云效 CI/CD 流水线。
主要 Sub-Agent
devops-pipeline-operator
用于: 流水线全生命周期操作
能力:
- 查看流水线列表和详情
- 运行流水线和查看运行状态
- 智能搜索(自然语言时间引用)
- 查看任务日志
- 创建和更新流水线
- 生成流水线 YAML 配置
传递参数:
{
"organizationId": "",
"pipelineId": "",
"action": "list | search | run | status | logs | create | update",
"pipelineName": "",
"timeReference": "",
"statusList": ""
}
决策树
用户请求:
├─ "流水线列表" / "所有流水线"
│ └─ 使用: devops-pipeline-operator(action: "list")
│
├─ "今天/本周的流水线" / "最近失败的流水线"
│ └─ 使用: devops-pipeline-operator(action: "search",使用 smart_list_pipelines)
│
├─ "运行流水线" / "触发构建"
│ └─ 使用: devops-pipeline-operator(action: "run")
│
├─ "流水线状态" / "构建结果"
│ └─ 使用: devops-pipeline-operator(action: "status")
│
├─ "查看日志" / "构建日志"
│ └─ 使用: devops-pipeline-operator(action: "logs")
│
├─ "创建流水线" / "新建 CI/CD"
│ └─ 使用: devops-pipeline-operator(action: "create")
│
├─ "生成 YAML" / "预览流水线配置"
│ └─ 使用: devops-pipeline-operator(generate_pipeline_yaml)
│
└─ "多流水线状态" / "所有流水线的最新状态"
└─ 使用: devops-pipeline-operator(多流水线并行)
并行执行模式
多流水线状态监控
用户: "所有流水线的最新运行状态"
→ 步骤 1: list_pipelines 获取流水线列表
→ 步骤 2: 为每条流水线并行获取 get_latest_pipeline_run
→ 步骤 3: 汇总状态看板
流水线全面诊断
用户: "诊断 build-api 流水线"
→ devops-pipeline-operator 内部并行:
- get_pipeline(配置)
- get_latest_pipeline_run(最新运行)
- list_pipeline_runs(历史运行)
注意事项
smart_list_pipelines 支持自然语言时间引用("今天"、"本周"等),优先使用
- 创建流水线时优先使用 IDE 检测(git config、项目文件)获取参数
- 查看日志需要
pipelineRunId 和 jobId,先从运行详情获取
generate_pipeline_yaml 仅生成 YAML 不创建,适合预览