What problem does it solve? Writing efficient and secure container configurations from scratch is error-prone: oversized images, missing non-root users, poor layer caching, and hardcoded secrets are common mistakes. This Skill provides proven Dockerfile and Docker Compose patterns so containers are built correctly the first time. ## Core Features & Use Cases - Multi-Stage Dockerfile Templates: Ready-to-use Go multi-stage builds that separate compilation from the runtime image, producing minimal final images. - Docker Compose Setups: Service definitions with health checks, dependency ordering (depends_on with conditions), volumes, and environment configuration for stacks like app + PostgreSQL. - Image Optimization & Security Guidance: Layer caching order, base image size comparison (scratch, alpine, distroless), .dockerignore templates, and security rules such as non-root execution and no build-arg secrets. - Use Case: When containerizing a Go API with a PostgreSQL database, use this Skill to generate a multi-stage Dockerfile, a Compose file with a healthy db dependency, and a .dockerignore, then verify against the included checklist. ## Quick Start Ask the agent to create a multi-stage Dockerfile and Docker Compose setup for your Go application with a PostgreSQL database using the docker skill.