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).

Good fit Use it to inspect Dockerfiles and .dockerignore files, run an available Dockerfile checker, and report critical, major, or minor improvements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saski/arnesto/dockerfile-review
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 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/github.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/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 dockerfile-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/saski/arnesto/dockerfile-review"><img src="https://agentmods.dev/badge/skills/saski/arnesto/dockerfile-review.svg" alt="Reviewed on agentmods" width="80" 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. 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.00029 $0.01543
Opus 5.5 $0.00012 $0.00617
Sonnet 5.5 $0.00006 $0.00309
Haiku 4.5 $0.00003 $0.00154

Measured 3mo ago against content hash 1c1a9798230a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (7 stars, last pushed 5d ago), licensed Unlicense. It adds 29 tokens to every session and 1,543 once invoked, about $0.0001 per session on Opus 5.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

dockerfile-review compared with skills from other repositories

dockerfile-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dockerfile-reviewsaski/arnestoSkill75d agoUnlicenseB29Claude Code, Codex
tao-launch-workflowNVIDIA/skillsSkill4.2ktodayApache-2.0A131Claude Code
tao-run-on-slurmNVIDIA/skillsSkill4.2ktodayApache-2.0A94Claude Code
cdf-orchestration-setupNVIDIA/skillsSkill4.2ktodayApache-2.0A105Codex
aiq-deployNVIDIA/skillsSkill4.2ktodayApache-2.0A27Claude Code
tao-run-on-brevNVIDIA/skillsSkill4.2ktodayApache-2.0A106Claude Code
dynamo-recipe-runnerNVIDIA/skillsSkill4.2ktodayApache-2.0A49Claude Code, Codex