dockerfile-builder

dockerfile-builder is a skill for Claude Code, Codex from inbharatai/claude-skills. It costs 25 tokens per session (402 once invoked), scanned A, a copy of alerting-config, MIT.

A guide for writing Dockerfiles, the instruction files used to build Docker container images. It covers multi-stage builds, reuse of build layers, security measures, and keeping images small.

In plain words
What is it for?
Use it to create or improve Dockerfiles for applications that need to be built and run in containers.
Why use it?
It helps avoid unnecessarily large or less secure container images. It also addresses repeated rebuild work by using cached layers where appropriate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to create or improve Dockerfiles for applications that need to be built and run in containers.

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

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-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/inbharatai/claude-skills/dockerfile-builder/github.svg)](https://agentmods.dev/skills/inbharatai/claude-skills/dockerfile-builder)
Your own site
<a href="https://agentmods.dev/skills/inbharatai/claude-skills/dockerfile-builder"><img src="https://agentmods.dev/badge/skills/inbharatai/claude-skills/dockerfile-builder/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-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/inbharatai/claude-skills/dockerfile-builder"><img src="https://agentmods.dev/badge/skills/inbharatai/claude-skills/dockerfile-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 402 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 88% copy Near-identical to another mod 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.00025 $0.00402
Opus 5 $0.00013 $0.00201
Sonnet 5 $0.00005 $0.00080
Haiku 4.5 $0.00003 $0.00040

Measured 10d ago against content hash 3c0d2ac997e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

dockerfile-builder 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 10d 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.

Origin

This is a copy

88% identical to alerting-config — 32 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/dockerfile-builder/SKILL.md · 68 lines

What it actually says

Dockerfile Builder

Overview

Write optimized Dockerfiles — multi-stage builds, layer caching, security hardening, and minimal image sizes.

When to Use This Skill

Use Dockerfile Builder when you need to:

  • Work with dockerfile builder tasks in your project or workflow
  • Automate dockerfile builder operations at scale
  • Generate production-quality dockerfile builder output quickly

Instructions

When this skill is active, Claude will:

  1. Understand the full context of your dockerfile builder request
  2. Apply best practices and conventions for DevOps & Infrastructure
  3. Produce clean, well-structured, production-ready output
  4. Explain key decisions and offer alternatives where relevant

Examples

Example 1 — Basic Usage

User: Help me get started with dockerfile builder.

Claude: I'll walk you through the essential steps for dockerfile builder in your context...

Example 2 — Advanced Usage

User: I need a production-ready dockerfile builder setup with full error handling.

Claude: Here's a complete, production-hardened dockerfile builder implementation...

Guidelines

  • Always validate inputs before processing
  • Follow the conventions of the target platform or language
  • Prefer explicit over implicit — clarity beats cleverness
  • Include comments for non-obvious logic
  • Suggest tests or validation steps where appropriate

Dependencies

Required: docker

Platforms

Available on: claude-code, api


Part of the claude-skills collection — 183+ skills for Claude.

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. 10d ago First seen · 68 lines · 25 tokens per session scan A 3c0d2ac997e5

Subscribe to this mod's changes

dockerfile-builder is a skill published in the GitHub repository inbharatai/claude-skills (33 stars, last pushed 5mo ago), licensed MIT. It adds 25 tokens to every session and 402 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to alerting-config, differing in 32 lines, and is treated as a copy.

Related

Other skills, from other repositories

devops-commander

Activates the DevOps-Commander agent for infrastructure, CI/CD, and cloud operations. Use when you need GitHub Actions or GitLab CI pipeline design, Dockerfile and docker-compose configuration, Kubernetes deployment manifests, Terraform/Pulumi infrastructure as code, Prometheus + Grafana monitoring setup, or incident…

vignesh2027/Claude-Agentic-Skills2.0-version · 79 tokens

docker-ops

Container management, image building, Docker Compose orchestration, and deployment operations.

profclaw/profclaw · 18 tokens

docker-deploy

Build, deploy, and manage applications with Docker. Handles Dockerfile generation, image building, container management, and docker-compose workflows. Use when the user wants to deploy, containerize, or run services locally.

profclaw/profclaw · 48 tokens

docker-kubernetes

Production Docker and Kubernetes patterns including multi-stage builds, minimal base images, non-root users, layer caching, docker-compose for development, K8s Deployments, Services, Ingress, ConfigMaps, Secrets, health checks, resource limits, HPA autoscaling, security contexts, and Helm chart basics. Use when…

medy-gribkov/arcana · 75 tokens

container-security

Container security from build to runtime. Image scanning, minimal base images, rootless execution, secrets management, supply chain verification, and runtime policies with concrete Dockerfile examples.

medy-gribkov/arcana · 37 tokens

human-review

Produce a plain-English review of the files you just edited and gate the changes behind an explicit Approve/Undo choice. Use when the Stop hook from the human-review-skill plugin asks for a review (you'll see a prompt referencing an edit log), OR when the developer's most recent message is "1", "2", "approve", or…

IrtezaAsadRizvi/claude-human-review · 83 tokens