ci-cd-devops-architect · diff
git:20260813.bd123bf to git:20260816.d23736e
44 added, 95 removed. Audit A to A.
---
name: ci-cd-devops-architect
description: "Expert guide for continuous integration, deployment pipelines, Docker, Kubernetes, and Infrastructure as Code (IaC) / Panduan ahli untuk CI/CD dan infrastruktur."
- author: "Antigravity"
+ author: "vibes-plug-swarm"
---
# CI/CD & DevOps Architect / Arsitek CI/CD & DevOps
[English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
---
<a name="english"></a>
## English
### Description
- Expert-level skill for designing and maintaining CI/CD pipelines (GitHub Actions, GitLab CI) and managing infrastructure using Docker, Kubernetes, and Terraform.
+ Design and maintain CI/CD pipelines (GitHub Actions, GitLab CI, Buildkite) and manage infrastructure using Docker, Kubernetes (1.30+), and Terraform/OpenTofu.
- ### Key CI/CD Workflows & Patterns
+ ## Orchestration & Integration
+ Connect with these skills to orchestrate complete workflows:
+ - `cloud-hosting-expert` — Deployment targets (Vercel, Cloudflare, AWS, Railway)
+ - `dependency-upgrade-migrator` — Renovate Bot configuration in CI/CD
+ - `self-healing-cloud-orchestrator` — Auto-remediation and rollback pipelines
+ - `logging-error-tracking-expert` — Sentry source map upload step in build pipeline
+ - `e2e-testing-expert` — Automated Playwright & Vitest test steps in CI
+ - `zero-trust-secret-vault` — CI/CD secret management and injection
+ - `production-ready-hardener` — Pre-deployment security scanning in CI
- - **Automate Everything**: Ensure tests, linting, formatting, and security scans run on every PR. Block merges if pipelines fail.
- - **Dependency Update Bot**: Configure Renovate Bot or Dependabot for automated patch/minor updates (`dependency-upgrade-migrator`).
- - **Source Maps Upload**: Automatically upload Sentry source maps during the build phase (`logging-error-tracking-expert`).
- - **Immutable Artifacts**: Build a Docker image once and deploy the exact same image to Staging and Production. Pass environment variables dynamically at runtime, not build time.
- - **Infrastructure as Code**: Keep all infrastructure configurations (Terraform, K8s manifests) in version control. Avoid manual changes via the cloud provider's web console.
- - **Zero-Trust Secrets**: Never commit secrets to the repository. Use Infisical, GitHub Secrets, or HashiCorp Vault (`zero-trust-secret-vault`).
- - **Zero-Downtime Deployments**: Utilize deployment strategies like rolling updates or blue-green deployments to ensure availability.
+ ### Key CI/CD Workflows & Patterns
+ - **Automate Everything**: Enforce tests, linting, formatting, and security scans on every PR. Block merges on pipeline failure.
+ - **Dependency Update Bot**: Configure Renovate Bot for automated patch/minor updates (`dependency-upgrade-migrator`).
+ - **Source Maps Upload**: Upload Sentry source maps during build phase (`logging-error-tracking-expert`).
+ - **Immutable Artifacts**: Build Docker image once, deploy identical image to Staging and Production. Inject environment variables dynamically at runtime.
+ - **Infrastructure as Code**: Store all infrastructure configurations (Terraform/OpenTofu, K8s manifests) in version control. No manual web console changes.
+ - **Zero-Trust Secrets**: Never commit secrets. Use Infisical, GitHub OIDC, or HashiCorp Vault (`zero-trust-secret-vault`).
+ - **Zero-Downtime Deployments**: Utilize rolling updates or blue-green deployments.
### Implementation Checklist
- - [ ] Configure branch protection rules (require passing status checks before merge).
+ - [ ] Configure branch protection (require passing status checks before merge).
- [ ] Set up multi-stage Docker builds to reduce image size and attack surface.
- - [ ] Implement caching for package managers (npm, pnpm, cargo, go mod) in CI workflows.
- - [ ] Scan container images for vulnerabilities before pushing to the registry.
-
- ### Example: Multi-Stage Dockerfile (Node.js/Next.js)
- ```dockerfile
- # Build stage
- FROM node:22-alpine AS builder
- WORKDIR /app
- COPY package*.json ./
- RUN npm ci
- COPY . .
- RUN npm run build
-
- # Production stage
- FROM node:22-alpine AS runner
- WORKDIR /app
- ENV NODE_ENV=production
- # Next.js standalone output
- COPY --from=builder /app/next.config.js ./
- COPY --from=builder /app/public ./public
- COPY --from=builder /app/.next/standalone ./
- COPY --from=builder /app/.next/static ./.next/static
-
- EXPOSE 3000
- CMD ["node", "server.js"]
- ```
+ - [ ] Implement caching for package managers (pnpm, bun, cargo, go mod) in CI.
+ - [ ] Scan container images for vulnerabilities before registry push.
### Trigger Conditions
- Active whenever the user is creating GitHub Actions, configuring Dockerfiles, writing Terraform scripts, setting up Renovate Bot, or configuring deployment pipelines.
-
- ---
-
- ### Integration with Other Skills (MANDATORY)
-
- This skill works best when combined with:
- - `cloud-hosting-expert` — Deployment targets (Vercel, Cloudflare, AWS, Railway)
- - `dependency-upgrade-migrator` — Renovate Bot & Dependabot configuration in CI/CD
- - `logging-error-tracking-expert` — Sentry source map upload step in build pipeline
- - `e2e-testing-expert` — Automated Playwright & Vitest test steps in CI
- - `zero-trust-secret-vault` — CI/CD secret management and injection
- - `production-ready-hardener` — Pre-deployment security scanning in CI
+ Trigger when creating GitHub Actions, configuring Dockerfiles, writing Terraform/OpenTofu scripts, setting up Renovate Bot, or configuring deployment pipelines.
---
<a name="bahasa-indonesia"></a>
## Bahasa Indonesia
### Deskripsi
- Skill tingkat ahli untuk merancang dan memelihara *pipeline* CI/CD (GitHub Actions, GitLab CI) dan mengelola infrastruktur menggunakan Docker, Kubernetes, dan Terraform.
-
- ### Alur Kerja & Pola CI/CD Utama
- - **Otomatisasi Semuanya**: Pastikan pengujian (tests), *linting*, pemformatan, dan pemindaian keamanan berjalan di setiap *Pull Request* (PR). Blokir penggabungan kode (merge) jika *pipeline* gagal.
- - **Bot Pembaruan Dependensi**: Konfigurasi Renovate Bot atau Dependabot untuk update otomatis patch/minor (`dependency-upgrade-migrator`).
- - **Upload Source Maps**: Upload otomatis source maps Sentry pada fase build (`logging-error-tracking-expert`).
- - **Artifak Imutabel**: Build *image* Docker satu kali dan *deploy* image yang sama persis ke Staging dan Produksi.
- - **Infrastructure as Code (IaC)**: Simpan semua konfigurasi infrastruktur (Terraform, manifes K8s) di kontrol versi.
- - **Manajemen Rahasia (Secrets)**: Gunakan *vault* yang aman seperti GitHub Secrets, Infisical, atau HashiCorp Vault (`zero-trust-secret-vault`).
- - **Deployment Tanpa Downtime**: Manfaatkan strategi *deployment* seperti pembaruan bergulir (*rolling updates*) atau *blue-green deployments*.
-
- ### Checklist Implementasi
- - [ ] Konfigurasi aturan perlindungan cabang / branch protection (wajib lulus status check sebelum merge).
- - [ ] Siapkan multi-stage Docker builds untuk mengurangi ukuran image dan permukaan serangan.
- - [ ] Implementasikan caching untuk package managers (npm, pnpm, cargo, go mod) di workflow CI.
- - [ ] Pindai image kontainer untuk kerentanan sebelum push ke registry.
-
- ### Contoh: Multi-Stage Dockerfile (Node.js/Next.js)
- ```dockerfile
- # Tahap Build
- FROM node:22-alpine AS builder
- WORKDIR /app
- COPY package*.json ./
- RUN npm ci
- COPY . .
- RUN npm run build
-
- # Tahap Produksi
- FROM node:22-alpine AS runner
- WORKDIR /app
- ENV NODE_ENV=production
- # Next.js standalone output
- COPY --from=builder /app/next.config.js ./
- COPY --from=builder /app/public ./public
- COPY --from=builder /app/.next/standalone ./
- COPY --from=builder /app/.next/static ./.next/static
-
- EXPOSE 3000
- CMD ["node", "server.js"]
- ```
-
- ### Integrasi dengan Skill Lain (WAJIB)
+ Rancang dan pelihara *pipeline* CI/CD (GitHub Actions, GitLab CI, Buildkite) dan kelola infrastruktur menggunakan Docker, Kubernetes (1.30+), dan Terraform/OpenTofu.
- Skill ini bekerja paling baik dikombinasikan dengan:
+ ## Integrasi Orkestrasi
+ Hubungkan dengan skill berikut untuk mengorkestrasi alur kerja:
- `cloud-hosting-expert` — Target deployment (Vercel, Cloudflare, AWS, Railway)
- - `dependency-upgrade-migrator` — Konfigurasi Renovate Bot & Dependabot di CI/CD
+ - `dependency-upgrade-migrator` — Konfigurasi Renovate Bot di CI/CD
+ - `self-healing-cloud-orchestrator` — Pipeline auto-remediasi dan rollback
- `logging-error-tracking-expert` — Langkah upload source map Sentry di pipeline build
- `e2e-testing-expert` — Langkah pengujian otomatis Playwright & Vitest di CI
- `zero-trust-secret-vault` — Manajemen dan injeksi rahasia CI/CD
- `production-ready-hardener` — Pemindaian keamanan pra-deployment di CI
+ ### Alur Kerja & Pola CI/CD Utama
+ - **Otomatisasi Semuanya**: Wajibkan pengujian, *linting*, pemformatan, dan pemindaian keamanan di setiap PR. Blokir merge jika *pipeline* gagal.
+ - **Bot Pembaruan Dependensi**: Konfigurasi Renovate Bot untuk update otomatis patch/minor (`dependency-upgrade-migrator`).
+ - **Upload Source Maps**: Upload source maps Sentry pada fase build (`logging-error-tracking-expert`).
+ - **Artifak Imutabel**: Build *image* Docker sekali, *deploy* image yang persis sama ke Staging dan Produksi. Injeksi variabel lingkungan saat runtime.
+ - **Infrastructure as Code (IaC)**: Simpan semua konfigurasi infrastruktur (Terraform/OpenTofu, manifes K8s) di kontrol versi. Jangan ubah manual via konsol web.
+ - **Manajemen Rahasia (Secrets)**: Jangan komit rahasia. Gunakan GitHub OIDC, Infisical, atau HashiCorp Vault (`zero-trust-secret-vault`).
+ - **Deployment Tanpa Downtime**: Manfaatkan pembaruan bergulir (*rolling updates*) atau *blue-green deployments*.
+
+ ### Checklist Implementasi
+ - [ ] Konfigurasi perlindungan cabang (wajib lulus status check sebelum merge).
+ - [ ] Siapkan multi-stage Docker builds untuk mengurangi ukuran image dan permukaan serangan.
+ - [ ] Implementasikan caching untuk package managers (pnpm, bun, cargo, go mod) di workflow CI.
+ - [ ] Pindai image kontainer untuk kerentanan sebelum push ke registry.
+
### Kondisi Pemicu
- Aktif setiap kali pengguna sedang membuat GitHub Actions, mengkonfigurasi Dockerfile, menulis skrip Terraform, mengatur Renovate Bot, atau mengatur *pipeline deployment*.
+ Picu saat membuat GitHub Actions, mengkonfigurasi Dockerfile, menulis skrip Terraform/OpenTofu, mengatur Renovate Bot, atau mengatur *pipeline deployment*.