---
name: "argo-rollouts-canary-deployment"
description: "Execute automated canary and blue-green deployments with metric-based automatic rollback."
metadata:
  author: "Argo Project"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "configure argo rollout canary"
  - "create rollout analysistemplate"
  - "auto rollback canary argo"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Argo Rollouts Canary Deployments & Automated Analysis

Deploys Argo Rollouts: replacing Kubernetes Deployments with Rollout CRDs, configuring canary step weights (20%, 50%), integrating Prometheus AnalysisTemplates, and rolling back automatically upon error rate spikes.

## When to Invoke
Invoke this skill whenever you need to:
- configure argo rollout canary
- create rollout analysistemplate
- auto rollback canary argo

## Execution SOP & Rules
1. Define kind: Rollout with strategy.canary.steps: [{ setWeight: 20 }, { pause: { duration: 5m } }, ...].
2. Create AnalysisTemplate defining provider: prometheus with metrics query and failureLimit.
3. Attach analysis inside rollout steps to execute inline automated health evaluations.
4. Monitor rollout progression in real-time using kubectl argo rollouts get rollout <name> --watch.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
