dockerfile-review

dockerfile-review is a skill for Claude Code, Codex from zhuyansen/agent-skills-hub. It costs 23 tokens per session (176 once invoked), scanned A, original, MIT.

A reviewer for Dockerfiles, the instruction files used to build Docker containers. It checks image size, how build layers can be reused, and whether the container runs as the root user.

In plain words
What is it for?
Use it to review a Dockerfile and get suggested fixes for size, build caching, and user permissions.
Why use it?
It helps identify avoidable build cost and a container setup with unnecessarily broad permissions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a Dockerfile and get suggested fixes for size, build caching, and user permissions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhuyansen/agent-skills-hub/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 zhuyansen/agent-skills-hub --skill dockerfile-review
Clone the repo
git clone --depth 1 https://github.com/zhuyansen/agent-skills-hub

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/zhuyansen/agent-skills-hub/dockerfile-review/github.svg)](https://agentmods.dev/skills/zhuyansen/agent-skills-hub/dockerfile-review)
Your own site
<a href="https://agentmods.dev/skills/zhuyansen/agent-skills-hub/dockerfile-review"><img src="https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/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/zhuyansen/agent-skills-hub/dockerfile-review"><img src="https://agentmods.dev/badge/skills/zhuyansen/agent-skills-hub/dockerfile-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 176 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.00023 $0.00176
Opus 5.5 $0.00009 $0.00070
Sonnet 5.5 $0.00005 $0.00035
Haiku 4.5 $0.00002 $0.00018

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

Security

Grade A, and why

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

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.

ops/skillmgr-runs/in/input/library/dockerfile-review/SKILL.md · 21 lines

What it actually says

Dockerfile Review

Review a Dockerfile for image size, layer caching and running as root, and suggest fixes.

When to use

Use this skill when the user asks for it by name or describes this task. Do not use it for unrelated work.

Steps

  1. Read the input the user points to. If none is given, ask for the file or text.
  2. Do the task described above, step by step, and keep the user's own wording where it matters.
  3. Show the result, then a short list of what you changed or found, so the user can check it.

Notes

  • Keep changes small and reversible.
  • Say plainly when the input is incomplete instead of guessing.
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 · 21 lines · 23 tokens per session scan A 1fcb9e945bb7

Subscribe to this mod's changes

dockerfile-review is a skill published in the GitHub repository zhuyansen/agent-skills-hub (452 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 176 once invoked, about $0.0001 per session on Opus 5.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-10-11.

Related

Other skills, from other repositories

cluster-status

Reports the health of the configured Kubernetes cluster.

akanthed/SecureAI-Scan · 12 tokens

cloud-security-engineer

Cloud Security Engineer role bundle for cloud security posture management, IaC review, container security, and identity governance across AWS, Azure, and GCP. Orchestrates cloud-specific posture reviews and zero trust program assessments. Auto-invoked when the user needs help with cloud security configuration, IaC…

UnitOneAI/SecuritySkills · 79 tokens

kubernetes-security

Harden a Kubernetes cluster's data plane and control plane. Covers Pod Security Standards (Restricted, Baseline, Privileged), RBAC with least privilege, NetworkPolicy default-deny, secrets management without raw env vars, admission controllers (Kyverno, OPA Gatekeeper), image scanning, and audit logging. Invoke when…

GoldenWing-360/claude-security-skills · 88 tokens

docker-container-security

Run containers with a defensive baseline that survives production. Covers non-root users, read-only filesystems, dropped Linux capabilities, secret mounts instead of build-time bake-in, image scanning with trivy, distroless and minimal base images, and the Docker-bypasses-UFW firewall pitfall. Invoke when adding…

GoldenWing-360/claude-security-skills · 89 tokens

cloud-workload-protection

../../../cloud-infra/cloud-workload-protection/SKILL.md.

jaskaranhundal/usap-skills · 0 tokens

container-image-scan

../../../cloud-infra/container-image-scan/SKILL.md.

jaskaranhundal/usap-skills · 0 tokens