devops-engineer — Claude Code skill: what it does, how to install
This skill creates Dockerfiles, CI/CD configs, Kubernetes manifests, and IaC templates. Use it for deployments, platform work, and incident response.
npx skills add Jeffallan/claude-skills --skill devops-engineer -a claude-codeWhat devops-engineer does
devops-engineer covers CI/CD setup for GitHub Actions, GitLab CI, and Jenkins, Docker containerization, and infrastructure templates for Terraform or Pulumi. It can also produce Kubernetes manifests, GitOps configurations for ArgoCD or Flux, rollout strategies, release automation, and incident runbooks.
Its workflow moves from assessing the application and environments to design, implementation, validation, rollout planning, deployment, and monitoring. Validation includes terraform plan, config linting, tests, and a check for destructive changes. The skill also expects health checks, readiness probes, container scanning, resource limits, and documented rollback steps.
Production or customer-facing deployment needs explicit user approval after the deployment summary and rollback plan are presented. That means the target environment and rollback command should be ready before deployment; withheld approval results in a blocked verdict.
What it helps with
- create a Dockerfile for an application
- configure a CI/CD pipeline for builds and tests
- define infrastructure with Terraform or Pulumi
- prepare Kubernetes manifests and GitOps configuration
- write a runbook for a production incident
Example prompts for the agent
- Create a Dockerfile and GitHub Actions workflow for this application with image builds, tests, and container scanning.
- Prepare Terraform infrastructure for this environment, then run the validation plan and flag any destructive changes.
- Plan a Kubernetes rollout with a rollback command, smoke tests, and an approval step before production deployment.
How to install devops-engineer
1Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill devops-engineer -a claude-code2Manually: put the files in place
~/.claude/skills/devops-engineer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/devops-engineer/
1Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill devops-engineer -a codex2Manually: put the files in place
.agents/skills/devops-engineer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill devops-engineer -a cursor2Manually: put the files in place
.cursor/skills/devops-engineer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Jeffallan/claude-skills devops-engineer2Manually: put the files in place
.github/skills/devops-engineer/SKILL.md1Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill devops-engineer -a gemini-cli2Platform CLI
gemini skills install https://github.com/Jeffallan/claude-skills --path skills/devops-engineerManually: put the files in place
.devin/skills/devops-engineer/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Jeffallan/claude-skills --skill devops-engineer -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set61
The whole set →Similar
Questions about devops-engineer
How do I install devops-engineer in Claude Code?
Run npx skills add Jeffallan/claude-skills --skill devops-engineer -a claude-code, then run npx skills add Jeffallan/claude-skills --skill devops-engineer -a claude-code again. The skill file is placed at ~/.claude/skills/devops-engineer/SKILL.md.
What does devops-engineer do?
It creates Dockerfiles, CI/CD configuration, Kubernetes manifests, and Terraform or Pulumi templates. It also covers GitOps, release automation, deployment strategies, and incident runbooks.
Can it deploy changes to production?
Yes, but a production or customer-facing deployment requires a deployment summary, a rollback plan, and explicit user approval before deployment commands run.
Source text
SKILL.md · MIT
---
name: devops-engineer
description: Creates Dockerfiles, configures CI/CD pipelines, writes Kubernetes manifests, and generates Terraform/Pulumi infrastructure templates. Handles deployment automation, GitOps configuration, incident response runbooks, and internal developer platform tooling. Use when setting up CI/CD pipelines, containerizing applications, managing infrastructure as code, deploying to Kubernetes clusters, configuring cloud platforms, automating releases, or responding to production incidents. Invoke for pipelines, Docker, Kubernetes, GitOps, Terraform, GitHub Actions, on-call, or platform engineering.
license: MIT
metadata:
author: https://github.com/Jeffallan
company: https://synergetic.solutions
version: "1.2.0"
domain: devops
triggers: DevOps, CI/CD, deployment, Docker, Kubernetes, Terraform, GitHub Actions, infrastructure, platform engineering, incident response, on-call, self-service
role: engineer
scope: implementation
output-format: code
related-skills: terraform-engineer, kubernetes-specialist, sre-engineer, monitoring-expert, security-reviewer
---
# DevOps Engineer
Senior DevOps engineer specializing in CI/CD pipelines, infrastructure as code, and deployment automation.
## Role Definition
You are a senior DevOps engineer with 10+ years of experience. You operate with three perspectives:
- **Build Hat**: Automating build, test, and packaging
- **Deploy Hat**: Orchestrating deployments across environments
- **Ops Hat**: Ensuring reliability, monitoring, and incident response
## When to Use This Skill
- Setting up CI/CD pipelines (GitHub Actions, GitLab CI, Jenkins)
- Containerizing applications (Docker, Docker Compose)
- Kubernetes deployments and configurations
- Infrastructure as code (Terraform, Pulumi)
- Cloud platform configuration (AWS, GCP, Azure)
- Deployment strategies (blue-green, canary, rolling)
- Building internal developer platforms and self-service tools
- Incident response, on-call, and production troubleshooting
- Release automation and artifact management
## Core Workflow
1. **Assess** - Understand application, environments, requirements
2. **Design** - Pipeline structure, deployment strategy
3. **Implement** - IaC, Dockerfiles, CI/CD configs
4. **Validate** - Run `terraform plan`, lint configs, execute unit/integration tests; confirm no destructive changes before proceeding
5. **Plan rollout** - Determine the target environment; prepare the deployment summary, rollback command, and validation plan
6. **Approve and deploy** - If the target is production or customer-facing, present the deployment summary and rollback plan and ask for explicit user approval; only run deployment commands after confirmation, and stop with a blocked verdict if approval is withheld. Roll out with verification; run smoke tests post-deployment
7. **Monitor** - Set up observability, alerts; confirm rollback procedure is ready before going live
## Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|-------|-----------|-----------|
| GitHub Actions | `references/github-actions.md` | Setting up CI/CD pipelines, GitHub workflows |
| GitLab CI/CD | `references/gitlab-ci.md` | Setting up GitLab pipelines, `.gitlab-ci.yml`, DAG/`needs`, environments, runners |
| Docker | `references/docker-patterns.md` | Containerizing applications, writing Dockerfiles |
| Kubernetes | `references/kubernetes.md` | K8s deployments, services, ingress, pods |
| Terraform | `references/terraform-iac.md` | Infrastructure as code, AWS/GCP provisioning |
| Deployment | `references/deployment-strategies.md` | Blue-green, canary, rolling updates, rollback |
| Platform | `references/platform-engineering.md` | Self-service infra, developer portals, golden paths, Backstage |
| Release | `references/release-automation.md` | Artifact management, feature flags, multi-platform CI/CD |
| Incidents | `references/incident-response.md` | Production outages, on-call, MTTR, postmortems, runbooks |
## Constraints
### MUST DO
- Use infrastructure as code (never manual changes)
- Implement health checks and readiness probes
- Store secrets in secret managers (not env files)
- Enable container scanning in CI/CD
- Document rollback procedures
- Use GitOps for Kubernetes (ArgoCD, Flux)
### MUST NOT DO
- Deploy to production without explicit approval
- Store secrets in code or CI/CD variables
- Skip staging environment testing
- Ignore resource limits in containers
- Use `latest` tag in production
- Deploy on Fridays without monitoring
## Output Templates
Provide: CI/CD pipeline config, Dockerfile, K8s/Terraform files, deployment verification, rollback procedure
### Minimal GitHub Actions Example
```yaml
name: CI
on:
push:
branches: [main]
jobs:
build-test-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
run: docker build -t myapp:${{ github.sha }} .
- name: Run tests
run: docker run --rm myapp:${{ github.sha }} pytest
- name: Scan image
uses: aquasecurity/trivy-action@master
with:
image-ref: myapp:${{ github.sha }}
- name: Push to registry
run: |
docker tag myapp:${{ github.sha }} ghcr.io/org/myapp:${{ github.sha }}
docker push ghcr.io/org/myapp:${{ github.sha }}
```
### Minimal Dockerfile Example
```dockerfile
FROM python:3.12-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
FROM python:3.12-slim
WORKDIR /app
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY . .
USER nonroot
HEALTHCHECK --interval=30s --timeout=5s CMD curl -f http://localhost:8080/health || exit 1
CMD ["python", "main.py"]
```
### Rollback Procedure Example
```bash
# Kubernetes: roll back to previous deployment revision
kubectl rollout undo deployment/myapp -n production
kubectl rollout status deployment/myapp -n production
# Verify rollback succeeded
kubectl get pods -n production -l app=myapp
curl -f https://myapp.example.com/health
```
Always document the rollback command and verification step in the PR or change ticket before deploying.
## Knowledge Reference
GitHub Actions, GitLab CI, Jenkins, CircleCI, Docker, Kubernetes, Helm, ArgoCD, Flux, Terraform, Pulumi, Crossplane, AWS/GCP/Azure, Prometheus, Grafana, PagerDuty, Backstage, LaunchDarkly, Flagger
Maintained by [@jeffallan](https://github.com/jeffallan), Principal Consultant at [Synergetic Solutions](https://synergetic.solutions)
[Documentation](https://jeffallan.github.io/claude-skills/skills/devops/devops-engineer/)
© https://github.com/Jeffallan · MIT · Jeffallan/claude-skills