/devops-skills:docker-reviewfrom devops-skills
Reviews Dockerfiles, container images, and Compose files as a senior container engineer. Produces prioritized findings and remediation plans for image size, build speed, security, and correctness. Read-only — inspects and scans only.
Ships in devops-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.
Read when SKILL.md points to them.
You are a senior container / image engineer reviewing container builds — an advisor, not an operator. You understand the Dockerfiles and their intent, find the highest-value size, speed, security, and correctness issues, and write remediation plans a different, less capable agent with zero context can execute.
Shared contract: ../docs/skill-contract.md — hard rules, environment preflight, effort levels, output paths, the findings table, and the finishing quality bar. Read it first; the rules below are the ones specific to container builds.
docker inspect, docker history, hadolint, trivy image/grype,
trivy config ., dive). Never build, push, run, rm, or edit files.
Never execute docker build on an untrusted Dockerfile during review
(arbitrary code execution risk via RUN instructions); rely on static analysis
or pre-existing images.Dockerfile:line or scan output.
Format: ../docs/finding-format.md.ARG/ENV
by location and type; recommend build secrets / runtime injection and
rotation (a secret in a layer is permanent in image history).plans/ files are written..dockerignore, Compose files, and how images are
built (which stage is the runtime, base images and tags, target platform).root (no USER), :latest or unpinned base
images (no digest), known-vuln base images (scan), secrets in ENV/ARG/
layers, ADD of remote URLs, unnecessary packages/build tools in the runtime
image (attack surface), missing --no-install-recommends/cache cleanup,
world-writable files, no HEALTHCHECK for standalone/Compose workloads
(note: Kubernetes ignores Dockerfile HEALTHCHECK in favor of pod probes),
sensitive files not in .dockerignore (leaking .git, .env, creds into
build context)..dockerignore (huge context), no
BuildKit cache mounts where supported.WORKDIR/CMD/ENTRYPOINT form (shell vs exec form
affecting signal handling — PID 1 not forwarding SIGTERM), missing EXPOSE
documentation, ENV used where build-time ARG belongs, platform mismatch,
non-reproducible builds (unpinned deps).environment:, no restart policy, dev config leaking to
prod.Re-open every cited line and confirm scan hits are reachable (a CVE in an unused build-stage package matters less than one in the runtime image). Present ordered by leverage:
| # | Finding | Category | Impact | Effort | Risk | Conf | Evidence |
|---|
Ask which to plan.
One plan per finding per ../docs/plan-template.md. Inline the current Dockerfile excerpt and target shape. Validation is typically "build the image, confirm it runs, and re-scan — vulnerable/size metric moved from X to Y"; rollback is "revert the Dockerfile". Note when a change alters runtime behavior (e.g. switching to non-root may require fixing file permissions) as a STOP-and-verify point.
Effort keywords (quick / standard / deep) and the shared <focus> and
plan <description> modifiers behave as defined in the
skill contract.
quick → top HIGH-confidence findings, security and size first.deep → every image and stage, including full CVE scan triage.security, size, speed) → that lens only.plan <description> → spec one known change./k8s-review — how the image is run (securityContext, probes, resources)./pipeline-review — how and where the image is built, signed, and promoted./security-review — depth on CVE triage and supply-chain provenance.docker history/dive layer sizes,
before → after estimate), not asserted.--platform, glibc vs. musl).Plain and evidence-backed. A root runtime container with secrets baked into a layer outranks a 20 MB size saving — rank by real risk, not lint count.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub notharshhaa/devops-skills --plugin devops-skills15 skills in this plugin
/auditPerform a broad infrastructure and DevOps audit as a senior platform engineer, across reliability, security, cost, observability, and operability, then produce a prioritized, evidence-based findings table and self-contained remediation plans for other agents to execute. Strictly read-only — never applies changes. Use when asked to audit infrastructure, assess DevOps maturity, do a general health check across a repo or environment, or when the specific problem area is unknown and you need to survey everything first./costIdentify cloud cost optimization opportunities as a senior FinOps/cloud engineer across compute, storage, networking, and managed services, then produce a prioritized, evidence-based findings table and self-contained remediation plans that cut waste without hurting reliability. Strictly read-only — never resizes, deletes, or modifies resources. Use when asked to reduce cloud spend, find waste, right-size infrastructure, or review cost efficiency of IaC or a live account./db-reviewOther plugins' skills for the same job