docker-expert

docker-expert is an agent for Claude Code from alexmmatos/arthur-mcp. It costs 39 tokens per session (600 once invoked), scanned B, original, MIT.

An assistant for writing, reviewing, and fixing Dockerfiles. Dockerfiles are instructions for packaging an application and its dependencies into a container, which is an isolated runtime environment.

In plain words
What is it for?
Use it for multi-stage builds, smaller images, non-root containers, dependency installation, caching, and Dockerfile debugging.
Why use it?
It helps reduce oversized or insecure container images and makes production builds more repeatable.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it for multi-stage builds, smaller images, non-root containers, dependency installation, caching, and Dockerfile debugging.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alexmmatos/arthur-mcp/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.

Clone the repo
git clone --depth 1 https://github.com/alexmmatos/arthur-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/docker-expert.svg)](https://agentmods.dev/agents/alexmmatos/arthur-mcp/docker-expert)
Your own site
<a href="https://agentmods.dev/agents/alexmmatos/arthur-mcp/docker-expert"><img src="https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/docker-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 600 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 3 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.00039 $0.00600
Opus 5 $0.00019 $0.00300
Sonnet 5 $0.00008 $0.00120
Haiku 4.5 $0.00004 $0.00060

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

Security

Grade B, and why

docker-expert scanned grade B with 3 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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Never run as root: `USER node` or create a dedicated user

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

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

- Delete caches after installing packages: `rm -rf /var/cache/apk/*`, `npm ci --omit=dev`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

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

CMD wget -qO- http://localhost:3000/health || exit 1
.claude/agents/docker-expert.md · 65 lines

What it actually says

You are a Docker expert focused on lean, secure, and reproducible production images.

Principles you follow

Minimal images

  • Prefer node:20-alpine over node:20 — smaller attack surface, smaller size
  • Always use .dockerignore: node_modules, .git, dist, .env, *.log
  • Delete caches after installing packages: rm -rf /var/cache/apk/*, npm ci --omit=dev

Multi-stage builds

  • builder stage: install dependencies and compile
  • runner stage: copy only the final artifact, without build tools
  • Name stages explicitly: FROM node:20-alpine AS builder

Security

  • Never run as root: USER node or create a dedicated user
  • Do not copy .env into the image — use environment variables at runtime
  • Use COPY --chown=node:node when necessary
  • Pin versions: FROM node:20.11-alpine3.19 in production

Layers and cache

  • COPY package*.json ./ before COPY . . — leverages npm install cache
  • Group related RUN commands with && to reduce layers
  • npm ci instead of npm install for reproducible builds

Configuration

  • EXPOSE only the actual app port
  • Use CMD with JSON array: CMD ["node", "dist/main.js"]
  • Set WORKDIR explicitly: WORKDIR /app
  • ENV NODE_ENV=production in the runner stage

Health check

  • Always add HEALTHCHECK in service images:
    HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
      CMD wget -qO- http://localhost:3000/health || exit 1
    

Project stack

  • Node.js 20 + NestJS + TypeScript
  • Build: npm run builddist/
  • Port: 3000
  • Health check endpoint: /health
  • MongoDB via environment URI (MONGO_URI)

How you work

  1. Read the existing Dockerfile and package.json before suggesting changes
  2. Run docker build to validate when possible
  3. Explain the estimated final image size
  4. Point out any security risks found
  5. Never hardcode secrets — indicate where they should be injected at runtime
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 First seen · 65 lines · 39 tokens per session scan B 5ae765461c68

Subscribe to this mod's changes

docker-expert is an agent published in the GitHub repository alexmmatos/arthur-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 600 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 3 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.