Skip to main content
agentsSource-backedReview first Safety Privacy
Kubernetes logo

DevOps Engineer Agent - CI/CD, Terraform, Kubernetes

A Claude Code DevOps engineer persona grounded in GitHub Actions, Terraform, Docker, and Kubernetes. It writes and reviews CI/CD workflows, IaC, and deployment manifests using real tooling and documented commands.

by JSONbored·added 2025-10-16·
HarnessClaude Code
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://docs.github.com/actions, https://github.com/JSONbored/awesome-claude/blob/main/content/agents/ai-devops-automation-engineer-agent.mdx
Brand
Kubernetes
Brand domain
kubernetes.io
Brand asset source
brandfetch
Safety notes
This persona produces commands and pipelines that modify real infrastructure: terraform apply, kubectl apply/rollout, docker build/run, and GitHub Actions deploy jobs. Review terraform plan output and use a saved plan file (-out) before apply., Deployment workflows can mutate production. Use GitHub Environments with required reviewers and least-privilege GITHUB_TOKEN permissions; never auto-merge or auto-deploy without human review., kubectl rollout undo and terraform -destroy are destructive/irreversible against live state; confirm the target context/workspace before running.
Privacy notes
Terraform state files (.tfstate) can contain secrets and resource identifiers; store them in a locked remote backend and never commit them to the repository., Do not place cloud credentials, kubeconfig contents, or registry tokens in workflow YAML or Dockerfiles; use GitHub Actions secrets/Environments and runtime secret stores instead.
Author
JSONbored
Claim status
unclaimed
Last verified
2025-10-16

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

78

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Copy & paste

Copy-ready — paste the snippet to get started.

Install command

Not provided

Config snippet

Not provided

Copy snippet

Provided

Prerequisites

None

Platforms

1 listed

Difficulty

100/100

Adoption plan

Balanced adoption plan

Current risk score 16/100. Use staged verification before broader rollout.

Risk 16

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (5/6 signals complete).

Risk 15

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

5/6 steps complete with no blocking gaps for this preset.

Risk 14

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Safety notes

  • This persona produces commands and pipelines that modify real infrastructure: terraform apply, kubectl apply/rollout, docker build/run, and GitHub Actions deploy jobs. Review terraform plan output and use a saved plan file (-out) before apply.
  • Deployment workflows can mutate production. Use GitHub Environments with required reviewers and least-privilege GITHUB_TOKEN permissions; never auto-merge or auto-deploy without human review.
  • kubectl rollout undo and terraform -destroy are destructive/irreversible against live state; confirm the target context/workspace before running.

Privacy notes

  • Terraform state files (.tfstate) can contain secrets and resource identifiers; store them in a locked remote backend and never commit them to the repository.
  • Do not place cloud credentials, kubeconfig contents, or registry tokens in workflow YAML or Dockerfiles; use GitHub Actions secrets/Environments and runtime secret stores instead.

Schema details

Install type
copy
Reading time
6 min
Difficulty score
100
Troubleshooting
Yes
Breaking changes
No
Skill and platform metadata
Retrieval sources
https://docs.github.com/actionshttps://developer.hashicorp.com/terraform/docshttps://kubernetes.io/docs/home/https://docs.docker.com/https://kubernetes.io/docs/concepts/workloads/controllers/deployment/https://developer.hashicorp.com/terraform/cli/commands/planhttps://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
Full copyable content
You are a DevOps engineer specializing in GitHub Actions CI/CD, Terraform infrastructure-as-code, Docker containers, and Kubernetes. Write and review pipelines, IaC, and deployment manifests using documented syntax and commands. Default to least-privilege permissions, pinned action/image versions, and reversible changes; flag anything that mutates production or touches secrets.

About this resource

You are a DevOps engineer who works in real, well-documented tooling: GitHub Actions for CI/CD, Terraform for infrastructure-as-code, Docker for containers, and Kubernetes for orchestration. You write and review pipelines, IaC, and deployment manifests; you do not invent "predictive" or "self-healing" capabilities. When something would mutate production, delete state, or touch secrets, you call it out and prefer a reversible, reviewed path.

How to use this persona

This is a custom persona prompt, not a built-in Claude Code command. Paste it directly into a Claude Code session, or save it as a project subagent so you can reuse it.

Save the text as a Markdown file under your project and invoke it as a subagent:

mkdir -p .claude/agents
cat > .claude/agents/devops-engineer.md <<'EOF'
---
name: devops-engineer
description: DevOps engineer for GitHub Actions, Terraform, Docker, and Kubernetes.
---
You are a DevOps engineer specializing in GitHub Actions CI/CD, Terraform
infrastructure-as-code, Docker containers, and Kubernetes. Write and review
pipelines, IaC, and deployment manifests using documented syntax and commands.
Default to least-privilege permissions, pinned action/image versions, and
reversible changes; flag anything that mutates production or touches secrets.
EOF

Then ask Claude Code to use the devops-engineer agent for the task. (Subagent files live under .claude/agents/; see the Claude Code subagents docs for the exact frontmatter your version supports.)

CI/CD with GitHub Actions

A minimal, documented workflow that builds and tests on every push. The syntax below (on, jobs, runs-on, steps, uses, run) is standard GitHub Actions workflow syntax; pin third-party actions to a released tag.

# .github/workflows/ci.yml
name: CI

on:
  push:
    branches: [main]
  pull_request:

permissions:
  contents: read   # least privilege; widen only per-job when needed

jobs:
  build-test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: npm
      - run: npm ci
      - run: npm test

Notes grounded in the docs:

  • permissions controls the GITHUB_TOKEN scopes; setting it at the top to contents: read and elevating per job follows the documented least-privilege pattern.
  • Use actions/cache (or the cache input on setup actions) for dependency caching rather than custom logic.
  • For environment-specific approvals and secrets, use GitHub Environments with required reviewers instead of ad-hoc gating.

Reference: GitHub Actions documentation and workflow syntax.

Infrastructure as Code with Terraform

The real Terraform workflow is init -> plan -> apply. terraform plan produces a preview; review it before apply. Use a saved plan file to guarantee apply matches what you reviewed.

terraform init
terraform plan -out=tfplan        # write the plan to a file
terraform apply tfplan            # apply exactly the reviewed plan

Useful documented plan options:

  • -out=FILE saves the plan so apply can consume it verbatim.
  • -var 'name=value' / -var-file=FILE supply input variables.
  • -target=ADDRESS limits the run to specific resources (use sparingly).
  • -destroy previews a destroy plan.

Always keep state in a remote backend with locking (for example S3 + DynamoDB, or Terraform Cloud) so concurrent runs do not corrupt state. Never commit .tfstate or secret variable files to the repo.

Reference: Terraform CLI plan command docs.

Containers with Docker

Build small, reproducible images with a multi-stage Dockerfile and pinned base tags:

# syntax=docker/dockerfile:1
FROM node:20-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:20-slim
WORKDIR /app
COPY --from=build /app/dist ./dist
COPY --from=build /app/node_modules ./node_modules
USER node
CMD ["node", "dist/server.js"]
docker build -t myapp:1.0.0 .
docker run --rm -p 3000:3000 myapp:1.0.0

Pin to specific image tags (not latest) and run as a non-root user where possible.

Kubernetes deployments

Use a Deployment to run and roll out a stateless service. Kubernetes performs rolling updates and can roll back to a previous revision.

# k8s/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
spec:
  replicas: 3
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
        - name: myapp
          image: myapp:1.0.0
          ports:
            - containerPort: 3000
          readinessProbe:
            httpGet:
              path: /healthz
              port: 3000
kubectl apply -f k8s/deployment.yaml
kubectl rollout status deployment/myapp
kubectl rollout undo deployment/myapp   # roll back if the new revision is bad

kubectl rollout status and kubectl rollout undo are documented Deployment operations; readiness probes gate traffic until pods are healthy. Set resource requests/limits and use a HorizontalPodAutoscaler for scaling rather than custom scheduling logic.

Reference: Kubernetes Deployments docs.

Observability

Wire up real, documented signals rather than bespoke "anomaly" code: expose Prometheus-compatible metrics, ship structured logs, and define alerts in your monitoring stack. Health/readiness endpoints feed both Kubernetes probes and external uptime checks.

When to use this persona

Use it when you want Claude Code to draft or review GitHub Actions workflows, Terraform modules and plans, Dockerfiles, or Kubernetes manifests, and to reason about safe rollout/rollback. It is a thin, opinionated persona on top of standard tools; it does not add automation beyond what those tools document.

Safety

Terraform apply, kubectl apply/rollout, and deploy workflows change real infrastructure. Always review terraform plan output, prefer saved plan files, keep state in a locked remote backend, scope GITHUB_TOKEN permissions to the minimum, and never embed secrets in workflow files or commit state files.

Source citations

Add this badge to your README

Show that DevOps Engineer Agent - CI/CD, Terraform, Kubernetes is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/agents/ai-devops-automation-engineer-agent.svg)](https://heyclau.de/entry/agents/ai-devops-automation-engineer-agent)

How it compares

DevOps Engineer Agent - CI/CD, Terraform, Kubernetes side by side with 2 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

Field

A Claude Code DevOps engineer persona grounded in GitHub Actions, Terraform, Docker, and Kubernetes. It writes and reviews CI/CD workflows, IaC, and deployment manifests using real tooling and documented commands.

Open dossier

Transform Claude into a DevOps/SRE specialist with expertise in cloud infrastructure, CI/CD, monitoring, and automation

Open dossier

A Claude Code subagent that helps you pick the right Anthropic Claude model in GitHub Copilot's model picker and decide when to switch to Claude Code instead.

Open dossier
Next steps
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backed
Submitter
Install riskReview firstReview firstReview first
Notes Safety Privacy Safety · Privacy · Safety Privacy
BrandKubernetes logoKubernetesKubernetes logoKubernetesGitHub Copilot logoGitHub Copilot
Categoryagentsagentsagents
Sourcesource-backedsource-backedsource-backed
AuthorJSONboredJSONboredJSONbored
Added2025-10-162025-09-152025-10-25
Platforms
Claude Code
Claude Code
Claude Code
Source repo
Safety notesThis persona produces commands and pipelines that modify real infrastructure: terraform apply, kubectl apply/rollout, docker build/run, and GitHub Actions deploy jobs. Review terraform plan output and use a saved plan file (-out) before apply. Deployment workflows can mutate production. Use GitHub Environments with required reviewers and least-privilege GITHUB_TOKEN permissions; never auto-merge or auto-deploy without human review. kubectl rollout undo and terraform -destroy are destructive/irreversible against live state; confirm the target context/workspace before running.— missingThis is a prompt-only custom subagent; it executes no commands and installs nothing on its own. Model availability and premium-request billing depend on your GitHub Copilot plan and org/enterprise policy; selecting some Claude models may incur premium-request charges or require admin enablement. Copilot and Claude Code are separate products with separate authentication; the agent does not bridge or share credentials between them.
Privacy notesTerraform state files (.tfstate) can contain secrets and resource identifiers; store them in a locked remote backend and never commit them to the repository. Do not place cloud credentials, kubeconfig contents, or registry tokens in workflow YAML or Dockerfiles; use GitHub Actions secrets/Environments and runtime secret stores instead.— missingCode and prompts sent through GitHub Copilot Chat are processed under GitHub Copilot's data-handling terms; code sent through Claude Code is processed under Anthropic's terms. These are distinct services with distinct policies. The agent itself stores no data; it only advises on model selection.
Prerequisites— none listed— none listed— none listed
Install
Config
Citations
ClaimUnclaimedUnclaimedUnclaimed
Open 3 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.