TheDecipherist

Optimize Docker — DevOps skill for Claude Code

DevOps community

Analyze and optimize Docker builds for production.

How to install Optimize Docker

Installs to ~/.claude/commands/thedecipherist-claude-code-mastery-project-starter-kit-optimize-docker.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/TheDecipherist/claude-code-mastery-project-starter-kit/HEAD/.claude/commands/optimize-docker.md -o ~/.claude/commands/thedecipherist-claude-code-mastery-project-starter-kit-optimize-docker.md

Restart Claude Code, or start a new session, for it to be picked up.

What Optimize Docker does


description: Analyze and optimize Docker builds for production scope: project argument-hint: [dockerfile-path] allowed-tools: Read, Write, Edit, Grep, Glob, Bash

Optimize Docker Build

Analyze and optimize the Docker setup for: **$ARGUMENTS**

If no Dockerfile path provided, search for Dockerfiles in the project root.

Step 0 — Auto-Branch (if on main)

Before modifying any files, check the current branch:

git branch --show-current

**Default behavior** (`auto_branch =

Alternatives in DevOps

  • Docker 71.9k ★
  • Vercel Deploy — Deploy applications and websites to Vercel with preview or production options 14.6k ★
  • Skill Claw — OpenClaw instance administration — manage hosts across macOS, Ubuntu/Debian, Docker, OCI, and Proxmox 2.8k ★

Full documentation available on GitHub

View Source Repository