| name | s5-deploy |
| description | 将已测试通过的代码部署到生产环境。 包含 git push、CI 验证、部署执行。
|
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Write |
Superpowers 框架
在执行部署前,调用收尾纪律框架:
Skill superpowers:finishing-a-development-branch
本 skill 负责项目特定部分:Docker/SSH 部署脚本、GitHub Actions 触发、健康检查端口。
Stage 5: 部署上线
前置检查
- 确认本地测试全绿: !
git status --porcelain
执行步骤
-
推送代码
git push origin $(git branch --show-current)
-
等待 CI
轮询 GitHub Actions 状态,等待 CI 通过(最多 10 分钟)
gh run list --limit 1 --json status,conclusion
-
创建 Release(如果是 main/master 分支)
gh release create v$(date +%Y%m%d-%H%M) --generate-notes
-
生产验证
-
输出部署报告