🚀
DevOpsJavaScript

Deployment Patterns

by xu-xiang

Deployment Patterns is a DevOps skill for Claude Code, published by xu-xiang in everything-claude-code-zh.

1.9K stars307 forkson xu-xiang/everything-claude-code-zhAdded 2026/08/18+1% in starsRepository updated 2026/03/05
ai-agentsanthropicclaudeclaude-codedeveloper-toolseverything-claude-codellmmcponeskillproductivity
Install in seconds
Install Deployment Patterns
Copy Deployment Patterns into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/xu-xiang/everything-claude-code-zh/tree/main/skills/deployment-patterns ~/.claude/skills/deployment-patterns

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/xu-xiang/everything-claude-code-zh.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/deployment-patterns/SKILL.md in xu-xiang/everything-claude-code-zh
Installs to
~/.claude/skills/deployment-patterns
Collection
One of 25 skills cataloged from this repository
Category
DevOps798 skills

What Deployment Patterns does

Deployment Patterns provides CI/CD pipeline templates, Docker containerization examples, deployment strategies (rolling, blue-green, canary), health checks, and production readiness checklists for web applications.

Deployment Patterns is cataloged under DevOps on DirSkills. Deployment Patterns comes from a repository tagged ai-agents, anthropic, claude, claude-code and developer-tools.

Documentation

README

部署模式 (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 倍的基础设施资源 适用场景: 关键服务,对问题零容忍

This is the opening of the README. Read the full README on GitHub.

Commands Deployment Patterns provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /app
  • /server
  • /health

Frequently asked about Deployment Patterns

  • What else does xu-xiang publish alongside Deployment Patterns?

    Deployment Patterns is one of 25 skills that DirSkills catalogs from xu-xiang/everything-claude-code-zh, the repository it ships in. Its siblings there include API Design Patterns, Article Writing and Autonomous Loops. Each one is a separate skill with its own page in this directory, installs the same way Deployment Patterns does, and is maintained by xu-xiang in that same repository. The rest of the collection is listed on the xu-xiang/everything-claude-code-zh page.

  • How does Deployment Patterns compare to other DevOps skills?

    Deployment Patterns ranks #281 by stars among the 798 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Deployment Patterns against them. Open each page to compare what they document and how they install.

More from xu-xiang/everything-claude-code-zh

Deployment Patterns is one of 25 skills cataloged on DirSkills from xu-xiang/everything-claude-code-zh.

See all 25 skills
📐
2w ago

API Design Patterns

API Design Patterns provides conventions and best practices for designing consistent, developer-friendly REST APIs, including resource naming, HTTP status codes, pagination, filtering, error responses, versioning, and rate limiting.
DevOps
1.9K307
✍️
2w ago

Article Writing

Article Writing drafts long-form content such as articles, guides, tutorials, and newsletters in a specific voice captured from examples or brand guidelines. Use it when you need polished copy longer than a paragraph with consistent tone, structure, and credibility.
Writing
1.9K307
🔁
2w ago

Autonomous Loops

Autonomous Loops provides patterns and architectures for running Claude Code without human intervention, from simple claude -p pipelines to RFC-driven multi-agent DAG orchestration. Use it to set up autonomous development workflows, CI/CD pipelines, parallel agents, and quality gates.
Automation
1.9K307
⚙️
2w ago

Backend Patterns

Backend Patterns provides architectural patterns and best practices for building scalable server-side applications, covering REST API design, repository/service layers, database optimization, caching, and error handling. Use it when implementing Node.js, Express, or Next.js API routes.
DevOps
1.9K307
🛠️
2w ago

C++ Coding Standards

C++ Coding Standards provides a set of rules and best practices based on the C++ Core Guidelines for writing modern, safe, and idiomatic C++ code. Use it when writing, reviewing, or refactoring C++ code to enforce type safety, resource safety, immutability, and clarity.
Quality
1.9K307
🧪
2w ago

C++ Testing

C++ Testing guides writing and debugging C++17/20 tests with GoogleTest/Mock, CMake/CTest, coverage, and sanitizers. Use it when creating or fixing C++ tests, configuring CI test gates, or diagnosing flaky failures.
Quality
1.9K307