ops-docker

ops-docker is a skill for Claude Code from christopherlouet/claude-base. It costs 25 tokens per session (647 once invoked), scanned A, original, MIT.

A guide to packaging applications as Docker containers, including Docker Compose setups. Containers bundle an application with the files it needs to run consistently.

In plain words
What is it for?
Use it to create Dockerfiles, compose services, publish images, and apply practices such as multi-stage builds and non-root users.
Why use it?
It helps avoid differences between development, testing, and production environments while keeping images smaller and safer.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to create Dockerfiles, compose services, publish images, and apply practices such as multi-stage builds and non-root users.

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

Made for: Claude Code.

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 ops-docker

README.md
[![agentmods](https://agentmods.dev/badge/skills/christopherlouet/claude-base/ops-docker.svg)](https://agentmods.dev/skills/christopherlouet/claude-base/ops-docker)
Your own site
<a href="https://agentmods.dev/skills/christopherlouet/claude-base/ops-docker"><img src="https://agentmods.dev/badge/skills/christopherlouet/claude-base/ops-docker.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 647 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.00025 $0.00647
Opus 5 $0.00013 $0.00324
Sonnet 5 $0.00005 $0.00129
Haiku 4.5 $0.00003 $0.00065

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

Security

Grade A, and why

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

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.

.claude/skills/ops-docker/SKILL.md · 41 lines

How it starts

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

Docker Containerization (pointer)

Dockerfile syntax, Compose schema and image-publish flows drift on each release and are canonical at:

Foundation discipline (keep across releases)

  • Multi-stage builds: always separate build deps from runtime image. The "node:20 with full npm" image weighs 1GB+; the runtime layer should be ~100MB. Build stage produces artifacts, runtime stage copies them in.
  • Non-root user: RUN addgroup -S app && adduser -S app -G app && USER app — never run app code as root inside the container, even if "it's just a sandbox".
  • .dockerignore mandatory: forgotten .git/ or node_modules/ in the build context bloats images by hundreds of MB and leaks secrets. The .dockerignore rules mirror your .gitignore plus build artifacts.
  • HEALTHCHECK at the Dockerfile level: not just at the orchestrator level. Lets Docker/Compose detect unhealthy containers before the orchestrator does.
  • Pin base image major+minor (node:20-alpine, not node:latest or bare node:20): floating tags break reproducibility; SHA pinning is overkill for most apps but worth it for security-critical builds.
  • Secret management: never COPY .env or hardcode credentials in ENV. Use BuildKit secrets (--mount=type=secret) or runtime-injected env vars from the orchestrator.

See also

  • /ops:ops-deploy — deployment checklist consumes the built image
  • /ops:ops-database — Compose patterns for DB services (depends_on: { condition: service_healthy })
  • qa-security — image scanning gate (Snyk/Trivy) before push
  • ops-ci — Hadolint + image scan as CI steps

Read the full file on GitHub · 41 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. 4d ago First seen · 41 lines · 25 tokens per session scan A 4012affd4913

Subscribe to this mod's changes

ops-docker is a skill published in the GitHub repository christopherlouet/claude-base (5 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 647 once invoked, about $0.0001 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-03.