devops-cicd
Skill4 starsChanged 9 months agoMITView on GitHub
Use this skill for CI/CD pipelines, Docker containerization, Kubernetes orchestration, cloud infrastructure, Infrastructure as Code (IaC), deployment strategies, monitoring, observability, and DevSecOps. Trigger on keywords: pipeline, Docker, Kubernetes, K8s, CI/CD, GitHub Actions, Terraform, cloud, AWS, GCP, Azure, deploy, container, helm, monitoring, observability, IaC.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- atstaeff/ai-agentstheir own version, first seen Nov 29, 2026
- omspradippatil/Claude-Skillstheir own version, first seen Nov 1, 2026
- SHAdd0WTAka/Zen-Ai-Pentesttheir own version, first seen Oct 8, 2026
- zebbern/termstacktheir own version, first seen Apr 16, 2026
- thesaifalitai/claude-setuptheir own version, first seen Feb 27, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- SHAdd0WTAka/Zen-Ai-Pentest★ 470same name
- thesaifalitai/claude-setup★ 9same name
- atstaeff/ai-agents★ 4same name
- zebbern/termstack★ 4same name
- omspradippatil/Claude-Skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- ai-agent-designSkill
- ai-assisted-learningSkill
- ai-prompting-patternsSkill
- api-designSkill
- backend-devSkill
- career-growthSkill
- client-communicationSkill
- code-explanationSkill
- code-readingSkill
- code-reviewSkill
- cross-functional-collabSkill
- database-designSkill
- debugging-mindsetSkill
- doc-creationSkill
- focus-productivitySkill
- frontend-designSkill
- git-workflowSkill
- incident-responseSkill
- internal-commsSkill
- interview-prepSkill
- mcp-builderSkill
- performance-reviewSkill
- problem-solvingSkill
- prompt-engineeringSkill
- research-synthesisSkill
- resume-portfolioSkill
- self-healing-mindsetSkill
- side-project-planningSkill
- sprint-planningSkill
- system-designSkill
- technical-communicationSkill
- technical-mentoringSkill
- tech-researchSkill
- testingSkill
- threat-modelingSkill
- web-artifacts-builderSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 116
Use multi-stage builds to keep final images small
- Distinctive: line 117
Never run as root — create a non-root user
- Very specific: line 118
Use specific version tags, not latest
- Very specific: line 119
Add HEALTHCHECK to every service
- Very specific: line 120
Use .dockerignore to exclude node_modules, .git, test files
- Distinctive: line 212
Use workspaces or separate directories per environment
- Distinctive: line 213
Never hardcode secrets — use variables and secrets managers
- Very specific: line 214
Run terraform plan and get human approval before terraform apply in production
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DevOps & CI/CD
Core Philosophy
Infrastructure should be code — version-controlled, reviewed, tested, and reproducible. Every deployment should be automated, auditable, and reversible. Security is not a final step; it is embedded in every stage of the pipeline.
CI/CD Pipeline Blueprint
Standard Pipeline Stages
Code Push → Lint & Format → Unit Tests → Build → Integration Tests → Security Scan → Deploy to Staging → E2E Tests → Deploy to ProductionGitHub Actions Template
name: CI/CD Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: actions/setup-node@v4 # or setup-python, etc.
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run type-check
- run: npm run test:unit -- --coverage
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Dependency audit
run: npm audit --audit-level=high
- name: SAST scan
uses: github/codeql-action/analyze@v3
build:
needs: [quality, security]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t app:${{ github.sha }} .
- name: Push to registry
run: docker push registry/app:${{ github.sha }}
deploy-staging:
needs: build
runs-on: ubuntu-latest
environment: staging
steps:
- name: Deploy to staging
run: ./scripts/deploy.sh staging ${{ github.sha }}
e2e:
needs: deploy-staging
runs-on: ubuntu-latest
steps:
- run: npm run test:e2e -- --base-url=$STAGING_URL
deploy-production:
needs: e2e
runs-on: ubuntu-latest
environment: production
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to production
run: ./scripts/deploy.sh production ${{ github.sha }}Docker Best Practices
Dockerfile Template
# Stage 1: Build
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build
# Stage 2: Runtime (minimal image)
FROM node:20-alpine AS runtime
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
USER appuser
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://localhost:3000/health || exit 1
CMD ["node", "dist/server.js"]Key Rules
- Use multi-stage builds to keep final images small
- Never run as root — create a non-root user
- Use specific version tags, not
latest - Add
HEALTHCHECKto every service - Use
.dockerignoreto excludenode_modules,.git, test files - Secrets must never be baked into images — use environment variables or secrets managers
Kubernetes Essentials
Deployment Template
apiVersion: apps/v1
kind: Deployment
metadata:
name: app-deployment
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
spec:
containers:
- name: my-app
image: registry/app:v1.2.0
ports:
- containerPort: 3000
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 30
readinessProbe:
httpGet:
path: /ready
port: 3000
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: app-secrets
key: database-urlK8s Checklist
- ✓ Resource requests and limits defined
- ✓ Liveness and readiness probes configured
- ✓ Secrets stored in K8s Secrets (not ConfigMaps)
- ✓ Horizontal Pod Autoscaler configured for production
- ✓ Pod Disruption Budget for high-availability services
- ✓ Network policies to limit pod-to-pod communication
Deployment Strategies
| Strategy | Risk | Speed | Best For |
| Rolling | Low | Medium | Standard deployments |
| Blue-Green | Very Low | Fast rollback | Zero-downtime critical services |
| Canary | Lowest | Gradual | High-traffic, risk-sensitive features |
| Recreate | High | Fastest | Dev environments, non-critical |
Infrastructure as Code (IaC)
Terraform Structure
infrastructure/
├── environments/
│ ├── dev/
│ │ └── main.tf
│ ├── staging/
│ │ └── main.tf
│ └── production/
│ └── main.tf
├── modules/
│ ├── networking/
│ ├── compute/
│ └── database/
└── variables.tfIaC Best Practices
- Store state remotely (S3 + DynamoDB for AWS, GCS for GCP)
- Lock state to prevent concurrent modifications
- Use workspaces or separate directories per environment
- Never hardcode secrets — use variables and secrets managers
- Run
terraform planand get human approval beforeterraform applyin production
Monitoring & Observability
The Three Pillars
| Pillar | Tool Examples | What to Capture |
| Metrics | Prometheus + Grafana | CPU, memory, request rate, error rate, latency |
| Logs | ELK Stack, Loki | Structured JSON logs, request/response, errors |
| Traces | Jaeger, OpenTelemetry | Distributed request traces across services |
Golden Signals to Monitor
- Latency — How long requests take (p50, p95, p99)
- Traffic — Requests per second
- Errors — Error rate (4xx, 5xx)
- Saturation — How full the system is (CPU, memory, queue depth)
Structured Log Format
{
"timestamp": "2026-03-20T10:30:00Z",
"level": "error",
"service": "api-gateway",
"trace_id": "abc123",
"message": "Payment gateway timeout",
"context": {
"user_id": "u_456",
"duration_ms": 5002
}
}DevSecOps Checklist
- Dependency vulnerability scanning (npm audit, pip-audit, Snyk)
- SAST (Static Application Security Testing) in pipeline
- Container image scanning (Trivy, Grype)
- Secrets scanning — never commit secrets (use
git-secretsor GitHub secret scanning) - SBOM (Software Bill of Materials) generation for compliance
- Least-privilege IAM roles for all cloud resources
- Audit logging enabled for all cloud services
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

