docker-guide

docker-guide is a skill for Claude Code from xonovex/platform. It costs 74 tokens per session (401 once invoked), scanned A, original, MIT.

A guide to writing Docker images and Docker Compose files for production. Docker packages an application and its dependencies into an image, while Compose describes several containers and how they work together.

In plain words
What is it for?
Use it when creating or reviewing Dockerfiles and Compose files, reducing image size, configuring multi-service environments, handling secrets, adding health checks, or running containers as non-root users.
Why use it?
It helps keep production images small, repeatable, configurable, and safer. It also addresses common mistakes involving build stages, startup commands, secrets, permissions, and health checks.

Skill for Claude Code

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

Part of the xonovex-platform plugin — 4 skills shipped together

Good fit Use it when creating or reviewing Dockerfiles and Compose files, reducing image size, configuring multi-service environments, handling secrets, adding health checks, or running containers as non-root users.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xonovex/platform/docker-guide
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 xonovex/platform --skill docker-guide
Clone the repo
git clone --depth 1 https://github.com/xonovex/platform

Made for: Claude Code.

Or install xonovex-platform, 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-guide

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xonovex/platform/docker-guide"><img src="https://agentmods.dev/badge/skills/xonovex/platform/docker-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 401 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.00074 $0.00401
Opus 5.5 $0.00030 $0.00160
Sonnet 5.5 $0.00015 $0.00080
Haiku 4.5 $0.00007 $0.00040

Measured 7d ago against content hash 77cff6aba41e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docker-guide 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.

packages/runtime/plugin/plugin-platform/skills/docker-guide/SKILL.md · 28 lines

What it actually says

Docker Coding Guidelines

Build small, reproducible Docker images with explicit runtime permissions and validated health behavior.

Essentials

Gotchas

  • Multi-stage builds need explicit COPY --from=<stage>: forgetting it copies the whole heavy stage into the final image
  • ENTRYPOINT + CMD interact: CMD provides default args to ENTRYPOINT; overriding CMD from docker run drops them, not appends

Progressive disclosure

Files

What ships with it

8 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 Changed · +2 lines 77cff6aba41e
  2. 1mo ago First seen · 26 lines · 74 tokens per session scan A 1ddf8976b446

Subscribe to this mod's changes

docker-guide is a skill published in the GitHub repository xonovex/platform (6 stars, last pushed 5d ago), licensed MIT. It adds 74 tokens to every session and 401 once invoked, about $0.0003 per session on Opus 5.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-08.

Related

Other skills, from other repositories

harbor

CLI toolkit for managing containerized LLM services. Use when the user wants to start, stop, configure, or manage AI/LLM services like Ollama, Open WebUI, llama.cpp, vLLM, LiteLLM, ComfyUI, and 250+ others. Triggers on requests to "run a model", "start ollama", "set up an LLM", "configure harbor", "manage services"…

av/harbor · 114 tokens

agentbox-info

Spin up isolated sandboxes ("boxes") for coding agents, run them in parallel, queue background runs with -i, and push commits safely through the host relay. Use when the user wants to run Claude Code / Codex / OpenCode in a sandbox, start more boxes, attach to a running box, or otherwise operate the agentbox CLI on…

madarco/agentbox · 79 tokens

04-security

A security and operations guide for deploying Dify, an open-source platform for building AI applications, in production.

skillmds/skillmd · 36 tokens

agentbox

Fork the current agent session into a new VM or local Docker container with all the project files, agent settings and session teleported into.

madarco/agentbox · 30 tokens

deployment

Use when taking an app from source to live: choosing the deploy target from requirements (Hetzner+Coolify vs Vercel vs a third), then wiring container → CI → registry → host with build secrets, healthchecks and rollback. NOT one platform's mechanics (that is coolify, vercel, railway, render), NOT the Dockerfile alone…

ericrisco/rsc-harness · 86 tokens

docker

Use when authoring or auditing a Dockerfile, shrinking a bloated image, hardening a container that runs as root, picking a base image, or wiring a Compose dev loop with hot reload. NOT CI builds or deploy-to-host (that is deployment), NOT k8s autoscaling (that is scaling), NOT app-level injection or secrets-in-code…

ericrisco/rsc-harness · 86 tokens