{"slug":"senior-devops","title":"senior-devops","summary":"Set up CI/CD pipelines, infrastructure as code, containers and deployments on AWS, GCP or Azure. Use whenever the user needs a build or deploy pipeline, Terraform, a Dockerfile, or wants to manage a release to the cloud.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-02T16:53:25.172293Z","repo":{"url":"https://github.com/beginwithu/agent-skills","stars":11,"forks":2,"license":"MIT","updatedAt":"2026-12-02T16:37:11Z"},"bodyHtml":"<hr>\n<h2>name: senior-devops\ndescription: \"Set up CI/CD pipelines, infrastructure as code, containers and deployments on AWS, GCP or Azure. Use whenever the user needs a build or deploy pipeline, Terraform, a Dockerfile, or wants to manage a release to the cloud.\"</h2>\n<h1>Senior Devops</h1>\n<p>Complete toolkit for senior devops with modern tools and best practices.</p>\n<h2>Quick Start</h2>\n<h3>Main Capabilities</h3>\n<p>This skill provides three core capabilities through automated scripts:</p>\n<pre><code># Script 1: Pipeline Generator — scaffolds CI/CD pipelines for GitHub Actions or CircleCI\npython scripts/pipeline_generator.py ./app --platform=github --stages=build,test,deploy\n\n# Script 2: Terraform Scaffolder — generates and validates IaC modules for AWS/GCP/Azure\npython scripts/terraform_scaffolder.py ./infra --provider=aws --module=ecs-service --verbose\n\n# Script 3: Deployment Manager — generates deployment manifests + runbooks with rollback support\npython3 scripts/deployment_manager.py deploy --env=staging --image=app:1.2.3 --strategy=blue-green --verbose --json\n</code></pre>\n<h2>Core Capabilities</h2>\n<h3>1. Pipeline Generator</h3>\n<p>Scaffolds CI/CD pipeline configurations for GitHub Actions or CircleCI, with stages for build, test, security scan, and deploy.</p>\n<p><strong>Example — GitHub Actions workflow:</strong></p>\n<pre><code># .github/workflows/ci.yml\nname: CI/CD Pipeline\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n\njobs:\n  build-and-test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - name: Set up Node.js\n        uses: actions/setup-node@v4\n        with:\n          node-version: '20'\n          cache: 'npm'\n      - run: npm ci\n      - run: npm run lint\n      - run: npm test -- --coverage\n      - name: Upload coverage\n        uses: codecov/codecov-action@v4\n\n  build-docker:\n    needs: build-and-test\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - name: Build and push image\n        uses: docker/build-push-action@v5\n        with:\n          push: ${{ github.ref == 'refs/heads/main' }}\n          tags: ghcr.io/${{ github.repository }}:${{ github.sha }}\n\n  deploy:\n    needs: build-docker\n    if: github.ref == 'refs/heads/main'\n    runs-on: ubuntu-latest\n    steps:\n      - name: Deploy to ECS\n        run: |\n          aws ecs update-service \\\n            --cluster production \\\n            --service app-service \\\n            --force-new-deployment\n</code></pre>\n<p><strong>Usage:</strong></p>\n<pre><code>python scripts/pipeline_generator.py &lt;project-path&gt; --platform=github|circleci --stages=build,test,deploy\n</code></pre>\n<h3>2. Terraform Scaffolder</h3>\n<p>Generates, validates, and plans Terraform modules. Enforces consistent module structure and runs <code>terraform validate</code> + <code>terraform plan</code> before any apply.</p>\n<p><strong>Example — AWS ECS service module:</strong></p>\n<pre><code># modules/ecs-service/main.tf\nresource \"aws_ecs_task_definition\" \"app\" {\n  family                   = var.service_name\n  requires_compatibilities = [\"FARGATE\"]\n  network_mode             = \"awsvpc\"\n  cpu                      = var.cpu\n  memory                   = var.memory\n\n  container_definitions = jsonencode([{\n    name      = var.service_name\n    image     = var.container_image\n    essential = true\n    portMappings = [{\n      containerPort = var.container_port\n      protocol      = \"tcp\"\n    }]\n    environment = [for k, v in var.env_vars : { name = k, value = v }]\n    logConfiguration = {\n      logDriver = \"awslogs\"\n      options = {\n        awslogs-group         = \"/ecs/${var.service_name}\"\n        awslogs-region        = var.aws_region\n        awslogs-stream-prefix = \"ecs\"\n      }\n    }\n  }])\n}\n\nresource \"aws_ecs_service\" \"app\" {\n  name            = var.service_name\n  cluster         = var.cluster_id\n  task_definition = aws_ecs_task_definition.app.arn\n  desired_count   = var.desired_count\n  launch_type     = \"FARGATE\"\n\n  network_configuration {\n    subnets          = var.private_subnet_ids\n    security_groups  = [aws_security_group.app.id]\n    assign_public_ip = false\n  }\n\n  load_balancer {\n    target_group_arn = aws_lb_target_group.app.arn\n    container_name   = var.service_name\n    container_port   = var.container_port\n  }\n}\n</code></pre>\n<p><strong>Usage:</strong></p>\n<pre><code>python scripts/terraform_scaffolder.py &lt;target-path&gt; --provider=aws|gcp|azure --module=ecs-service|gke-deployment|aks-service [--verbose]\n</code></pre>\n<h3>3. Deployment Manager</h3>\n<p>Generates Kubernetes deployment manifests and ordered kubectl runbooks for blue/green or rolling strategies, with health-check gates before traffic switches and rollback runbooks. The tool writes manifests and prints the commands — it never applies them to a cluster itself, so every change gets a human review.</p>\n<p><strong>Example — Kubernetes blue/green deployment (blue-slot specific elements):</strong></p>\n<pre><code># k8s/deployment-blue.yaml\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: app-blue\n  labels:\n    app: myapp\n    slot: blue      # slot label distinguishes blue from green\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      app: myapp\n      slot: blue\n  template:\n    metadata:\n      labels:\n        app: myapp\n        slot: blue\n    spec:\n      containers:\n        - name: app\n          image: ghcr.io/org/app:1.2.3\n          readinessProbe:       # gate: pod must pass before traffic switches\n            httpGet:\n              path: /healthz\n              port: 8080\n            initialDelaySeconds: 10\n            periodSeconds: 5\n          resources:\n            requests:\n              cpu: \"250m\"\n              memory: \"256Mi\"\n            limits:\n              cpu: \"500m\"\n              memory: \"512Mi\"\n</code></pre>\n<p><strong>Usage:</strong></p>\n<pre><code>python scripts/deployment_manager.py deploy \\\n  --env=staging|production \\\n  --image=app:1.2.3 \\\n  --strategy=blue-green|rolling \\\n  --health-check-url=https://app.example.com/healthz\n\npython scripts/deployment_manager.py rollback --env=production --to-version=1.2.2\npython scripts/deployment_manager.py --analyze --env=production   # audit current state\n</code></pre>\n<h2>Resources</h2>\n<ul>\n<li>Pattern Reference: <code>references/cicd_pipeline_guide.md</code> — detailed CI/CD patterns, best practices, anti-patterns</li>\n<li>Workflow Guide: <code>references/infrastructure_as_code.md</code> — IaC step-by-step processes, optimization, troubleshooting</li>\n<li>Technical Guide: <code>references/deployment_strategies.md</code> — deployment strategy configs, security considerations, scalability</li>\n<li>Tool Scripts: <code>scripts/</code> directory</li>\n</ul>\n<h2>Development Workflow</h2>\n<h3>1. Infrastructure Changes (Terraform)</h3>\n<pre><code># Scaffold or update module\npython scripts/terraform_scaffolder.py ./infra --provider=aws --module=ecs-service --verbose\n\n# Validate and plan — review diff before applying\nterraform -chdir=infra init\nterraform -chdir=infra validate\nterraform -chdir=infra plan -out=tfplan\n\n# Apply only after plan review\nterraform -chdir=infra apply tfplan\n\n# Verify resources are healthy\naws ecs describe-services --cluster production --services app-service \\\n  --query 'services[0].{Status:status,Running:runningCount,Desired:desiredCount}'\n</code></pre>\n<h3>2. Application Deployment</h3>\n<pre><code># Generate or update pipeline config\npython scripts/pipeline_generator.py . --platform=github --stages=build,test,security,deploy\n\n# Build and tag image\ndocker build -t ghcr.io/org/app:$(git rev-parse --short HEAD) .\ndocker push ghcr.io/org/app:$(git rev-parse --short HEAD)\n\n# Deploy with health-check gate\npython scripts/deployment_manager.py deploy \\\n  --env=production \\\n  --image=app:$(git rev-parse --short HEAD) \\\n  --strategy=blue-green \\\n  --health-check-url=https://app.example.com/healthz\n\n# Verify pods are running\nkubectl get pods -n production -l app=myapp\nkubectl rollout status deployment/app-blue -n production\n\n# Switch traffic after verification\nkubectl patch service app-svc -n production \\\n  -p '{\"spec\":{\"selector\":{\"slot\":\"blue\"}}}'\n</code></pre>\n<h3>3. Rollback Procedure</h3>\n<pre><code># Immediate rollback via deployment manager\npython scripts/deployment_manager.py rollback --env=production --to-version=1.2.2\n\n# Or via kubectl\nkubectl rollout undo deployment/app -n production\nkubectl rollout status deployment/app -n production\n\n# Verify rollback succeeded\nkubectl get pods -n production -l app=myapp\ncurl -sf https://app.example.com/healthz || echo \"ROLLBACK FAILED — escalate\"\n</code></pre>\n<h2>Multi-Cloud Cross-References</h2>\n<p>Use these companion skills for cloud-specific deep dives:</p>\n<table>\n<thead>\n<tr>\n<th>Skill</th>\n<th>Cloud</th>\n<th>Use When</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>aws-solution-architect</strong></td>\n<td>AWS</td>\n<td>ECS/EKS, Lambda, VPC design, cost optimization</td>\n</tr>\n<tr>\n<td><strong>azure-cloud-architect</strong></td>\n<td>Azure</td>\n<td>AKS, App Service, Virtual Networks, Azure DevOps</td>\n</tr>\n<tr>\n<td><strong>gcp-cloud-architect</strong></td>\n<td>GCP</td>\n<td>GKE, Cloud Run, VPC, Cloud Build <em>(coming soon)</em></td>\n</tr>\n</tbody>\n</table>\n<p><strong>Multi-cloud vs single-cloud decision:</strong></p>\n<ul>\n<li><strong>Single-cloud</strong> (default) — lower operational complexity, deeper managed-service integration, better cost leverage with committed-use discounts</li>\n<li><strong>Multi-cloud</strong> — required when mandated by compliance/data residency, acquiring companies on different clouds, or needing best-of-breed services across providers (e.g., AWS for compute + GCP for ML)</li>\n<li><strong>Hybrid</strong> — on-prem + cloud; use when regulated workloads must stay on-prem while burst/non-sensitive workloads run in the cloud</li>\n</ul>\n<blockquote>\n<p>Start single-cloud. Add a second cloud only when there is a concrete business or compliance driver — not for theoretical redundancy.</p>\n</blockquote>\n<hr>\n<h2>Cloud-Agnostic IaC</h2>\n<h3>Terraform / OpenTofu (Default Choice)</h3>\n<p>Terraform (or its open-source fork OpenTofu) is the recommended IaC tool for most teams:</p>\n<ul>\n<li>Single language (HCL) across AWS, Azure, GCP, and 3,000+ providers</li>\n<li>State management with remote backends (S3, GCS, Azure Blob)</li>\n<li>Plan-before-apply workflow prevents drift surprises</li>\n<li>Cross-reference <strong>terraform-patterns</strong> for module structure, state isolation, and CI/CD integration</li>\n</ul>\n<h3>Pulumi (Programming Language IaC)</h3>\n<p>Choose Pulumi when the team strongly prefers TypeScript, Python, Go, or C# over HCL:</p>\n<ul>\n<li>Full programming language — loops, conditionals, unit tests native</li>\n<li>Same cloud provider coverage as Terraform</li>\n<li>Easier onboarding for dev teams that resist learning HCL</li>\n</ul>\n<h3>When to Use Cloud-Native IaC</h3>\n<table>\n<thead>\n<tr>\n<th>Tool</th>\n<th>Use When</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>CloudFormation</strong></td>\n<td>AWS-only shop; need native AWS support (StackSets, Service Catalog)</td>\n</tr>\n<tr>\n<td><strong>Bicep</strong></td>\n<td>Azure-only shop; simpler syntax than ARM templates</td>\n</tr>\n<tr>\n<td><strong>Cloud Deployment Manager</strong></td>\n<td>GCP-only; rare — most GCP teams prefer Terraform</td>\n</tr>\n</tbody>\n</table>\n<blockquote>\n<p><strong>Rule of thumb:</strong> Use Terraform/OpenTofu unless you are 100% committed to a single cloud AND the cloud-native tool offers a feature Terraform cannot replicate (e.g., AWS Service Catalog integration).</p>\n</blockquote>\n<hr>\n<h2>Troubleshooting</h2>\n<p>Check the comprehensive troubleshooting section in <code>references/deployment_strategies.md</code>.</p>\n","files":[{"path":"LICENSE","sizeBytes":1072,"isText":false},{"path":"references/cicd_pipeline_guide.md","sizeBytes":1610,"isText":true},{"path":"references/deployment_strategies.md","sizeBytes":1612,"isText":true},{"path":"references/infrastructure_as_code.md","sizeBytes":1613,"isText":true},{"path":"scripts/deployment_manager.py","sizeBytes":9835,"isText":true},{"path":"scripts/pipeline_generator.py","sizeBytes":7844,"isText":true},{"path":"scripts/terraform_scaffolder.py","sizeBytes":12219,"isText":true},{"path":"SKILL.md","sizeBytes":10671,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-02T16:55:30.140877Z","sha256":"82C76F0396F519920FAA6625678C01634556DEE3744C7AFF262959860F768DD3","sizeBytes":17030},"review":null,"source":{"repositoryUrl":"https://github.com/beginwithu/agent-skills","path":"skills/senior-devops","license":"MIT","commit":"a960304c52212f2e845067047f5cefc0c594d787","subtreeSha":"CDEEC62DB1A7FF574B80703DE8ADE6A3E9E2F1E0AFB4443F574C4B0600E73F70","lastSyncedAt":"2026-12-02T16:52:59.20206Z"},"reviewedAt":"2026-12-02T16:59:35.150651Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/beginwithu/agent-skills/tree/main/skills/senior-devops"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install beginwithu-agent-skills@llmmart"},{"target":"git","command":"git clone https://github.com/beginwithu/agent-skills.git"}]}