docker-expert

docker-expert is a skill for Claude Code from Miaoge-Ge/coding-agent-skills. It costs 86 tokens per session (993 once invoked), scanned C, original, MIT.

A guide for building and running Docker containers, which package an application with the files it needs. It covers Dockerfiles, Compose for multi-container applications, and container setup.

In plain words
What is it for?
Use it to write or improve Dockerfiles, reduce image size, speed up builds, run several local services with Compose, and troubleshoot containers.
Why use it?
It helps avoid large, slow, insecure, or inconsistent container builds. It also addresses cache problems, leaked secrets, and startup or networking issues.

Skill for Claude Code

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

Part of the docker-expert plugin — 1 skill shipped together

Good fit Use it to write or improve Dockerfiles, reduce image size, speed up builds, run several local services with Compose, and troubleshoot containers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miaoge-ge/coding-agent-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 Miaoge-Ge/coding-agent-skills --skill docker-expert
Clone the repo
git clone --depth 1 https://github.com/Miaoge-Ge/coding-agent-skills

Made for: Claude Code.

Or install docker-expert, the plugin that ships this one along with the rest of its 1 skill.

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/miaoge-ge/coding-agent-skills/docker-expert/github.svg)](https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/docker-expert)
Your own site
<a href="https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/docker-expert"><img src="https://agentmods.dev/badge/skills/miaoge-ge/coding-agent-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/miaoge-ge/coding-agent-skills/docker-expert"><img src="https://agentmods.dev/badge/skills/miaoge-ge/coding-agent-skills/docker-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 993 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00086 $0.00993
Opus 5.5 $0.00034 $0.00397
Sonnet 5.5 $0.00017 $0.00199
Haiku 4.5 $0.00009 $0.00099

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

Security

Grade C, and why

docker-expert scanned grade C with 1 finding 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 3mo 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.

Recursive force deletehighDestructive command

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

- Combine related `RUN` steps and clean caches **in the same layer** (`apt-get … && rm -rf /var/lib/apt/lists/*`) — a separate cleanup layer doesn't shrink the image.
plugins/docker-expert/skills/docker-expert/SKILL.md · 77 lines

How it starts

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

Docker Expert

Small, reproducible, non-root, cache-friendly. Order layers from least- to most-changing, build in one stage and ship artifacts from another, and never bake secrets into the image.

When to Use

  • Writing or optimizing a Dockerfile.
  • Reducing image size, speeding builds, or fixing cache busting.
  • Multi-service local dev with Compose.
  • Container networking, volumes, signals, or startup issues.

When NOT to Use

  • Cluster orchestration, scaling, rollouts, probes → kubernetes-expert.
  • The app code itself → the relevant language skill.
  • CI pipeline YAML → github-master.

Core Principles

1. Small & secure base

  • Minimal, pinned bases: node:22.4-slim, python:3.12-slim, Alpine, or distroless for runtime. Never :latest (non-reproducible).
  • Run as a non-root user (USER). Copy only what's needed; add a .dockerignore (.git, node_modules, build output, secrets) to shrink the build context and avoid leaking files.

2. Cache-efficient layers

  • Order instructions least- → most-frequently-changing. Copy dependency manifests and install before copying source, so editing code doesn't bust the dependency layer.
  • Combine related RUN steps and clean caches in the same layer (apt-get … && rm -rf /var/lib/apt/lists/*) — a separate cleanup layer doesn't shrink the image.
  • Use BuildKit cache mounts (RUN --mount=type=cache) for package managers; pass secrets via --mount=type=secret, never ARG/ENV.

3. Multi-stage builds

  • Heavy build/compile stage → copy only artifacts into a lean runtime stage. Drops compilers, dev deps, and source from the final image (often 5–20× smaller).

4. Correct runtime

  • One concern per container. Use exec-form CMD/ENTRYPOINT (["node","server.js"]) so signals (SIGTERM) reach the process for graceful shutdown; add --init or tini if your process doesn't reap children.
  • Add a HEALTHCHECK. Configure via env; persist data in volumes, not the writable layer.

Read the full file on GitHub · 77 lines

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. 3mo ago First seen · 77 lines · 86 tokens per session scan C 59826b608d0b

Subscribe to this mod's changes

docker-expert is a skill published in the GitHub repository Miaoge-Ge/coding-agent-skills (7 stars, last pushed 6mo ago), licensed MIT. It adds 86 tokens to every session and 993 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

docker-expert compared with skills from other repositories

docker-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docker-expertMiaoge-Ge/coding-agent-skillsSkill76mo agoMITC86Claude Code
dockerkok-o/contextos-agentsSkill1022d agoApache-2.0A21Claude Code, Codex
docker-patternsdeepelementlab/jupyter-studioSkill156mo agoApache-2.0A27Claude Code, Codex
deployment-patternsdeepelementlab/jupyter-studioSkill156mo agoApache-2.0A31Claude Code, Codex
dokploy-deployfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A63Claude Code
seo-auditumutxyp/Seo-Promt-MasterSkill60511d agoMITA121Claude Code
release-ota-promotePrismer-AI/PrismerCloudSkill1.4k1mo agoMITA52Claude Code