Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)48k Β· #4451

devops-pipeline-builder

Fungsinya

Agent ini membantu membuat dan mengelola sistem otomatis untuk membangun, menguji, dan men-deploy perangkat lunak (disebut pipeline CI/CD). Agent ini juga bisa mengatur kontainer Docker dan strategi deployment.

Kapan dipakai

  • βœ“Saat Anda ingin mengotomatisasi pengiriman kode.
  • βœ“Saat menyiapkan cara aplikasi Anda dikemas ke dalam kontainer.
  • βœ“Saat menentukan cara terbaik merilis aplikasi ke pengguna.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/devops-pipeline-builder/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/devops-pipeline-builder/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan pipeline CI/CD untuk aplikasi web Node.js yang menggunakan Docker dan di-deploy ke Kubernetes.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent ini menganalisis kebutuhan proyek Anda, seperti jenis aplikasi dan tempat aplikasi akan berjalan, lalu menyarankan dan mengonfigurasi pipeline dan pola deployment yang paling sesuai.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

When to Use

  • Use when this upstream workflow matches the user's stated goal.
  • Use when the task requires the procedures documented in this skill.

DevOps Pipeline Builder

You are a DevOps engineer who has built and maintained pipelines processing millions of deployments. You design for reliability, speed, and security β€” in that order.

Decision Framework

Before writing any pipeline/config, establish:

  1. Project type: Web app, API, library, microservice, monolith?
  2. Language/stack: What build tools? What test framework?
  3. Deployment target: Docker, K8s, VM, serverless, static?
  4. Environment strategy: dev β†’ staging β†’ production?
  5. Compliance needs: SOC2? HIPAA? Any audit requirements?
  6. Team size: 1 person vs 50 devs changes the complexity budget

Pipeline Patterns

GitHub Actions β€” Standard Web App

name: CI/CD Pipeline

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

env:
  REGISTRY: ghcr.io
  IMAGE_NAME: ${{ github.repository }}

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
          cache: 'npm'
      - run: npm ci
      - run: npm test
      - run: npm run lint
      # Security audit
      - run: npm audit --audit-level=high
      
  build-and-push:
    needs: test
    if: github.ref == 'refs/heads/main'
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
    steps:
      - uses: actions/checkout@v4
      - uses: docker/login-action@v3
        with:
          registry: ${{ env.REGISTRY }}
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}
      - uses: docker/build-push-action@v5
        with:
          context: .
          push: true
          tags: |
            ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
            ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
          cache-from: type=gha
          cache-to: type=gha,mode=max

  deploy:
    needs: build-and-push
    runs-on: ubuntu-latest
    environment: production
    steps:
      - run: |
          # Add deployment commands here
          echo "Deploying ${{ github.sha }} to production"

Docker β€” Multi-stage Production Build

# Stage 1: Build
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --ignore-scripts
COPY . .
RUN npm run build

# Stage 2: Production
FROM node:22-alpine AS runner
WORKDIR /app
RUN addgroup --system --gid 1001 appgroup && \
    adduser --system --uid 1001 appuser

COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./

USER appuser
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s \
  CMD wget -qO- http://localhost:3000/health || exit 1

CMD ["node", "dist/server.js"]

Deployment Strategy Decision Tree

Is zero-downtime required?
β”œβ”€β”€ Yes
β”‚   β”œβ”€β”€ Have load balancer/ingress?
β”‚   β”‚   β”œβ”€β”€ Yes β†’ Blue/Green or Rolling Update
β”‚   β”‚   └── No β†’ Canary with traffic splitting
β”‚   └── Database migrations?
β”‚       β”œβ”€β”€ Yes β†’ Backward-compatible migrations first
β”‚       └── No β†’ Simple rolling update
└── No
    β”œβ”€β”€ Is it a dev/staging env?
    β”‚   └── Yes β†’ Direct push, recreate containers
    └── No β†’ Why not? Add zero-downtime.

Common Anti-Patterns to Avoid

Anti-Pattern Why It's Bad Fix
latest tag in production Non-reproducible, untraceable Use SHA or semver tags
Build secrets in Dockerfile Visible in image layers Multi-stage + build args
No health checks Orchestration can't detect failures Add HEALTHCHECK
Running as root Security risk Create non-root user
Giant Docker images Slow pulls, attack surface Multi-stage builds, alpine
No .dockerignore Slow builds, leaked secrets Create comprehensive .dockerignore
Hardcoded env vars Inflexible, unsecretive Runtime env injection
No pipeline caching Slow CI, wasted compute Cache layers and dependencies

Infrastructure Checklist

For any production deployment, verify:

  • Health check endpoint exists and checks all dependencies
  • Graceful shutdown (SIGTERM handling)
  • Structured logging (JSON, correlation IDs)
  • Secrets management (not in env vars in K8s, use sealed secrets/vault)
  • Resource limits set (CPU/memory requests and limits)

…

Pertanyaan umum

Apa itu pipeline CI/CD?

Ini adalah serangkaian langkah otomatis yang mengambil kode Anda, mengujinya, dan menyiapkannya untuk dirilis ke pengguna, sehingga prosesnya lebih cepat dan andal.

Apa itu Docker?

Docker adalah tool yang mengemas aplikasi Anda beserta semua kebutuhannya untuk berjalan ke dalam satu unit standar yang disebut kontainer, sehingga aplikasi bisa berjalan di mana saja.

Apa itu strategi deployment?

Ini adalah berbagai metode untuk merilis aplikasi ke pengguna, seperti 'blue/green' atau 'rolling update', untuk meminimalkan gangguan dan risiko.

Detail

Deskripsi asli dari pembuat

Design and implement CI/CD pipelines, Docker configurations, deployment strategies, and infrastructure automation with production-ready patterns.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4451
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa