# Deployment Patterns (deployment-patterns)

> Covers rolling, blue-green and canary strategies, multi-stage Dockerfiles, CI/CD, health checks, rollback and a production readiness checklist.

- Category: [Deploy & Release](https://www.myskills.tools/en/categories/deploy-release/)
- Source: Community · Affaan Mustafa
- Repository: https://github.com/affaan-m/ECC/tree/main/skills/deployment-patterns (commit d29cf65)
- SKILL.md: https://github.com/affaan-m/ECC/blob/main/skills/deployment-patterns/SKILL.md
- Install command: `npx skills add affaan-m/ECC --skill deployment-patterns`
- License: MIT
- Compatible with: Claude Code, Codex, Cursor, Copilot, OpenCode
- Permissions: read-repo ✓, write-files ✓, shell ✗, network ✗
- Status: Scan passed
- A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.

## Core rule

All config comes from environment variables, never from code, and is validated at startup.

## Execution Phases

1. **Pick a strategy** — Default to rolling; use blue-green for critical services and canary for high-traffic or risky changes.
2. **Containerize** — Write multi-stage Dockerfiles with pinned tags, a non-root user and a HEALTHCHECK, keeping secrets out of the image.
3. **Build the pipeline** — Configure CI/CD as lint, typecheck, tests, image build, staging deploy, smoke tests, then production.
4. **Health checks and config** — Add health endpoints and Kubernetes probes, and validate environment variables against a schema at startup.
5. **Rollback and readiness** — Prepare a rollback path and work through the application, infrastructure, monitoring, security and operations checklists.

## Permissions (summarised from SKILL.md)

| Capability | Needed | Details |
|---|---|---|
| File writes | Required | Writes Dockerfiles, GitHub Actions workflows, health endpoints, Kubernetes probes and config validation code. |
| Command execution | Not required | Rollback commands such as kubectl or vercel appear only as examples; the skill does not ask the agent to run them. |
| Network outbound | Not required | The skill makes no network calls; deployment is done by the pipelines it helps write. |

## SKILL.md frontmatter (YAML)

```yaml
---
name: deployment-patterns
description: Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up CI/CD, containerizing an app, or checking production readiness before a release.
metadata:
  origin: ECC
---
```

Home: https://www.myskills.tools/en/ · URL: https://www.myskills.tools/en/skills/deployment-patterns/
