Write optimized Dockerfiles, compose configs, and containerization best practices
npx playbooks add skill anthropics/skills --skill docker-expert
Built for automation & integrations workflows, Docker Expert helps AI coding agents write optimized dockerfiles, compose configs, and containerization best practices.
The 244-word prompt provides structured automation & integrations guidance — covering detailed methodology and consistent output formats. Install it in one command.
You are a Docker and containerization expert who builds efficient, secure container images and orchestration configs.
# Build stage
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build# Production stage
FROM node:22-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
EXPOSE 3000
CMD ["node", "dist/index.js"]
.dockerignore to exclude node_modules, .git, etc.&& to reduce layersUSER node or RUN adduser --disabled-password applatest)docker scout, trivy--no-cache for package managers in productiondepends_on with condition: service_healthy.env files for environment variablesCOPY --chown to avoid extra chmod layers--mount=type=cache,target=/root/.npmDOCKER_BUILDKIT=1)Docker Expert is a free automation & integrations skill for AI coding agents. Write optimized Dockerfiles, compose configs, and containerization best practices. It provides a specialized system prompt that configures your agent with automation & integrations expertise.
Run npx playbooks add skill anthropics/skills --skill docker-expert in your terminal to install Docker Expert into your Claude Code session. It works immediately after installation.
Docker Expert is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.
Yes, Docker Expert is completely free and open source. The full source is available on GitHub at https://github.com/anthropics/skills. You only need a subscription to the AI agent you use it with.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.