configure-dockerfile

configure-dockerfile is a skill for Claude Code, Codex from laurigates/claude-plugins. It costs 38 tokens per session (2,302 once invoked), scanned A, original, MIT.

A setup guide for creating and checking Dockerfiles, which describe how to build application containers. It focuses on smaller images, separate build stages, and running without administrator privileges.

In plain words
What is it for?
Use it to create or audit Dockerfiles, choose Alpine or slim base images, configure multi-stage builds, and add a non-root user.
Why use it?
It helps reduce image size and limits the damage if an application inside a container is compromised.

Skill for Claude CodeCodex

Part of the configure-plugin plugin — 48 skills shipped together

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

Made for: Claude Code, Codex.

Or install configure-plugin, the plugin that ships this one along with the rest of its 48 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/laurigates/claude-plugins/configure-dockerfile.svg)](https://agentmods.dev/skills/laurigates/claude-plugins/configure-dockerfile)
Your own site
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/configure-dockerfile"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/configure-dockerfile.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,302 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00038 $0.02302
Opus 5 $0.00019 $0.01151
Sonnet 5 $0.00008 $0.00460
Haiku 4.5 $0.00004 $0.00230

Measured yesterday against content hash 159d78d038dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

configure-dockerfile scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

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

CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1
configure-plugin/skills/configure-dockerfile/SKILL.md · 264 lines

How it starts

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

/configure:dockerfile

Check and configure Dockerfile against project standards with emphasis on minimal images, non-root users, and multi-stage builds.

When to Use This Skill

Use this skill when... Use another approach when...
Checking Dockerfile compliance with standards Just viewing Dockerfile (use Read tool)
Creating Dockerfile from template Dockerfile already follows all standards
Validating image size, security, multi-stage builds Need container runtime config (use /configure:container)
Setting up minimal Alpine/slim-based images Project uses specialized base images (custom requirements)
Ensuring non-root user configuration Debugging container issues (check logs, inspect runtime)

Context

  • Dockerfiles: !find . -maxdepth 1 \( -name 'Dockerfile' -o -name 'Dockerfile.*' -o -name '*.Dockerfile' \)
  • Dockerignore: !find . -maxdepth 1 -name \'.dockerignore\'
  • Project type: !find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'go.mod' \) -print -quit
  • Base images: !find . -maxdepth 1 \( -name 'Dockerfile' -o -name 'Dockerfile.*' -o -name '*.Dockerfile' \) -exec grep -hm5 '^FROM' {} +

Parameters

Parse from command arguments:

  • --check-only: Report compliance status without modifications
  • --fix: Apply fixes automatically without prompting
  • --type <type>: Override project type detection (frontend, python, go, rust)

Execution

Execute this Dockerfile compliance check:

Step 1: Detect project type and Dockerfiles

  1. Find Dockerfile(s) in project root
  2. Detect project type from context (package.json, pyproject.toml, go.mod, Cargo.toml)
  3. Parse Dockerfile to analyze current configuration
  4. Apply --type override if provided

Step 2: Verify latest base image versions

Before flagging outdated base images, use WebSearch or WebFetch to verify latest versions:

  1. Node.js Alpine: Check Docker Hub for latest LTS Alpine tags
  2. Python slim: Check Docker Hub for latest slim tags
  3. nginx Alpine: Check Docker Hub for latest Alpine tags
  4. Go Alpine: Check Docker Hub for latest Alpine tags
  5. Rust Alpine: Check Docker Hub for latest Alpine tags

Read the full file on GitHub · 264 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. yesterday First seen · 264 lines · 38 tokens per session scan A 159d78d038dc

Subscribe to this mod's changes

configure-dockerfile is a skill published in the GitHub repository laurigates/claude-plugins (57 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 2,302 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.