Skip to content
Back to skills

Blue Green Deployment

ASecurity

Blue/green deployments — two identical environments, smoke tests on idle, atomic traffic switch, instant rollback by switching back, database compatibility constraints, session and cache handling, cost. Use for zero-downtime releases with instant rollback (blue green, zero downtime, traffic switch).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgodatabase

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill blue-green-deployment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Blue Green Deployment?

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

Security grade badge for Blue Green Deployment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-blue-green-deployment/badge)](https://www.skillsdirectory.com/skills/vectora-os-blue-green-deployment)

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: blue-green-deployment
description: Blue/green deployments — two identical environments, smoke tests on idle, atomic traffic switch, instant rollback by switching back, database compatibility constraints, session and cache handling, cost. Use for zero-downtime releases with instant rollback (blue green, zero downtime, traffic switch).
metadata:
  category: delivery
---

# Blue/green deployment

## Purpose

Release with an instant, low-risk way back.

**Use when:** services needing instant rollback.

**Not for:** incompatible schema changes.

## Inputs

- Release artifact, environment setup.

## Outputs

- Deployment procedure, switch and rollback steps.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "blue/green deployment"` for prior decisions, patterns and anti-patterns.

## Steps

1. **Prepare.** Deploy to idle environment; run smoke tests.
   Done when idle passes smoke tests.
2. **Compatibility.** Schema compatible with both versions (expand/contract).
   Done when both versions work on the database.
3. **Switch.** Switch traffic at load balancer/DNS; watch SLOs.
   Done when SLOs hold.
4. **Rollback.** Switch back on breach; keep old environment warm for the window.
   Done when rollback rehearsed.

## Best practices

- Drain connections before switching.
- Automate the switch decision on SLOs.

## Common mistakes

- DNS-based switch with long TTLs.
- Destructive migrations.

## Example

Switch via ALB target group; error budget burn alarm triggers automatic switch back.

## Reusable prompt

```text
Apply the Blue/green deployment skill (.agents/skills/blue-green-deployment/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Write the blue/green procedure with compatibility checks, switch criteria and rollback.
Return: Deployment procedure, switch and rollback steps..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.