dockerfile-review

dockerfile-review is a skill for Claude Code, Codex from saski/arnesto. It costs 29 tokens per session (1,543 once invoked), scanned B, original, Unlicense.

A review process for Dockerfiles, which are recipes for building Docker application images. It checks build speed, image size, and security.

In plain words
What is it for?
Use it to inspect Dockerfiles and .dockerignore files, run an available Dockerfile checker, and report critical, major, or minor improvements.
Why use it?
It finds problems such as poor layer ordering that cause unnecessary rebuilds, along with security and size issues.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

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/saski/arnesto/dockerfile-review
Any agent
npx skills add saski/arnesto --skill dockerfile-review
Clone the repo
git clone --depth 1 https://github.com/saski/arnesto

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 dockerfile-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/saski/arnesto/dockerfile-review.svg)](https://agentmods.dev/skills/saski/arnesto/dockerfile-review)
Your own site
<a href="https://agentmods.dev/skills/saski/arnesto/dockerfile-review"><img src="https://agentmods.dev/badge/skills/saski/arnesto/dockerfile-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,543 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.1 $0.00029 $0.01543
Opus 5 $0.00015 $0.00772
Sonnet 5 $0.00006 $0.00309
Haiku 4.5 $0.00003 $0.00154

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

Security

Grade B, and why

dockerfile-review scanned grade B with 2 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 5d 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.

Recursive force deletemediumDestructive command

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

Anti-pattern: separate RUN instructions for install and cleanup. `RUN apt-get update` then `RUN rm -rf /var/lib/apt/lists/*` preserves the cache in the first layer.

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.

- `apt-get install -y curl` without version pinning
.agents/skills/dockerfile-review/SKILL.md · 139 lines

How it starts

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

Dockerfile Review

STARTER_CHARACTER = 🐳

When starting, announce: "🐳 Using DOCKERFILE-REVIEW skill".

Process

  1. Check if droast (dockerfile-roast) is available by running command -v droast
    • If available: run droast --no-roast --min-severity warning <Dockerfile> and use the output as a starting point
    • If not available: skip and continue with manual review
  2. Read the Dockerfile (and .dockerignore if present)
  3. Evaluate against each dimension below
  4. Report findings grouped by severity: critical (security risks), major (significant size/performance impact), minor (incremental improvements)
  5. For each finding: state what's wrong, why it matters, and suggest a fix direction
  6. If the Dockerfile is solid, say so — don't invent issues

Review Dimensions

1. Layer Cache Ordering

Dependency files (package.json, requirements.txt, go.mod) must be copied and installed BEFORE application source code. Violations cause full dependency reinstalls on every code change.

Anti-pattern: COPY . . followed by RUN pip install or RUN npm ci. The entire dependency layer rebuilds on any source change.

Impact: builds that should take seconds take minutes. With frequent builds, this compounds to hours per week.

2. Base Image Selection

Three tiers exist: full (includes compilers, tools), slim (minimal OS, basic tooling), distroless (application only, no shell).

Anti-patterns:

  • Using full images in production (node:20 is ~950MB vs node:20-slim at ~220MB)
  • Using distroless when debugging access is needed
  • Not considering slim as the default production choice

Alpine warning: Alpine uses musl libc instead of glibc. For Python, Node, and other runtimes with native extensions, this means rebuilding native deps from source (slower builds) or silent performance regressions. Prefer -slim (Debian-based) for these workloads — similar size savings, zero compatibility issues. Alpine remains a good choice for Go binaries and static builds where libc doesn't matter.

Read the full file on GitHub · 139 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. 5d ago First seen · 139 lines · 29 tokens per session scan B 1c1a9798230a

Subscribe to this mod's changes

dockerfile-review is a skill published in the GitHub repository saski/arnesto (5 stars, last pushed 10d ago), licensed Unlicense. It adds 29 tokens to every session and 1,543 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (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.

Related

Other skills, from other repositories

aiq-deploy

Use when asked to install, deploy, run, validate, troubleshoot, or stop NVIDIA AI-Q Blueprint infrastructure.

NVIDIA/skills · 27 tokens

dynamo-recipe-runner

Select, validate, patch, and deploy existing NVIDIA Dynamo Kubernetes recipes. Use for model/backend/GPU/deployment-mode recipe bring-up; use router-starter for router-only mode work and troubleshoot for broken deployments.

NVIDIA/skills · 49 tokens

holoscan-install-container

Install Holoscan SDK via the NGC Docker container. Use for container-based installs; not for native apt/pip/Conda installs.

NVIDIA/skills · 35 tokens

doca-argus

Use this skill when the user is deploying or operating the DOCA Argus Service — the packaged BlueField-side runtime-security container that watches the BlueField and attached host for suspicious activity, integrity violations, and operational anomalies, and forwards findings to a SIEM (Splunk / ELK / Sentinel /…

NVIDIA/skills · 213 tokens

doca-urom-svc

Operate the DOCA UROM Service container on BlueField Arm for remote memory operations (puts, gets, atomics, collectives) enqueued by a paired host using doca-urom: pull the NGC image, choose the UCX component, size queues, configure Comch pairing, and align host and service versions. SECURITY: the service has no…

NVIDIA/skills · 153 tokens

doca-container-deployment

Use this skill when the user is hands-on deploying an in-bundle DOCA service container (Argus, DMS, Firefly, or UROM service) on a BlueField — kubelet standalone watching a static-pod manifests directory, YAML pod-spec drop, kubelet status / ENTRYPOINT logs / per-service liveness, smoke-before-bulk, and the layered…

NVIDIA/skills · 234 tokens