create-dockerfile

create-dockerfile is a skill for Claude Code from KunanonJ/ai-skills-hub. It costs 88 tokens per session (1,707 once invoked), scanned C, original, MIT.

Patterns for deploying web applications, including CI/CD pipelines, containers, health checks, rollout methods, and rollback plans. CI/CD automatically tests and releases code; health checks show whether a service is ready.

In plain words
What is it for?
Use it to plan production releases, configure deployment pipelines, choose rolling or blue-green rollouts, add readiness checks, and prepare environment settings.
Why use it?
It helps make releases more predictable and reduces downtime and recovery effort when a deployment has problems.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is RUN CGO_ENABLED=0 go build -o /app/server ./cmd/server.

Good fit Use it to plan production releases, configure deployment pipelines, choose rolling or blue-green rollouts, add readiness checks, and prepare environment settings.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/KunanonJ/ai-skills-hub
agentmods
npx agentmods add skills/kunanonj/ai-skills-hub/create-dockerfile

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kunanonj/ai-skills-hub/create-dockerfile"><img src="https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/create-dockerfile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,707 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00088 $0.01707
Opus 5 $0.00044 $0.00853
Sonnet 5 $0.00018 $0.00341
Haiku 4.5 $0.00009 $0.00171

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

Security

Grade C, and why

create-dockerfile scanned grade C 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 9d 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 deletehighDestructive command

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

RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo build --release && rm -rf src
.agents/skills/create-dockerfile/SKILL.md · 238 lines

How it starts

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

Create Dockerfile

Write production-ready Dockerfile for general-purpose application projects.

When Use

  • Containerizing Node.js, Python, Go, Rust, or Java app
  • Making consistent build/runtime environment
  • Preparing app for cloud deploy or Docker Compose
  • No existing Dockerfile in project

Inputs

  • Required: Project language and entry point (e.g., npm start, python app.py)
  • Required: Dependency manifest (package.json, requirements.txt, go.mod, Cargo.toml, pom.xml)
  • Optional: Target environment (development or production)
  • Optional: Exposed ports

Steps

Step 1: Choose Base Image

Language Dev Image Prod Image Size
Node.js node:22-bookworm node:22-bookworm-slim ~200MB
Python python:3.12-bookworm python:3.12-slim-bookworm ~150MB
Go golang:1.23-bookworm gcr.io/distroless/static ~2MB
Rust rust:1.82-bookworm debian:bookworm-slim ~80MB
Java eclipse-temurin:21-jdk eclipse-temurin:21-jre ~200MB

Got: Pick slim/distroless variant for production images.

Step 2: Write Dockerfile (by language)

Node.js
FROM node:22-bookworm-slim

RUN groupadd -r appuser && useradd -r -g appuser -m appuser

WORKDIR /app

COPY package.json package-lock.json ./
RUN npm ci --omit=dev

COPY . .

USER appuser
EXPOSE 3000
CMD ["node", "src/index.js"]
Python
FROM python:3.12-slim-bookworm

RUN groupadd -r appuser && useradd -r -g appuser -m appuser

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

USER appuser
EXPOSE 8000
CMD ["python", "app.py"]
Go
FROM golang:1.23-bookworm AS builder

WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /app/server ./cmd/server

FROM gcr.io/distroless/static
COPY --from=builder /app/server /server
EXPOSE 8080
ENTRYPOINT ["/server"]
Rust
FROM rust:1.82-bookworm AS builder

WORKDIR /src
COPY Cargo.toml Cargo.lock ./
RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo build --release && rm -rf src

COPY . .
RUN touch src/main.rs && cargo build --release

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /src/target/release/myapp /usr/local/bin/myapp
EXPOSE 8080
ENTRYPOINT ["myapp"]

Read the full file on GitHub · 238 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. 9d ago First seen · 238 lines · 88 tokens per session scan C 85410104c0c1

Subscribe to this mod's changes

create-dockerfile is a skill published in the GitHub repository KunanonJ/ai-skills-hub (5 stars, last pushed 1mo ago), licensed MIT. It adds 88 tokens to every session and 1,707 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

google-tag-manager

Skill "google-tag-manager" from VKirill/claude-lane-stack, covering 🎯 version requirements (june 2026), usage, use this skill when, do not use this skill when and purpose.

VKirill/claude-lane-stack · 134 tokens

docker-patterns

Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration.

loulanyue/awesome-claude-notes · 27 tokens

deployment-patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.

loulanyue/awesome-claude-notes · 31 tokens

deploy-check

Deployment readiness check for Docker/Traefik projects. Use when: "deploy check", "deployment check", "ready for deployment", "deploy-check", "before deploy", "production ready".

claude-hangar/claude-hangar · 42 tokens

docker-py

Provides patterns for programmatic Docker container management using the Docker SDK for Python and aiodocker. USE WHEN the user asks to "manage Docker containers from Python", "create containers programmatically", "stream container logs", "execute commands in a running container", "build images with docker-py"…

AnExiledDev/CodeForge · 109 tokens

docker

Guides Dockerfile authoring and Docker Compose orchestration with multi-stage builds, health checks, and dev watch mode. USE WHEN the user asks to "write a Dockerfile", "set up Docker Compose", "create a multi-stage build", "add health checks", "use Docker Compose watch", "optimize Docker image size", or works with…

AnExiledDev/CodeForge · 101 tokens