/infra:dockerfrom infra
Use when writing or changing a Dockerfile, .dockerignore or compose file, containerizing a service, building, tagging or promoting an image, or fixing a slow, cache-busting, oversized, root or leaking image build. Multi-stage dev/test/prod builds, minimal non-root final images, base images pinned by tag and digest, BuildKit cache and secret mounts, health checks, hadolint, image scanning.
Ships in infra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Category: code scaffolding and templates. One image per deployable, built once and promoted. The opinions below are defaults; deviate only with a reason in a comment.
dev, test, prod) in that one file, never Dockerfile.dev copies. Monorepo: build from the workspace root with a .dockerignore allowlist (* then !path). Detail: BUILD.md.CGO_ENABLED=0) ships on a minimal base (scratch or distroless static); anything else on a slim base.USER 10001), set before CMD. COPY --chown for files the app writes.FROM python:3.14-slim@sha256:...); the update bot (Renovate or Dependabot) bumps both. Never latest..dockerignore is mandatory: .git, env files, build output, local caches.RUN --mount=type=secret, never ARG, ENV or COPY: they stay in the image history. Where the value comes from: secrets-handling.CMD/ENTRYPOINT (["app"]) so signals reach PID 1. One process per container.HEALTHCHECK; the orchestrator's probe wins where there is one. Runtime detail: RUNTIME.md.releases).source, revision), hadolint as a make lint step, an image scan in CI, multi-arch only on release (the pipeline that builds once and promotes: ci-cd). Detail: SUPPLY_CHAIN.md.compose.yaml plus override files.ARG before the first FROM is in scope for FROM lines only; redeclare ARG name inside the stage to use it.apt-get update, apt-get install --no-install-recommends and the rm -rf /var/lib/apt/lists/* cleanup go in one RUN, or the cleanup saves nothing and a stale index gets cached.COPY . . before the install step invalidates the dependency cache on every source edit.COPY as root leaves files root-owned: use COPY --chown=10001:10001..dockerignore makes every build slow and can bake in .env.docker compose down --volumes before its worktree goes. BuildKit's cache is the builder's and already shared, so never export a build cache into the worktree (--cache-to type=local,dest=./...): host-hygiene, Shared stores.RUN --mount=type=secret is absent from the image; the same value in ENV or ARG is not.Load only what the task needs.
go-development.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub giocaizzi/harness --plugin infra3 skills in this plugin
/kubernetesUse when writing or changing Kubernetes manifests, a Helm chart or values file, a kustomize overlay, a CRD, a Role or ServiceAccount, a controller or operator (kubebuilder, controller-runtime), or deploying or rolling out a service to a cluster, including pods that crash or get OOMKilled. Workload defaults (requests and limits, probes, non-root, PodDisruptionBudget), least-privilege RBAC, envtest./terraformUse when writing or changing Terraform or OpenTofu: .tf, .tfvars or .tftest.hcl files, modules, state, providers and the lockfile, importing or renaming a resource, or a plan or apply step in CI. Layout (modules, envs, bootstrap), remote state and locking, moved blocks, module versioning, provider pinning, drift, mock-provider tests. Not for Dockerfiles or Kubernetes manifests.