14 skills · 9 categories

Claude Code skills for Docker

Docker skills for small, cache-friendly, non-root images, Compose setups for local development, container security scanning and dev containers that sandbox Claude Code itself.

Start with these

  1. 1

    Dockerfile Optimization

    Smaller images, cached builds, no root, no leaks

    Claude baselines image size and warm-build time, runs a bundled audit script, then restructures the Dockerfile into dependency, build and runtime stages with lockfiles copied before source. It picks a distroless or slim base, moves build secrets into BuildKit mounts, drops root, and reports before-and-after size, build time and CVE counts in a table.

  2. 2

    Docker Compose

    One command to a working local stack

    Claude builds compose.yaml files where the app waits for a healthy database instead of sleeping, migrations run as a one-shot service, ports bind to localhost, and optional tools sit behind profiles. It separates .env interpolation from container env, sets up Compose Watch for hot reload, and validates everything with docker compose config and up --wait.

  3. 3

    Container Security

    Minimal images, non-root pods, scanned on every build

    Claude fixes container risk at the source: it swaps bloated base images for pinned distroless or slim ones, moves build secrets to BuildKit mounts, runs as a numeric non-root user, and applies a restricted securityContext with dropped capabilities and a read-only root filesystem. Trivy and hadolint gate CI, images get signed, and every change is measured against a CVE baseline.

All 14 Docker skills

Grouped by category. Each card opens the full playbook, example prompts and install commands.

DevOps & SRE 4

No. 153

Dockerfile Optimization

Smaller images, cached builds, no root, no leaks

Claude baselines image size and warm-build time, runs a bundled audit script, then restructures the Dockerfile into dependency, build and runtime stages with lockfiles copied before source. It picks a distroless or slim base, moves build secrets into BuildKit mounts, drops root, and reports before-and-after size, build time and CVE counts in a table.

dockerfile-optimization 232 lines · 2 files
No. 152

Docker Compose

One command to a working local stack

Claude builds compose.yaml files where the app waits for a healthy database instead of sleeping, migrations run as a one-shot service, ports bind to localhost, and optional tools sit behind profiles. It separates .env interpolation from container env, sets up Compose Watch for hot reload, and validates everything with docker compose config and up --wait.

docker-compose 226 lines
★ No. 154

GitHub Actions

Faster CI, read-only tokens, zero stored cloud keys

Claude rewrites workflows so irrelevant changes skip CI, superseded runs cancel, and package and Docker caches make the warm path fast. Tokens default to read-only, deploys use OIDC with subject-restricted trust policies and protected environments, and untrusted PR text never reaches a shell. Results are linted with actionlint and zizmor and reported with before-and-after timings.

github-actions 227 lines · 2 files
No. 150

CI Pipeline Speed

Shorten the critical path, prove it with medians

Claude baselines several recent runs with a bundled analyzer that finds the critical path, queue delay and slowest steps, then works on that path only: removing duplicate work, adding correctly keyed caches, sharding tests by timing data, and running affected-only builds in monorepos. Results are reported as before-and-after medians with test counts unchanged.

ci-pipeline-speed 171 lines · 2 files

Install

Every Docker skill in one command

Installs into ~/.claude/skills/. Add --project after -- to install into the current repository.

curl -fsSL https://claudeskills.page/install.sh | sh -s -- dockerfile-optimization docker-compose container-security devcontainer-sandboxing vps-deployment testcontainers n8n-workflows github-actions bun-runtime visual-regression ci-pipeline-speed aws-lambda streamlit-apps jvm-tuning

Docker skills FAQ

What is the best Claude Code skill for Docker?

Start with Dockerfile Optimization: Smaller images, cached builds, no root, no leaks. Then add Docker Compose and Container Security, which cover the next most common Docker requests.

How do I install all 14 Docker skills at once?

Pass every name to the installer in one command: curl -fsSL https://claudeskills.page/install.sh | sh -s -- dockerfile-optimization docker-compose container-security devcontainer-sandboxing vps-deployment testcontainers n8n-workflows github-actions bun-runtime visual-regression ci-pipeline-speed aws-lambda streamlit-apps jvm-tuning. Add --project to install them into the current repository's .claude/skills/ folder so your team gets them too.

Do these Docker skills work outside Claude Code?

Yes. Each skill uses only the portable Agent Skills frontmatter, so the same folder works on claude.ai, through the Claude API and in the Agent SDK. Skills that run bundled scripts need an environment with code execution.

esc