docker

docker is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 34 tokens per session (2,281 once invoked), scanned A, original, MIT.

A set of instructions for using Docker, a tool that packages applications into isolated containers, and Docker Compose, which runs connected groups of containers.

In plain words
What is it for?
Use it to create Dockerfiles and Compose files, build images, configure caching and multiple build stages, connect services, add health checks, and manage containers, networks, and volumes.
Why use it?
It helps avoid fragile container builds, unsafe networking or storage settings, and deployment problems caused by poorly managed services.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is file: ./secrets/db_password.txt # gitignored.

Part of the mas-desktop-ops plugin — 7 skills shipped together

Good fit Use it to create Dockerfiles and Compose files, build images, configure caching and multiple build stages, connect services, add health checks, and manage containers, networks, and volumes.

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/alivirgo/Major-AI-Skills
agentmods
npx agentmods add skills/alivirgo/major-ai-skills/docker

Made for: Claude Code.

Or install mas-desktop-ops, the plugin that ships this one along with the rest of its 7 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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/docker"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/docker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,281 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00034 $0.02281
Opus 5.5 $0.00014 $0.00912
Sonnet 5.5 $0.00007 $0.00456
Haiku 4.5 $0.00003 $0.00228

Measured 21d ago against content hash e6c69fb9a15e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 21d 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.

CMD wget -qO- http://127.0.0.1:3000/health || exit 1
plugins/mas-desktop-ops/skills/docker/SKILL.md · 204 lines

How it starts

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

Docker Containers & Compose AI Skill Guide (Claude)

Overview & Engine Architecture

Docker packages apps as immutable images and runs them as ephemeral containers on a host engine (containerd/Moby). BuildKit builds images with cache mounts and multi-stage targets; Compose declares multi-container graphs on a single host. Agents should treat images as versioned artifacts (digest-pinned bases), Compose as startup-order contracts (not “wait forever”), and secrets as runtime mounts—never committed layers.

┌─────────────────────────────────────────────────────────────┐
│                 Docker build → run loop                       │
│                                                             │
│  Build (BuildKit / buildx)                                  │
│  ├── Multi-stage: deps → build → runner (non-root)          │
│  ├── Cache: lockfiles first; RUN --mount=type=cache         │
│  └── SBOM/scan gate before push (pair with @trivy)           │
│                                                             │
│  Runtime                                                    │
│  ├── Namespaces: net / pid / mnt; USER in final stage       │
│  ├── Volumes: named > bind (UID/GID traps on bind)          │
│  └── HEALTHCHECK + Compose condition: service_healthy       │
│                                                             │
│  Compose orchestration (single host)                        │
│  ├── depends_on + healthcheck (startup only, not runtime)   │
│  └── Internal DNS: <service> on user-defined network       │
└─────────────────────────────────────────────────────────────┘

When to use / when not to

Use when

  • Authoring Dockerfiles, .dockerignore, and compose.yaml for local/staging parity.
  • Debugging “works on my machine” via container logs, healthchecks, and network aliases.
  • Optimizing image size, layer cache, and non-root runtime hardening.

Do not use when

  • You need multi-node scheduling, rolling updates, or cluster RBAC → @kubernetes / @helm.
  • The task is host-level syslog/logging-driver plugins that must exist before any container starts on daemon reboot (Compose cannot order daemon-wide plugins) → host OS service instead.
  • Someone asks to bake API keys into ENV or ARG defaults → refuse; use secrets mounts or external secret stores (@vault).

Read the full file on GitHub · 204 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. 21d ago Changed · +56 lines · +8 tokens per session e6c69fb9a15e
  2. 1mo ago Changed · -3 tokens per session d0a6a194127f
  3. 1mo ago First seen · 148 lines · 29 tokens per session scan A 86f4f00bbe32

Subscribe to this mod's changes

docker is a skill published in the GitHub repository alivirgo/Major-AI-Skills (2 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 2,281 once invoked, about $0.0001 per session on Opus 5.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

docker-expert

Build optimized, secure Docker images with multi-stage builds. Configure Docker Compose for full development and production stacks.

AtulPurohit/Antigravity-Awesome-Skills · 25 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

implementing-container-image-minimal-base-with-distroless

Reduce container attack surface by building application images on Google distroless base images that contain only the application runtime with no shell, package manager, or unnecessary OS utilities.

xalgorix/xalgorix · 45 tokens

performing-container-security-scanning-with-trivy

Scan container images, filesystems, and Kubernetes manifests for vulnerabilities, misconfigurations, exposed secrets, and license compliance issues using Aqua Security Trivy with SBOM generation and CI/CD integration.

xalgorix/xalgorix · 48 tokens

docker-compose

Containerização com Docker e Docker Compose: configuração para desenvolvimento com hot reload, produção com health checks, multi-stage builds, Docker networks e gestão de secrets e variáveis de ambiente.

ricneves-ai/flowgrammers-skills · 39 tokens

docker-compose

Use when orchestrating multi-container Docker applications from a single declarative compose.yaml — defining services, networks, and volumes, then building, starting, and stopping them as one unit. Covers image/build, ports, volumes, environment, dependson, healthcheck, profiles, and the docker compose CLI.

znlgis/opengis-skills · 63 tokens