.claude/skills/docker-specialist/SKILL.md
Docker containerization, Dockerfile writing and optimization, multi-stage builds, and Docker Compose configuration for development and production. Use when asked to write a Dockerfile, optimize an existing Dockerfile, reduce image size, set up Docker Compose for a multi-service app, add health checks to a container, secure a container configuration, debug a Docker build error, or containerize an application before deploying it.
npx skillsauth add daryllundy/claude-skills-library docker-specialistInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
write a Dockerfile, optimize my Docker image, Docker Compose.Glob('**/Dockerfile*', '**/docker-compose*.yml', '**/.dockerignore') — find existing Docker filesRead any existing Dockerfile to understand current base image, layers, and patterns in usepython:3.x-slim (not full python:3.x)node:lx-alpine for prod, node:lx for devFROM scratch or gcr.io/distroless/staticdebian:bookworm-slim over ubuntu for sizeuseradd or use USER directive.dockerignore is missing: create it before writing the DockerfileIdentify: language, build tool, runtime dependencies, config/secrets approach, port(s) exposed, and health check endpoint if any.
Exclude: node_modules/, .git/, *.log, .env, dist/ (if built inside container), test files, local config.
Layer order for cache efficiency: base image → system dependencies → copy dependency manifests → install dependencies → copy source → build → final stage (if multi-stage) → USER → EXPOSE → HEALTHCHECK → CMD/ENTRYPOINT.
Include: named volumes for persistence, environment variable references (not hardcoded values), health check depends_on, named networks.
docker build -t test-image .
docker run --rm test-image echo "build ok"
# Check image size:
docker images test-image
# Check for root process:
docker run --rm test-image whoami # should NOT be root
Dockerfile (and docker-compose.yml + .dockerignore if applicable)--privileged flag without explicit justificationlatest tag for base images in production Dockerfiles - pin to a specific versionsudo in a containerUser says: "Write a production Dockerfile for my Node.js Express app" Actions:
User says: "My Docker image is 2GB, help me reduce the size" Actions:
Build fails: "COPY failed: file not found"
Cause: File path in COPY instruction doesn't match actual file location, or .dockerignore is excluding the file
Fix: Check build context with docker build --no-cache . and verify path; review .dockerignore
Container exits immediately
Cause: CMD/ENTRYPOINT produces an error, or process runs in background (daemon mode)
Fix: Run docker run --rm -it image-name /bin/sh to inspect; ensure CMD runs process in foreground (no & or daemon flags)
"permission denied" errors at runtime
Cause: Files owned by root, container running as non-root user
Fix: Add chown in Dockerfile: COPY --chown=appuser:appuser . .
references/legacy-agent.md: Dockerfile patterns by language, security hardening checklist, Docker Compose patterns, container networking, volume managementtools
Zapier workflow automation design, Zap configuration, and SaaS integration planning across 6000+ apps. Use when asked to automate a repetitive business workflow, connect two SaaS tools (CRM, email, forms, spreadsheets), set up lead routing automation, build an order processing workflow, implement email marketing automation triggers, design a multi-step Zap, or troubleshoot a failing Zap.
development
Modern, accessible, and conversion-optimized web design direction, UX guidance, and design system development. Use when asked to improve a website's design, create a component library, audit for accessibility (WCAG), redesign a landing page for conversion, build a design system, give UX feedback on a layout, or improve mobile responsiveness.
development
Input validation, business rule implementation, and data integrity enforcement in application code. Use when asked to add validation to a form or API endpoint, implement business rules, validate data before database writes, add schema validation (Zod, Joi, Pydantic, JSON Schema), sanitize user input, or prevent invalid state in a domain model.
development
TikTok-specific short-form video strategy, scripting, and platform-native growth optimization. Use when asked to grow a TikTok account, develop a TikTok content strategy, write video scripts for TikTok, identify trending sounds or formats, plan a TikTok creator collaboration, or audit a TikTok profile for growth opportunities.