# 部署流水线设计 (deployment-pipeline-design)

> 设计带审批关卡、安全扫描和部署编排的多阶段 CI/CD 流水线，产出流水线配置、发布策略、健康检查、关卡定义和回滚方案。

- 分类: [部署与发布](https://www.myskills.tools/zh/categories/deploy-release/)
- 来源: 社区 · Seth Hobson
- 代码仓库: https://github.com/wshobson/agents/tree/main/plugins/cicd-automation/skills/deployment-pipeline-design (commit 0f73766)
- SKILL.md: https://github.com/wshobson/agents/blob/main/plugins/cicd-automation/skills/deployment-pipeline-design/SKILL.md
- 安装命令: `npx skills add wshobson/agents --skill deployment-pipeline-design`
- 许可证: MIT
- 兼容工具: Claude Code, Codex, Cursor, Copilot, OpenCode
- 权限: read-repo ✓, write-files ✓, shell ✗, network ✗
- 状态: 扫描通过
- 规则扫描无法覆盖所有风险，安装前请阅读此技能的 SKILL.md，确认权限后再使用。

## 核心规则

只构建一次，并将同一个制品依次晋级到所有环境。

## 执行阶段

1. **收集约束条件** — 明确应用类型、部署目标、环境拓扑、回滚要求、关卡约束和监控栈。
2. **编排阶段与关卡** — 按构建、测试与安全扫描、预发、审批、生产、验证排列阶段，快速检查前置，并设置人工或指标关卡。
3. **选择发布策略** — 在滚动、蓝绿、金丝雀（如 Argo Rollouts）和功能开关中选择，并给出带注释的配置。
4. **健康检查与回滚** — 用验证真实依赖的深度就绪检查和部署后冒烟脚本，并在健康或指标失败时自动回滚。

## 权限说明（据 SKILL.md 整理）

| 能力 | 是否需要 | 说明 |
|---|---|---|
| 文件写入 | 需要 | 编写 GitHub Actions、GitLab CI、Azure Pipelines 配置、Argo Rollouts 清单和部署验证脚本。 |
| 命令执行 | 不需要 | 这是设计参考，kubectl 等命令仅作为示例写入方案，未要求代理执行。 |
| 网络外发 | 不需要 | 技能本身不访问网络，部署由所设计的流水线执行。 |

## SKILL.md 头部信息（YAML）

```yaml
---
name: deployment-pipeline-design
description: Design multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use this skill when designing zero-downtime deployment pipelines, implementing canary rollout strategies, setting up multi-environment promotion workflows, or debugging failed deployment gates in CI/CD.
---
```

首页: https://www.myskills.tools/zh/ · URL: https://www.myskills.tools/zh/skills/deployment-pipeline-design/
