Dockerfile Gen is a skill that analyzes a project repository and produces production-ready Docker configuration files without manual authoring. It scans the project structure to detect the framework in use — Node.js, Next.js, Python, Go, Rust, or Java — and uses that context to generate a Dockerfile tailored to the runtime’s conventions.
The generated Dockerfiles use multi-stage build patterns, such as a builder stage compiled down to a Scratch or Alpine final image, to keep production images small. The skill reads manifest files and .env files to extract environment variables, then outputs ARG placeholders and environment templates so nothing sensitive is hardcoded. Port definitions found in the source code are mapped to accurate EXPOSE statements and port settings.
Beyond the Dockerfile itself, the skill generates a docker-compose.yml that includes health checks and persistent volumes for any databases detected in the project. It also produces a .dockerignore file to keep the build context lean.
This skill is appropriate when an agent needs to containerize a recognized web project automatically, following practices such as non-root users, health checks, and minimal image layers. It is not a general-purpose infrastructure tool and does not cover Kubernetes manifests, Helm charts, or cloud-provider deployment configurations. No environment variables need to be configured to use it.