Senior devops

From borghei/Claude-Skills · View interactive version

Senior devops is an AI agent skill from the GitHub repository borghei/Claude-Skills. DevOps for CI/CD, containers, Kubernetes, and Terraform. Use when building pipelines, containerizing apps, managing clusters, provisioning cloud infra, deploying with blue- green/canary, or handling infrastructure incidents.

How to use this skill

Skill file

Senior DevOps Engineer

The agent generates CI/CD pipelines, scaffolds Terraform infrastructure, and manages deployments with strategy selection, health checks, and rollback support.

Core Capabilities

When to Use

Clarify First

Before generating pipelines or infra, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Tools

All three are Python standard library only, read local files, make no network calls and never run other programs. Each prints readable text by default and JSON with --json, and exits 2 with a one-line error: message on bad input (0 otherwise).

| Tool | Purpose | Command |

|------|---------|---------|

| pipeline_generator.py | Detect the stack (Node with npm/yarn/pnpm, Python with pip/uv/poetry, Go, Rust, Maven, Gradle, Dockerfile) and generate a CI config with cached install, lint, test, build and optional Docker build | python scripts/pipeline_generator.py <project-path> --json |

| terraform_scaffolder.py | Scaffold a Terraform module, per-environment root modules with remote state and locking, tfvars and a README | python scripts/terraform_scaffolder.py <target-path> --json |

| deployment_manager.py | Read a JSON deployment spec and plan the release: strategy with reasons, steps, probe thresholds, rollback triggers and runbook | python scripts/deployment_manager.py <spec.json> --json |

Flags.

Sample inputs in assets/: sample-node-app/ and sample-python-app/ (tiny projects), and deploy-canary.json, deploy-blue-green.json, deploy-rolling.json (one spec per strategy).

Example output.

$ python scripts/pipeline_generator.py assets/sample-node-app
Detected: node 22 (npm), Docker: yes
Stages: install, lint, test, build, docker

# .github/workflows/ci.yml
name: CI
on:
  push:
    branches:
      - main
  pull_request: {}
permissions:
  contents: read
...
$ python scripts/terraform_scaffolder.py ./infra --provider aws --name orders-api --envs dev,prod
Created 18 files (aws, s3 backend, envs: dev, prod)
infra/
  .gitignore
  README.md
  environments/
    dev/
      backend.tf
      main.tf
...
$ python scripts/deployment_manager.py assets/deploy-canary.json
Deployment plan: checkout-api 2.3.1 -> 2.4.0  [canary]
  Why: User-facing, medium risk, 400 rps: enough traffic to judge a small slice before exposing everyone.

Steps:
  1. deploy canary: Start checkout-api:2.4.0 next to the stable version with 0% traffic; wait for readiness.
  2. shift 5% [traffic 5%] [bake 10 min]: Route 5% to 2.4.0; compare canary against stable on the rollback triggers for 10 min.
...
Automatic rollback when any of these holds:
  - error rate (5xx / total) > 0.8% (2 consecutive 1-min windows)
  - p99 latency > 330 ms (3 consecutive 1-min windows)
...

deploy-blue-green.json picks blue-green (high risk, 1-minute rollback tolerance, capacity can double) and deploy-rolling.json picks rolling (low risk, internal worker).

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

Scope & Limitations

In Scope:

Out of Scope:

Important Caveats:

Integration Points

| Skill | Integration |

|-------|-------------|

| senior-secops | Security scanning in CI/CD, container image scanning, compliance checks |

| senior-architect | Infrastructure design decisions, service topology |

| senior-backend | Application containerization, health endpoints, config management |

| code-reviewer | Terraform plan review, pipeline config review |

| incident-commander | Incident escalation, postmortem, rollback procedures |


Last Updated: June 2026

Version: 2.2.0

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.