Skip to content
Back to skills

Cloud Devops

ASecurity

Design and automate CI/CD, Kubernetes, containers, IaC, deployment verification, and shell scripts. Use for GitHub Actions, Dockerfiles, Terraform, Helm, canary and feature flag rollouts, manual GHCR rollout, deployment sync drift, and safe bash/PowerShell. Trigger on 'the pipeline fails', 'write a Dockerfile', 'deploy this to Kubernetes', 'the cluster drifted from Git'.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
devopsgoshellbashnodedockerkubernetesterraformdebugginggitbackend

Security analysis

A100/100

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

Scanned November 21, 2026

npx -y skills add juninmd/skills --skill cloud-devops --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloud Devops?

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

Security grade badge for Cloud Devops
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/juninmd-cloud-devops/badge)](https://www.skillsdirectory.com/skills/juninmd-cloud-devops)

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: cloud-devops
description: |
  Design and automate CI/CD, Kubernetes, containers, IaC, deployment verification, and shell scripts. Use for GitHub Actions, Dockerfiles, Terraform, Helm, canary and feature flag rollouts, manual GHCR rollout, deployment sync drift, and safe bash/PowerShell. Trigger on 'the pipeline fails', 'write a Dockerfile', 'deploy this to Kubernetes', 'the cluster drifted from Git'.
---


# Cloud DevOps

**Not this skill:** application code that happens to run in a container (its domain skill), or reading production signals during an incident (`observability`).

## Preflight

Establish infrastructure context and active cluster/workspace across Linux/macOS (bash) or Windows (PowerShell):

```bash
# Linux / macOS
ls .github/workflows/ Dockerfile* helm/ chart/ *.tf 2>/dev/null || true
kubectl config current-context          # which cluster are you actually pointed at?
terraform workspace show 2>/dev/null || true
```

```powershell
# Windows (PowerShell)
Get-ChildItem -Path .github/workflows, Dockerfile*, helm, chart, *.tf -ErrorAction SilentlyContinue
kubectl config current-context          # which cluster are you actually pointed at?
terraform workspace show 2>$null
```

The wrong kube context is the single most expensive mistake available here. Read it before every session, not once.

## Workflow
1. Inspect what already exists — pipeline, image, chart, IaC, deployment ownership — before proposing a change. Who applies this, and from where?
2. Write down the failure domain, the rollback path, the secret flow, and the one signal that says it worked. A change without a stated rollback is not ready to plan.
3. Make the smallest declarative change. Pin external actions by SHA, images by digest, providers by version — a floating tag is a supply-chain hole and a reproducibility hole at once.
4. Validate locally without mutating anything live (see the dry-run table).
5. Prove runtime health with rollout status, events, and a workload smoke. The pipeline going green is not the signal.

For implementation work, produce the concrete infrastructure artifact requested
(workflow, image definition, manifests, chart, or IaC), keep the diff smallest,
and report validation evidence plus the remaining runtime boundary. A delivery
checkpoint states what changed, what passed locally, and what still requires an
authorized apply or live rollout.

## Dry Run Before Apply
Every one of these is read-only. There is no reason to skip them.

| Change | Validate with |
|---|---|
| GitHub Actions workflow | `actionlint` · `gh workflow view <file>` |
| Dockerfile | `hadolint Dockerfile` · `docker build --no-cache -t tmp .` |
| Kubernetes manifest | `kubectl apply --dry-run=server -f <file>` |
| Helm chart | `helm lint ./chart` · `helm template ./chart -f values.yaml` |
| Helm upgrade | `helm diff upgrade <rel> ./chart` (needs helm-diff) |
| Terraform | `terraform validate` · `terraform plan -out=tf.plan` |
| Pulumi | `pulumi preview --diff` |

## Verify the Rollout, Not the Pipeline

```bash
# Linux / macOS
kubectl rollout status deploy/<name> --timeout=180s
kubectl get events --sort-by=.lastTimestamp | tail -20
kubectl get pod -l app=<name> -o jsonpath='{.items[*].status.containerStatuses[*].imageID}'
```

```powershell
# Windows (PowerShell)
kubectl rollout status deploy/<name> --timeout=180s
kubectl get events --sort-by=.lastTimestamp | Select-Object -Last 20
kubectl get pod -l app=<name> -o jsonpath='{.items[*].status.containerStatuses[*].imageID}'
```

The last one is the one people skip. With a mutable tag (`:latest`), a **failed build leaves the old image serving while the sync reports healthy** — Argo CD says Synced, the pipeline is green, and the running digest is yesterday's. Compare that digest against the artifact you just built; if they differ, the deploy did not happen.

| Symptom | Likely cause |
|---|---|
| `ImagePullBackOff` | tag or digest does not exist, or registry auth missing in that namespace |
| `CrashLoopBackOff` | app exits on start — read `kubectl logs --previous` |
| Pod `Pending` forever | no node satisfies requests, taints, or the PVC's zone |
| Rollout hangs at N-1 replicas | readiness never passes, or a PodDisruptionBudget blocks eviction |
| `OOMKilled` | limit below real usage; raise the limit or fix the leak |
| Restart loop only under load | liveness probe checks a slow dependency instead of process health — see [helm-standards.md](references/helm-standards.md) |

## Reference Routing
Open a file only when its trigger fires.
- Symptom matches a known outage: [real-world-cases.md](references/real-world-cases.md)
- Pipeline or runner edit: [ci-cd-best-practices.md](references/ci-cd-best-practices.md)
- Authoring an image: [dockerfile-standards.md](references/dockerfile-standards.md); debugging a running container: [docker-operations.md](references/docker-operations.md)
- Chart templates, values, or probe misconfiguration: [helm-standards.md](references/helm-standards.md); install, upgrade, rollback: [helm-workflow.md](references/helm-workflow.md)
- Terraform or Pulumi structure: [iac-principles.md](references/iac-principles.md); plan, state locking, or drift: [iac-operations.md](references/iac-operations.md)
- Choosing canary, blue-green, or feature-flag-gated rollout and its rollback trigger: [progressive-rollout.md](references/progressive-rollout.md)
- Live-editing an ArgoCD-managed resource, or verifying a `:latest`/CI-blocked homelab deploy: [gitops-homelab-deploy.md](references/gitops-homelab-deploy.md)
- Picking managed services: [cloud-patterns.md](references/cloud-patterns.md); functions or cold starts: [serverless-patterns.md](references/serverless-patterns.md)

See [Reference Map](references/TOPIC_MAP.md) for specialized references and sub-domain guides.

## Stop
- The kube context or Terraform workspace is not the one you intended. Stop before any command that mutates.
- No rollback path exists for this change. Define it first; a deploy without a reversal is a cutover.
- The running digest does not match the artifact just built. The deploy did not happen — do not report success.

## Rules
- Hand off security scans to `security-ops`, telemetry and incident response to `observability`, and git delivery to `git-workflow`.
- No `apply`, deploy, deletion, or production mutation without explicit confirmation.
- Use short-lived identity/OIDC; never place credentials in manifests or workflow logs. A secret echoed by a debug step is a leaked secret.
- Build once and promote the same immutable artifact by digest across environments.
- Kubernetes workloads need resource requests and limits, liveness and readiness probes, and a PodDisruptionBudget so a node drain cannot evict the last replica. Liveness that duplicates readiness restarts a healthy pod under load.
- Under a GitOps controller (Argo CD, Flux): inspect the desired-versus-live diff, fix desired state in the repository instead of forcing a sync by hand, and treat pruning as dangerous for shared objects.
- Terraform state is production data: remote backend, locking, versioned, never edited by hand. `terraform apply` without a saved plan applies something nobody reviewed.
- Logs, metrics, traces, SLOs, and alerting and live outage response belong to `observability`. Keep rollout mechanics here.

## Checklist
- [ ] Blast radius, secret flow, and rollback path stated before the change.
- [ ] Configuration lints, renders, or plans cleanly with no live mutation.
- [ ] External actions, images, and providers pinned.
- [ ] Rollout status green **and** the running digest matches the artifact just built.

Files in this skill

  • SKILL.md7.5 KB
  • references/TOPIC_MAP.md2.6 KB
  • references/ci-cd-best-practices.md4.3 KB
  • references/cloud-patterns.md1.4 KB
  • references/deploy-ghcr-manual.md4.2 KB
  • references/deploy-sync-guard.md4.2 KB
  • references/docker-operations.md935 B
  • references/dockerfile-standards.md3.2 KB
  • references/github-actions-docs.md2.8 KB
  • references/gitops-homelab-deploy.md5.4 KB
  • references/helm-standards.md4.2 KB
  • references/helm-workflow.md1.2 KB
  • references/iac-operations.md3 KB
  • references/iac-principles.md1.2 KB
  • references/progressive-rollout.md4.9 KB
  • references/real-world-cases.md1.4 KB
  • references/serverless-patterns.md1.5 KB
  • references/shell-operations.md4.9 KB
  • references/strict-shell.md4 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.

View all in devops →

Comments

Loading comments…

Newsletter

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