docker-expert

docker-expert is a skill for Claude Code from Aarvion-AI/stackwise-skills. It costs 42 tokens per session (1,285 once invoked), scanned A, original, MIT.

A development skill for creating, debugging, securing, and optimizing Dockerfiles and Docker Compose files. Docker packages an application and its dependencies into reproducible containers; Compose runs groups of related containers.

In plain words
What is it for?
Use it for single- or multi-stage image builds, Compose services, ignore rules, build caching, health checks, and production container setup.
Why use it?
It helps resolve image size, build speed, startup, networking, volume, health-check, and non-root execution problems.

Skill for Claude Code

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

Part of the stackwise plugin — 16 skills shipped together

Good fit Use it for single- or multi-stage image builds, Compose services, ignore rules, build caching, health checks, and production container setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aarvion-ai/stackwise-skills/docker-expert
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 Aarvion-AI/stackwise-skills --skill docker-expert
Clone the repo
git clone --depth 1 https://github.com/Aarvion-AI/stackwise-skills

Made for: Claude Code.

Or install stackwise, the plugin that ships this one along with the rest of its 16 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-expert

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aarvion-ai/stackwise-skills/docker-expert"><img src="https://agentmods.dev/badge/skills/aarvion-ai/stackwise-skills/docker-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,285 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00042 $0.01285
Opus 5 $0.00021 $0.00642
Sonnet 5 $0.00008 $0.00257
Haiku 4.5 $0.00004 $0.00128

Measured 7d ago against content hash 5ef121c3b84b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

docker-expert scanned grade A with 0 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 7d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/docker-expert/SKILL.md · 117 lines

How it starts

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

Docker Expert

Build small, reproducible, non-root Docker images using Docker 27+ and BuildKit.

When to Use This Skill

  • Creating or changing a Dockerfile
  • Creating or debugging a docker-compose.yml or compose.yaml
  • Converting a single-stage image into a multi-stage production image
  • Improving Docker build cache behavior or BuildKit usage
  • Adding .dockerignore, health checks, or non-root execution
  • Diagnosing Docker image-size, startup, networking, volume, or Compose issues

Core Workflow

  1. Inspect the runtime contract - identify the app start command, listening port, required files, environment variables, native dependencies, and health endpoint. Read existing Dockerfiles, Compose files, lockfiles, and .dockerignore before making changes.

  2. Design build and runtime stages - separate build dependencies from runtime dependencies. Pin an explicit maintained base-image version, use named build stages, and copy only required runtime artifacts into the final image.

  3. Implement Dockerfile and ignore rules - order layers from least frequently changed to most frequently changed: base image, OS packages, dependency manifests, dependency installation, then application source. Add .dockerignore before relying on COPY . ..

  4. Verify the image build - run docker build --progress=plain -t app:local .; fix every reported issue and re-run until clean. Change only an application source file, rebuild, and confirm dependency installation is cached.

  5. Run the container - run docker run --rm --name app-local -p 8080:8080 app:local, replacing 8080 with the real application port. Check logs with docker logs app-local, verify the endpoint, fix failures, and re-run until clean.

  6. Implement Compose configuration when needed - use Compose for multi-service applications or local development. Define explicit services, ports, networks, volumes, health checks, and dependency readiness.

  7. Verify Compose configuration - run docker compose config; fix every reported issue and re-run until clean. Then run docker compose up --build --wait, inspect docker compose ps and docker compose logs, verify the application endpoint, and run docker compose down --volumes after testing.

Read the full file on GitHub · 117 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. 7d ago First seen · 117 lines · 42 tokens per session scan A 5ef121c3b84b

Subscribe to this mod's changes

docker-expert is a skill published in the GitHub repository Aarvion-AI/stackwise-skills (5 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 1,285 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

symfony:runner-selection

Select and configure the appropriate command runner based on Docker Compose standard, Symfony Docker (FrankenPHP), or host environment.

dev-toolings/superpowers-symfony · 29 tokens

infra-standards

Infrastructure, container, and CI/CD discipline — IaC, Dockerfiles and compose files, CI pipelines, platform deploy config, env/secrets handling. INVOKE PROACTIVELY when creating or editing any such file (.tf, .bicep, Dockerfile, docker-compose, .github/workflows/, vercel.json) — even when nobody says "infra". Not for…

PrabhdeepSingh/claude-plugins · 106 tokens

ccc-devops

For scheduled deployments and automated infra tasks, see: https://code.claude.com/docs/en/scheduled-tasks — ccc-devops skills (especially cicd-pipeline-generator and zero-downtime-deploy) can be wrapped as scheduled routines for nightly deployments, weekly security scans, or periodic drift detection.

KevinZai/commander · 38 tokens

docker-customize

Route a request to install a tool, binary, package, env var, persistent directory, or side service in the hermit Docker container to the first channel that can carry it. Apt packages go in the Dockerfile operator block; boot-time shell work goes in docker-entrypoint.hermit-local.sh; compose and Dockerfile only when…

gtapps/claude-code-hermit · 116 tokens

helm-k8s-patterns

No artifact. This skill emits prescriptive guidance inline. The implementing agent writes the chart and values files in the assigned IaC worktree.

lukasrepublic/agentic-foundry · 0 tokens

legacy-app-containerize

Skill "legacy-app-containerize" from lukasrepublic/agentic-foundry, covering when to trigger and anti-patterns.

lukasrepublic/agentic-foundry · 0 tokens