docker-workflows

docker-workflows is a skill for Claude Code from Goodsmileduck/claude-registry. It costs 62 tokens per session (2,016 once invoked), scanned B, original, MIT.

A guide for reviewing Dockerfiles and Docker Compose files, which describe how to build and run containers. It covers build structure, image choices, caching, secrets, health checks, and container security.

In plain words
What is it for?
Use it to review or improve Dockerfiles and Compose files, including multi-stage builds, image sizes, build times, leaked secrets, root users, and missing health checks.
Why use it?
It helps find common problems that make container builds larger, slower, less reliable, or less safe.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is RUN CGO_ENABLED=0 go build -ldflags='-s -w' -o /out/app ./cmd/app.

Part of the kubernetes-skills plugin — 4 skills shipped together

Good fit Use it to review or improve Dockerfiles and Compose files, including multi-stage builds, image sizes, build times, leaked secrets, root users, and missing health checks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Goodsmileduck/claude-registry
agentmods
npx agentmods add skills/goodsmileduck/claude-registry/docker-workflows

Made for: Claude Code.

Or install kubernetes-skills, the plugin that ships this one along with the rest of its 4 skills.

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 docker-workflows

README.md
[![agentmods](https://agentmods.dev/badge/skills/goodsmileduck/claude-registry/docker-workflows/github.svg)](https://agentmods.dev/skills/goodsmileduck/claude-registry/docker-workflows)
Your own site
<a href="https://agentmods.dev/skills/goodsmileduck/claude-registry/docker-workflows"><img src="https://agentmods.dev/badge/skills/goodsmileduck/claude-registry/docker-workflows/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 docker-workflows

Your own site · 80×15
<a href="https://agentmods.dev/skills/goodsmileduck/claude-registry/docker-workflows"><img src="https://agentmods.dev/badge/skills/goodsmileduck/claude-registry/docker-workflows.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,016 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 3 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.00062 $0.02016
Opus 5.5 $0.00025 $0.00806
Sonnet 5.5 $0.00012 $0.00403
Haiku 4.5 $0.00006 $0.00202

Measured 1mo ago against content hash d51120d64e64, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

docker-workflows scanned grade B with 3 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/compose_validator.py, scripts/dockerfile_analyzer.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| `chmod 777` anywhere | Almost always wrong | `chown` + specific mode |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

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

| `RUN apt-get install` without cleanup in same layer | `/var/lib/apt/lists/*` stays in the layer | `&& rm -rf /var/lib/apt/lists/*` in the same RUN |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

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

| `ADD https://...` for tarballs | `ADD` doesn't validate checksums | `RUN curl -fsSL ... | sha256sum -c -` |
plugins/kubernetes-skills/skills/docker-workflows/SKILL.md · 157 lines

How it starts

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

Docker — Dockerfile and compose review

For Kubernetes manifests and pod debugging, see the kubernetes-operations skill. For Helm charts, see kubernetes-operators (if shipped as an operator) or chart-specific tooling.

When to invoke

Open with the static analyzers — they're stdlib Python, fast, deterministic:

SKILL=plugins/kubernetes-skills/skills/docker-workflows
python3 "$SKILL/scripts/dockerfile_analyzer.py" Dockerfile
python3 "$SKILL/scripts/compose_validator.py" docker-compose.yml

Both accept --output json for piping. dockerfile_analyzer.py --security narrows to security findings only. compose_validator.py --strict fails on warnings.

Read the findings before suggesting changes. The analyzer surfaces ~80% of routine issues; reserve LLM judgment for the rest.

Pre-flight: what's the image FOR?

Image strategy follows the workload, not vice versa.

Workload Base image default Why
Compiled binary (Go, Rust) gcr.io/distroless/static-debian12 or scratch No shell, no libc — tiny attack surface
Compiled w/ glibc deps (CGo) gcr.io/distroless/base-debian12 Has glibc + ca-certs, no shell
Python python:3.X-slim (Debian) Alpine's musl breaks many wheels (pandas, lxml)
Node.js node:X-alpine musl is fine for pure JS; switch to slim if native modules struggle
Java eclipse-temurin:X-jre-alpine JRE-only, not JDK, in runtime stage
Need a shell for prod debug *-slim variant distroless = no sh, no kubectl exec shell

Pin the tag. :latest is a moving target — pin to python:3.12.7-slim (full version) or digest (python@sha256:...) for CI reproducibility.

Dockerfile anti-patterns (high → low severity)

Pattern Why it's wrong Fix
Container runs as root Default UID 0 inside the container; if it escapes namespace, host root RUN adduser -D app && USER app
Secret in ENV or ARG Baked into a layer; visible in docker history forever BuildKit --mount=type=secret,id=..., read inside RUN
COPY . . before COPY package.json && RUN install Any source change busts the dep-install cache Copy lockfile, install, then copy source
RUN apt-get install without cleanup in same layer /var/lib/apt/lists/* stays in the layer && rm -rf /var/lib/apt/lists/* in the same RUN
Single-stage build for compiled code Ships SDK + source + build tools in final image Multi-stage: builder + minimal runtime
No HEALTHCHECK Orchestrators can't tell "starting" from "broken" Add a cheap HTTP/exec check
:latest tag on base Reproducibility gone; today's build ≠ yesterday's Pin version, ideally digest
EXPOSE of ports the app doesn't bind Misleading documentation; no security impact but noise Match EXPOSE to actual LISTEN
ADD https://... for tarballs ADD doesn't validate checksums `RUN curl -fsSL ...
chmod 777 anywhere Almost always wrong chown + specific mode

Read the full file on GitHub · 157 lines

Files

What ships with it

2 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. 1mo ago First seen · 157 lines · 62 tokens per session scan B d51120d64e64

Subscribe to this mod's changes

docker-workflows is a skill published in the GitHub repository Goodsmileduck/claude-registry (1 stars, last pushed 3mo ago), licensed MIT. It adds 62 tokens to every session and 2,016 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 3 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

docker-management

Manage Docker containers, images, volumes, and Compose.

NousResearch/hermes-agent · 14 tokens

deployment-patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.

affaan-m/ECC · 41 tokens

docker-patterns

Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration. Use when setting up containerized development environments or reviewing Docker configurations.

affaan-m/ECC · 40 tokens

github-actions-templates

Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications. Use when setting up CI/CD with GitHub Actions, automating development workflows, or creating reusable workflow templates.

wshobson/agents · 44 tokens

workspaces

How an Open SWE workspace's sandbox image works and how to change it — create one, edit or fork an existing one, start from scratch, what setupscript and updatescript are for, why a nightly refresh failed, where the build logs are, and how to read a rebuild in progress. Read this whenever someone asks about…

langchain-ai/open-swe · 89 tokens

scanning-containers-with-trivy-in-cicd

This skill covers integrating Aqua Security's Trivy scanner into CI/CD pipelines for comprehensive container image vulnerability detection. It addresses scanning Docker images for OS package and application dependency CVEs, detecting misconfigurations in Dockerfiles, scanning filesystem and git repositories, and…

xalgorix/xalgorix · 74 tokens