docker

docker is a skill for Claude Code, Codex from Ozzeron/prompt-pack. It costs 26 tokens per session (3,839 once invoked), scanned A, original, MIT.

A set of rules for writing and changing Dockerfiles and Docker Compose files. Docker packages an application with its runtime, while Compose defines how multiple containers run together.

In plain words
What is it for?
Use it when creating or editing container builds and multi-container application setups across programming languages.
Why use it?
It helps avoid oversized images, broken build caches, exposed secrets, and containers running with unnecessary administrator access.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ozzeron/prompt-pack/docker
Any agent
npx skills add Ozzeron/prompt-pack --skill docker
Clone the repo
git clone --depth 1 https://github.com/Ozzeron/prompt-pack

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ozzeron/prompt-pack/docker.svg)](https://agentmods.dev/skills/ozzeron/prompt-pack/docker)
Your own site
<a href="https://agentmods.dev/skills/ozzeron/prompt-pack/docker"><img src="https://agentmods.dev/badge/skills/ozzeron/prompt-pack/docker.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,839 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00026 $0.03839
Opus 5 $0.00013 $0.01920
Sonnet 5 $0.00005 $0.00768
Haiku 4.5 $0.00003 $0.00384

Measured 4d ago against content hash ed949adf14e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docker scanned grade A 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 4d 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.

Makes network callslowCapability

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

returning healthy because `curl` is missing and the shell errored out, or because the
prompts/infra/docker/SKILL.md · 283 lines

How it starts

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

Docker Discipline

You write and modify Dockerfiles and docker-compose files. You match the project's existing container conventions before introducing your own, build images that are small, cached correctly, run as a non-root user, and never bake secrets into layers. You are stack-agnostic — the rules below apply identically to Node, Python, Go, Java, Ruby, and anything else that gets containerised.

See EXAMPLES.md for annotated Dockerfile, .dockerignore, secret-mount, and docker-compose.yml examples that pair with the rules in this file.

Preflight (do this before writing or editing any container file)

The rules in this skill close concrete AI failure modes (unpinned latest, secrets in ARG, COPY . . before install, missing .dockerignore, root in final stage). Empirical behaviour: agents that read the existing Dockerfile first skip almost all of these mistakes. Agents that start writing first hit every one.

  • Routing check. Is this an edit to an existing Dockerfile / docker-compose.yml, or a new image from scratch? If the file exists, you are editing — open it first, do not draft a parallel one. Creating a second Dockerfile.new is a Preflight failure.
  • Convention discovery, before any change. Read in this order, stop when you have enough to match style: existing Dockerfile and Dockerfile.* variants → docker-compose.yml / compose.yml.dockerignore → any Makefile / package.json / pyproject.toml scripts that invoke docker build. Note: base image and tag, build tool (multi-stage pattern, buildx, bake), package manager, non-root user setup, entrypoint shape. Match it. Do not introduce a second runtime (e.g. switching python:3.12-slim to alpine "because it's smaller") without an explicit reason and the user's nod.
  • Out-of-scope check. If the request is for Kubernetes manifests, Helm charts, ECS task definitions, or Docker Swarm stacks, stop — this skill does not cover those. CI/CD: do not edit workflow YAML unless the user explicitly asked. You may read CI to learn how the image is built (args, targets, platforms, contexts, tags) — same boundary as ## Scope below.
  • Secrets path. Before writing any ARG or ENV, decide where secrets will come from at build time (BuildKit --secret, never ARG) and at runtime (orchestrator env / mounted file, never ENV in the image). If you cannot answer both, ask before writing.

Read the full file on GitHub · 283 lines

Files

What ships with it

1 file 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. 4d ago First seen · 283 lines · 26 tokens per session scan A ed949adf14e7

Subscribe to this mod's changes

docker is a skill published in the GitHub repository Ozzeron/prompt-pack (8 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 3,839 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (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

chinese-documentation

中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。.

jnMetaCode/superpowers-zh · 62 tokens

chinese-git-workflow

国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。.

jnMetaCode/superpowers-zh · 69 tokens

memorix-troubleshooting

Use when Memorix MCP, setup, project binding, HTTP control plane, hooks, skills, or agent integration is missing, stale, or failing.

AVIDS2/memorix · 36 tokens

subagent-driven-development

当在当前会话中执行包含独立任务的实现计划时使用.

jnMetaCode/superpowers-zh · 21 tokens

tech-radar

MUST use when user asks 'what's new?', 'any updates?', 'latest versions?', 'breaking changes?', 'should we upgrade?', 'what changed in X?', or when starting a new project. Detects dependencies dynamically from package.json / requirements.txt / go.mod / composer.json first, then reports per-package: latest version (vs.…

faizkhairi/claude-code-blueprint · 118 tokens

adr

Create and manage Architecture Decision Records. Documents significant technical decisions with context, alternatives, and consequences. Also supports evaluate (assess proposals) and design (system design) modes.

drafthq/draft · 37 tokens