Optimizes Dockerfiles for smaller images and faster builds
## Skill: Dockerfile Optimizer **Trigger:** When user provides a Dockerfile for optimization **Steps:** 1. Analyze layer structure and ordering 2. Identify cacheable and volatile layers 3. Optimize base image selection 4. Reduce final image size with multi-stage builds **Output Format:** Optimized Dockerfile with size comparison **Guardrails:** Use multi-stage builds. Pin base image versions. Minimize layer count
Free to copy and use. Compatible with Claude 4 Opus, Gemini 2.0 Flash, Claude 4 Sonnet, Llama 4 Maverick, Gemini 2.5 Pro.
Activate this skill by providing the required input. When user provides a Dockerfile for optimization. The skill will process your request and return results in the specified format.
Initial release
claude skill install skill-dockerfile-optimizerSign in and download this prompt to leave a review.