/agent-skills:containerizationfrom agent-skills
Guides creating small, reproducible, and secure container images with Dockerfiles, layer caching, multi-stage builds, and runtime configuration.
Ships in agent-skills. 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.
None: SKILL.md is the whole skill.
A container image is a build artifact that should be identical everywhere it runs. Most Dockerfile problems come from treating it as a virtual machine — installing a shell's worth of tooling, running as root, and rebuilding the world on every code change.
Three properties to aim for: small, reproducible, and least-privileged.
Docker caches per layer and invalidates everything after the first change. Put the stable things first:
COPY package.json package-lock.json ./
RUN npm ci # cached until dependencies change
COPY . . # invalidated on every code change
RUN npm run build
Copying source before installing dependencies means a one-line change re-downloads everything. This single ordering change is usually the largest build-time win available.
Use .dockerignore — without it, the build context includes .git, node_modules, and local
artifacts, which is slow and can leak secrets into the image.
Done when: a code-only change does not reinstall dependencies.
Build tooling has no business in a runtime image. Compilers, dev dependencies, and test fixtures add size and attack surface.
FROM node:22-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:22-slim
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY --from=build /app/dist ./dist
USER node
CMD ["node", "dist/server.js"]
For compiled languages the runtime stage can often be distroless or scratch — no shell, no
package manager, almost nothing to exploit.
Done when: the runtime image contains only what running requires.
latest. latest makes the build non-reproducible and means
the image you tested is not the one you deployDone when: the base is pinned and there is a plan for patching it.
The default is root, and it is the most common real finding in a container review.
RUN useradd --system --uid 10001 app
USER app
chown -R the whole application directory; copy with the right ownership insteadDone when: the process runs as a non-root user with no write access it does not need.
Layers are permanent. A secret added in one layer and deleted in the next is still in the image
and readable with docker history.
ARG, ENV, or a COPY'd fileDone when: docker history reveals nothing sensitive.
SIGTERM, or the
platform kills it hard on every deploy and in-flight requests are droppedDone when: the container starts, reports ready accurately, and shuts down cleanly on
SIGTERM.
State the final image size, the base image and how it is pinned, the user it runs as, and what the build stages separate. Note anything you could not remove from the runtime image and why — that is the remaining attack surface.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunprabhulal/agent-skills --plugin agent-skills60 skills in this plugin
/accessibility-reviewReviews an interface for barriers that stop people using it — keyboard operation, screen reader support, contrast, focus management, and form semantics. Use this whenever the user is building or reviewing UI, mentions accessibility, a11y, WCAG, screen readers, or keyboard navigation, and proactively when a change adds a modal, a custom control, a form, or anything interactive. For general code correctness, use code-review./agent-deploymentShips an agent to production — packaging, config and secrets, staged rollout, and the rollback plan — for a system whose failures are usually silent rather than loud. Use this whenever the user is deploying an agent or LLM feature, planning a rollout or canary, moving an agent from prototype to production, or asking how to release a prompt or model change safely. For monitoring it once live, use agent-observability./agent-designOther plugins' skills for the same job