Skip to content
Back to skills

Deployment Patterns

ASecurity

Use when deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Triggers on \"deployment-patterns\", \"deployment patterns\", \"patterns\".

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
devopstypescriptpythongobashnodedockergitci/cd

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add majinmagros/magros.ai-skills --skill deployment-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deployment Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deployment Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majinmagros-deployment-patterns/badge)](https://www.skillsdirectory.com/skills/majinmagros-deployment-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deployment-patterns
description: "Use when deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Triggers on \"deployment-patterns\", \"deployment patterns\", \"patterns\"."
metadata:
  origin: ECC
---

# Deployment Patterns

Production deployment workflows and CI/CD best practices. Detalhes em `references/`.

## When to Activate

- Setting up CI/CD pipelines
- Dockerizing an application
- Planning deployment strategy (blue-green, canary, rolling)
- Implementing health checks and readiness probes
- Preparing for a production release
- Configuring environment-specific settings

## Strategy Chooser

| Strategy | Rollout | Rollback | Use when |
|---|---|---|---|
| Rolling (default) | Gradual, 2 versions live | Redeploy previous | Standard, backward-compatible changes |
| Blue-green | Atomic traffic switch | Instant switch-back | Critical services, zero-tolerance |
| Canary | 5% → 50% → 100% traffic | Stop canary | High-traffic, risky changes |

## Example

```typescript
// Minimal health check every service needs
app.get("/health", (req, res) => {
  res.status(200).json({ status: "ok" });
});
```

```bash
# Instant rollback (K8s)
kubectl rollout undo deployment/app
```

## References

- `references/strategies.md` — rolling, blue-green, canary (pros/cons/when)
- `references/docker.md` — multi-stage Dockerfiles (Node/Go/Python) + best practices
- `references/cicd-health.md` — GitHub Actions pipeline, stages, health endpoint, K8s probes
- `references/release-ops.md` — twelve-factor env, rollback, full production readiness checklist

## Checklist

- [ ] Strategy fits risk (rolling default, blue-green critical, canary risky)
- [ ] Multi-stage image, pinned tags, non-root user, HEALTHCHECK
- [ ] Pipeline: lint → typecheck → tests → image → staging → smoke → prod
- [ ] `/health` + K8s probes (liveness/readiness/startup)
- [ ] Env via secrets manager, validated at startup (fail fast)
- [ ] Rollback tested in staging; migrations backward-compatible

Files in this skill

  • SKILL.md2.1 KB
  • references/cicd-health.md3.2 KB
  • references/docker.md2.7 KB
  • references/release-ops.md2.8 KB
  • references/strategies.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…