Skip to content
Development
Command

/deploy

部署应用到指定环境

From plugin
claude-code-engineering
1.1k11 skills16 agents11 commands
Install
$ npx -y skills add huangjia2019/claude-code-engineering --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/deploy

Context preview

What this command does when you run it.

部署应用到指定环境

Command definition

deploy.md
name: deploy
description: 部署应用到指定环境

用法:`/deploy [environment]`

环境

  • `staging` - 测试环境(默认)
  • `production` - 生产环境(需要额外确认)

部署流程

Staging

1. 运行 lint 检查 2. 运行单元测试 3. 构建 Docker 镜像 4. 推送到 staging 集群 5. 运行冒烟测试 6. 报告部署状态

Production

1. 确认 staging 部署成功 2. 确认所有测试通过 3. 请求用户确认 4. 创建 Git tag 5. 构建生产镜像 6. 蓝绿部署到生产集群 7. 健康检查 8. 报告部署状态

安全检查

部署前自动检查:

  • [ ] 没有硬编码的密钥
  • [ ] 依赖没有已知漏洞
  • [ ] 所有环境变量已配置

回滚

如果部署失败,自动提供回滚命令:

kubectl rollout undo deployment/app -n production
Ships withclaude-code-engineering

This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标就是: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。

Get the whole plugin, auto-invoked
Stats
1,050
Stars
0
Views
373
Forks
Active
Maintenance
JavaScript
Language
16d ago
Last commit
6mo ago
Created

Repo: huangjia2019/claude-code-engineering