containers

containers is a skill for Claude Code, Codex from williamzujkowski/standards. It costs 5 tokens per session (1,796 once invoked), scanned C, original, MIT.

A guide to packaging and running software in containers, which bundle an application with the files it needs to run. It covers small base images, multi-stage builds, non-root users, and image versioning.

In plain words
What is it for?
Use it to write Dockerfiles, separate build and runtime stages, run applications without root access, set resource limits, and scan images for vulnerabilities.
Why use it?
It helps reduce oversized images, unnecessary security exposure, and differences between development and production environments. It also discourages mutable or unpinned images that can change unexpectedly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write Dockerfiles, separate build and runtime stages, run applications without root access, set resource limits, and scan images for vulnerabilities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/williamzujkowski/standards/containers
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add williamzujkowski/standards --skill containers
Clone the repo
git clone --depth 1 https://github.com/williamzujkowski/standards

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for containers

README.md
[![agentmods](https://agentmods.dev/badge/skills/williamzujkowski/standards/containers/github.svg)](https://agentmods.dev/skills/williamzujkowski/standards/containers)
Your own site
<a href="https://agentmods.dev/skills/williamzujkowski/standards/containers"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/containers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for containers

Your own site · 80×15
<a href="https://agentmods.dev/skills/williamzujkowski/standards/containers"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/containers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,796 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00005 $0.01796
Opus 5.5 $0.00002 $0.00718
Sonnet 5.5 $0.00001 $0.00359
Haiku 4.5 $0.00001 $0.00180

Measured yesterday against content hash 4907bb6ad3cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-30, from the pricing page.

Security

Grade C, and why

containers scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

&& rm -rf /var/cache/apk/*

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
skills/cloud-native/containers/SKILL.md · 275 lines

How it starts

The opening of the file, as written. The whole thing — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Containers

Level 1: Quick Start (5 min)

Core Principles:

  • Immutable infrastructure - containers are disposable, not pets
  • Single responsibility - one process per container
  • Minimal base images - reduce attack surface and size

Quick Reference:

FROM alpine:3.18
WORKDIR /app
COPY --chown=nobody:nobody . .
USER nobody
EXPOSE 8080
CMD ["./app"]

Essential Checklist:

  • Use official minimal base images (alpine, distroless)
  • Run containers as non-root user
  • Pin specific image versions (no :latest)
  • Scan images for vulnerabilities
  • Set resource limits (CPU, memory)

Common Pitfalls: See Common Pitfalls

Level 2: Implementation (30 min)

Multi-Stage Builds

Reduce final image size and eliminate build dependencies:

# Build stage
FROM golang:1.21-alpine AS builder
WORKDIR /build
COPY go.* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o app

# Runtime stage
FROM gcr.io/distroless/static-debian11
COPY --from=builder /build/app /app
USER nonroot:nonroot
ENTRYPOINT ["/app"]

Image Optimization

Layer Caching:

  • Order Dockerfile commands from least to most frequently changing
  • Copy dependency manifests before source code
  • Use .dockerignore to exclude unnecessary files

Size Reduction:

  • Use distroless or alpine base images
  • Clean package manager caches in same RUN command
  • Combine commands to reduce layers
RUN apk add --no-cache ca-certificates \
    && rm -rf /var/cache/apk/*

Security Best Practices

Non-Root Execution:

RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser

Read-Only Filesystem:

FROM alpine:3.18
RUN mkdir -p /tmp /app && chown -R nobody:nobody /tmp /app
USER nobody
WORKDIR /app
# Mount tmpfs for writable dirs

Vulnerability Scanning:

# Trivy scan
trivy image --severity HIGH,CRITICAL myapp:latest

# Snyk scan
snyk container test myapp:latest

Read the full file on GitHub · 275 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 275 lines · 5 tokens per session scan C 4907bb6ad3cc

Subscribe to this mod's changes

containers is a skill published in the GitHub repository williamzujkowski/standards (18 stars, last pushed 1mo ago), licensed MIT. It adds 5 tokens to every session and 1,796 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

Other skills, from other repositories

ak-cloud-deploy

Deploy an Agent Kernel project to AWS, Azure, or GCP using Terraform modules, or to any Kubernetes cluster (on-prem, baremetal, EKS) using the official Helm chart. Supports serverless and containerized modes for all three clouds. AWS supports execution modes (restsync, restasync, async, stream), queue-based scalable…

yaalalabs/agent-kernel · 157 tokens

kubernetes-expert

Expert-level Kubernetes cluster management, deployment strategies, networking, and production operations. Use when the user mentions containers, orchestration, devops, or cloud native, or when the task involves Kubernetes Architecture, Pods, Deployments, or Services.

personamanagmentlayer/pcl · 53 tokens

k8s-generator

Generate production-ready Kubernetes manifests with Deployments, Services, ConfigMaps, and Ingress.

glincker/claude-code-marketplace · 22 tokens

image

Builds, pushes, and manages container images on Control Plane. Use when the user asks about Docker build, remote build, image registry, tags, digests, Dockerfile, buildpacks, pull secrets, ECR/GCR, or image permissions.

controlplane-com/ai-plugin · 53 tokens

migration-patterns

Migrate workloads from Kubernetes, Docker Compose, or Helm to Control Plane. Use when the user asks to convert k8s manifests, a docker-compose.yml, or Helm charts, or to move an existing app onto the platform.

controlplane-com/ai-plugin · 50 tokens

k8s-operator

Manages Control Plane resources as Kubernetes CRDs. Use when the user asks about the Kubernetes operator, kubectl apply for Control Plane, CRDs, ArgoCD GitOps from a cluster, or exporting resources as K8s manifests.

controlplane-com/ai-plugin · 54 tokens