Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create optimized, secure, production-ready Dockerfiles based on user requirements and application context.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 82% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 75% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 56% | 0% |
| case-04 | ✓→✗ | ▼ Worse | -47% | 0% |
| case-08 | ✓→✗ | ▼ Worse | -31% | 0% |
Run this skill when asked to create or improve a Dockerfile for an application.
Ask the user for all details about their Docker/container requirements. Cover at minimum:
Also scan the current working directory for existing dependency files to infer requirements automatically:
bashls
Read any relevant files found (e.g. package.json, requirements.txt, pom.xml, go.mod, Gemfile, Cargo.toml) before composing the Dockerfile.
Write the Dockerfile to the working directory following these mandatory practices:
RUN layer they are created.alpine, slim, distroless) unless the user specifies otherwise.latest..env files, or secrets into the image..dockerignore note if one is missing — advise the user to create it.COPY instead of ADD unless extracting archives.WORKDIR explicitly.CMD in exec form (["executable", "arg"]), not shell form, for proper signal handling.EXPOSE to document the port (informational only).After writing the file, provide a brief explanation of:
.dockerignore, scanning with docker scout or trivy).Other measured skills in the registry, with their headline benchmark lift.