Deployment Patterns
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.
Install
/plugin marketplace add xu-xiang/everything-claude-code-zhThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add xu-xiang/everything-claude-code-zh --skill deployment-patternsgit clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zh.git /tmp/everything-claude-code-zh
mkdir -p ~/.claude/skills
cp -r /tmp/everything-claude-code-zh/skills/deployment-patterns ~/.claude/skills/deployment-patternsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# 部署模式 (Deployment Patterns) 生产部署工作流与 CI/CD 最佳实践。 ## 何时激活 - 设置 CI/CD 流水线 (Pipelines) - 对应用程序进行 Docker 容器化 - 规划部署策略(蓝绿部署、金丝雀部署、滚动更新) - 实现健康检查 (Health Checks) 与就绪探针 (Readiness Probes) - 准备生产发布 - 配置环境特定的设置 ## 部署策略 (Deployment Strategies) ### 滚动部署 (Rolling Deployment) - 默认 逐渐替换实例 —— 在滚动更新期间,旧版本和新版本同时运行。 ``` 实例 1: v1 → v2 (首先更新) 实例 2: v1 (仍在运行 v1) 实例 3: v1 (仍在运行 v1) 实例 1: v2 实例 2: v1 → v2 (其次更新) 实例 3: v1 实例 1: v2 实例 2: v2 实例 3: v1 → v2 (最后更新) ``` **优点:** 零停机时间,渐进式推出 **缺点:** 两个版本同时运行 —— 要求变更必须向后兼容 **适用场景:** 标准部署,向后兼容的变更 ### 蓝绿部署 (Blue-Green Deployment) 运行两个完全相同的环境。原子化地切换流量。 ``` 蓝色环境 (v1) ← 流量接入 绿色环境 (v2) 空闲,运行新版本 # 验证后: 蓝色环境 (v1) 空闲 (变为备用) 绿色环境 (v2) ← 流量接入 ``` **优点:** 瞬时回滚(切换回蓝色环境),干净的切割 **缺点:** 部署期间需要 2 倍的基础设施资源 **适用场景:** 关键服务,对问题零容忍 ### 金丝雀部署 (Canary Deployment) 首先将小部分比例的流量路由到新版本。 ``` v1: 95% 流量 v2: 5% 流量 (金丝雀) # 如果指标良好: v1: 50% 流量 v2: 50% 流量 # 最终: v2: 100% 流量 ``` **优点:** 在全量推出前通过真实流量发现问题 **缺点:** 需要流量切分基础设施和监控 **适用场景:** 高流量服务,高风险变更,特性标志 (Feature Flags) ## Docker ### 多阶段 Dockerfile (Node.js)
Details
- Skill name
deployment-patterns- Repository
- xu-xiang/everything-claude-code-zh
- Path
skills/deployment-patterns/SKILL.md- License
- MIT
- Repo updated
- 5 March 2026
FAQ
What does the Deployment Patterns skill do?
Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.
How do I install the Deployment Patterns skill?
Claude Code plugin: /plugin marketplace add xu-xiang/everything-claude-code-zh. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Deployment Patterns popular?
It lives in xu-xiang/everything-claude-code-zh, which has 2,037 GitHub stars and 332 forks.
Related skills
Backend Patterns
2kxu-xiang/everything-claude-code-zh
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
Coding Standards
2kxu-xiang/everything-claude-code-zh
Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.
Frontend Patterns
2kxu-xiang/everything-claude-code-zh
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
Docker Patterns
2kxu-xiang/everything-claude-code-zh
用于本地开发的Docker和Docker Compose模式,包括容器安全、网络、卷策略和多服务编排。
Deployment Patterns
2kxu-xiang/everything-claude-code-zh
部署工作流、CI/CD流水线模式、Docker容器化、健康检查、回滚策略以及Web应用程序的生产就绪检查清单。
Infra Sync
1.1kagentic-community/mcp-gateway-registry
Keep Terraform and CDK infrastructure in sync. Compares terraform/aws-ecs/ and infra/ to identify discrepancies in ECS services, networking, storage, secrets, IAM, and configuration. Reports parity gaps and generates fixes for the target IaC tool. Use when changes are made to either Terraform or CDK infrastructure.
Browse the most popular Claude skills, all devops & cloud skills, or write your own with the skills generator.