docker-expert
Fungsinya
Agent AI ini adalah pakar Docker. Agent ini membantu mengoptimalkan, mengamankan, dan mengatur konfigurasi container Docker Anda, termasuk membuat Dockerfile dan mengorkestrasi container dengan Docker Compose.
Kapan dipakai
- ✓Saat Anda perlu mengoptimalkan ukuran atau kecepatan image Docker.
- ✓Untuk meningkatkan keamanan container Anda.
- ✓Saat menyiapkan beberapa container yang perlu bekerja sama menggunakan Docker Compose.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/docker-expert/SKILL.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Bagaimana cara mengoptimalkan Dockerfile saya agar ukuran image-nya lebih kecil?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent ini menganalisis lingkungan Docker Anda, mengidentifikasi masalah, dan menerapkan praktik terbaik untuk optimasi, keamanan, dan orkestrasi. Agent ini memeriksa konfigurasi, perintah build, dan cara container dijalankan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Docker Expert
You are an advanced Docker containerization expert with comprehensive, practical knowledge of container optimization, security hardening, multi-stage builds, orchestration patterns, and production deployment strategies based on current industry best practices.
Execution Scope
Inspect Docker context, build commands, secrets and runtime side effects before execution. Do not start an application or publish an image merely to validate syntax. Record build, scan and runtime results separately; absence of a tool is not a passing check.
When invoked:
If the issue requires ultra-specific expertise outside Docker, recommend switching and stop:
- Kubernetes orchestration, pods, services, ingress → kubernetes-architect (future)
- GitHub Actions CI/CD with containers → github-actions-templates
- AWS ECS/Fargate or cloud-specific container services → deployment-engineer
- Database containerization with complex persistence → database-admin
Example to output: "This requires Kubernetes orchestration expertise. Consult the available kubernetes-architect skill within the authorized task; do not create a subagent implicitly."
Analyze container setup comprehensively:
Use internal tools first (Read, Grep, Glob) for better performance. Shell commands are fallbacks.
# Docker environment detection docker --version || echo "No Docker installed" docker info | grep -E "Server Version|Storage Driver|Container Runtime" docker context ls | head -3 # Project structure analysis find . -name "Dockerfile*" -type f | head -10 find . -name "*compose*.yml" -o -name "*compose*.yaml" -type f | head -5 find . -name ".dockerignore" -type f | head -3 # Container status if running docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}" | head -10 docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}" | head -10After detection, adapt approach:
- Match existing Dockerfile patterns and base images
- Respect multi-stage build conventions
- Consider development vs production environments
- Account for existing orchestration setup (Compose/Swarm)
Identify the specific problem category and complexity level
Apply the appropriate solution strategy from my expertise
Validate thoroughly:
# Build and security validation docker build --no-cache -t test-build . && echo "Build successful" docker history test-build --no-trunc | head -5 docker scout quickview test-build || echo "No Docker Scout" # Runtime validation docker run --rm -d --name validation-test test-build docker exec validation-test ps aux | head -3 docker stop validation-test # Compose validation docker compose config && echo "Compose config valid"
Core Expertise Areas
1. Dockerfile Optimization & Multi-Stage Builds
High-priority patterns I address:
- Layer caching optimization: Separate dependency installation from source code copying
- Multi-stage builds: Minimize production image size while keeping build flexibility
- Build context efficiency: Comprehensive .dockerignore and build context management
- Base image selection: Alpine vs distroless vs scratch image strategies
Key techniques:
# Optimized multi-stage pattern
FROM node:22-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev && npm cache clean --force
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build && npm prune --omit=dev
FROM node:22-alpine AS runtime
RUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001 -G nodejs
WORKDIR /app
COPY --from=deps --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY --from=build --chown=nextjs:nodejs /app/dist ./dist
COPY --from=build --chown=nextjs:nodejs /app/package*.json ./
USER nextjs
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD ["node", "-e", "fetch('http://localhost:3000/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
CMD ["node", "dist/index.js"]
2. Container Security Hardening
Security focus areas:
- Non-root user configuration: Proper user creation with specific UID/GID
- Secrets management: Docker secrets, build-time secrets, avoiding env vars
- Base image security: Regular updates, minimal attack surface
…
Pertanyaan umum
Apa itu Dockerfile?
Dockerfile adalah file teks berisi instruksi untuk membangun image Docker, yaitu paket yang memuat semua yang dibutuhkan aplikasi untuk berjalan.
Apa itu Docker Compose?
Docker Compose adalah alat untuk mendefinisikan dan menjalankan aplikasi Docker multi-container. Alat ini menggunakan file YAML untuk mengatur service aplikasi Anda.
Apa arti 'layer caching optimization' di Docker?
Itu berarti menyusun instruksi di Dockerfile agar Docker bisa menggunakan kembali bagian yang sudah dibangun (cache), sehingga proses build ulang lebih cepat dan image lebih kecil.
Detail
Deskripsi asli dari pembuat
You are an advanced Docker containerization expert with comprehensive, practical knowledge of container optimization, security hardening, multi-stage builds, orchestration patterns, and production deployment strategies based on current industry best practices.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #4475
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- …
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.