Agent skill

Dockerfile Generator

by hamzafarooq in hamzafarooq/claude-code-starter

Create a production-ready Dockerfile and deployment config for any project.

MITAuto-check: notesDevOps & Cloud

Install Dockerfile Generator

skills CLI
$ npx skills add hamzafarooq/claude-code-starter --skill dockerfile-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hamzafarooq/claude-code-starter dockerfile-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hamzafarooq/claude-code-starter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/dockerfile-generator .claude/skills/dockerfile-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dockerfile-generator
GitHub stars
145
Token cost
~355 tokens
SKILL.md length
127 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

Create a production-ready Dockerfile and deployment config for any project.

  • Works in 3 steps: "What language and framework? (e.g.… → "What platform are you deploying to?… → "Any environment variables the app needs…
  • The user wants to containerize their app
  • SKILL.md covers Dockerfile, Platform config (if applicable) and .dockerignore
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Dockerfile Generator is an agent skill from hamzafarooq/claude-code-starter. Create a production-ready Dockerfile and deployment config for any project. Optimized for small image size and security. Use when the user wants to containerize their app or deploy to Fly.io, Railway, or any Docker-based platform.

Its SKILL.md is about 360 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Containers. It works with Docker. The licence is MIT.

When your agent uses it

  • The user wants to containerize their app
  • Deploy to Fly.io
  • Any Docker-based platform

Example prompts

  • “/dockerfile-generator”

Requirements

  • Python 3
  • Docker

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. "What language and framework? (e.g. Python/FastAPI, Node/Next.js, Go)"
  2. "What platform are you deploying to? (Fly.io, Railway, Cloud Run, self-hosted)"
  3. "Any environment variables the app needs at runtime?"

What it can do on your machine

Read from SKILL.md and the folder at commit 172c531. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are dockerfile, toml and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dockerfile Generator loads about 355 tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 127 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~355

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:45
    .env
  • NoteMentions a .env fileSKILL.md:46
    .env.local

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hamzafarooq/claude-code-starter at commit 172c531, republished under its MIT licence (© hamzafarooq). 127 words, ~355 tokens.

Download SKILL.mdSave it as .claude/skills/dockerfile-generator/SKILL.md (or your agent's skills folder).
name
dockerfile-generator
description
Create a production-ready Dockerfile and deployment config for any project. Optimized for small image size and security. Use when the user wants to containerize their app or deploy to Fly.io, Railway, or any Docker-based platform.

Ask the user:

  1. "What language and framework? (e.g. Python/FastAPI, Node/Next.js, Go)"
  2. "What platform are you deploying to? (Fly.io, Railway, Cloud Run, self-hosted)"
  3. "Any environment variables the app needs at runtime?"

Then produce:

Dockerfile

dockerfile
# [explanation of each stage]

What this Dockerfile does:

  • Base image choice and why
  • Multi-stage build explanation (if used)
  • How dependencies are cached for fast rebuilds
  • Non-root user setup (security)
  • Health check configuration

Platform config (if applicable)

fly.toml (for Fly.io):

toml
# minimal fly.toml

Commands to deploy:

bash
# step-by-step deployment commands

.dockerignore

node_modules/
.env
.env.local
*.log
.git

Security checklist:

  • App runs as non-root user
  • No secrets in the image layers
  • Only production dependencies installed
  • Health check defined
  • Image size under [target — e.g. 200MB for Node, 100MB for Python Alpine]

Flag any environment variable that looks like a secret — confirm it's being passed at runtime, not baked into the image.

© hamzafarooq, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/dockerfile-generator of hamzafarooq/claude-code-starter.

Open the folder on GitHubat commit 172c531

Compare with similar skills

Dockerfile Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dockerfile Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dockerfile Generator this skillhamzafarooq/claude-code-starter145—~355Automated safety check: NotesMIT
Iron Proxy Gateway for NanoClawnanocoai/nanoclaw31k—~4.6kAutomated safety check: NotesMIT
GreptimeDB Dev Docker ImageGreptimeTeam/greptimedb6.7k—~4kAutomated safety check: NotesApache-2.0
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2606 repos~1.1kAutomated safety check: NotesCustom licence
LangBot Deployment Guidelangbot-app/LangBot18k—~1.2kAutomated safety check: NotesApache-2.0
Build Openshell Mxc WindowsNVIDIA/OpenShell15k—~4.9kAutomated safety check: PassApache-2.0

Similar skills

  • Installs or refreshes Iron Proxy and its Iron Control web console for NanoClaw, with a local Docker setup, database, credentials and a human approval bridge.

    31k GitHub stars~4.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • GreptimeDB Dev Docker Image

    GreptimeTeam/greptimedb

    Packages a locally built GreptimeDB debug binary into a development-only Docker image for local-cluster testing, with an optional push to a dev registry.

    6.7k GitHub stars~4k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    260 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • LangBot Deployment Guide

    langbot-app/LangBot

    Deploys and configures a LangBot instance with Docker Compose or Kubernetes, covering config.yaml, the Box sandbox runtime, the plugin runtime and the global API key.

    18k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Official

    Maintain and validate OpenShell's build-only Windows MSVC lane for x64 and ARM64.

    15k GitHub stars~4.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Omnigent Docker Compose Deploy

    omnigent-ai/omnigent

    Brings up the Omnigent server and Postgres as a Docker compose stack on any Docker host, and covers the Dockerfile's runtime and host build targets for extending it to a new platform.

    11k GitHub stars~1.3k tokensUpdated today
    DevOps & CloudAuto-check: notes

More from hamzafarooq/claude-code-starter

All 29 skills in this repo
  • Beautiful HTML

    hamzafarooq/claude-code-starter

    Turn any document, proposal, report, or outline into a stunning single-file HTML presentation using 34 pre-built professional templates.

    145 GitHub stars~1.6k tokensUpdated 24 days ago
    Auto-check passed
  • Claude Code Deck

    hamzafarooq/claude-code-starter

    Generate a complete, ready-to-share HTML presentation explaining Claude Code, Skills, Sub Agents, Hooks, and Multi-Agent Systems — designed for product managers.

    145 GitHub stars~972 tokensUpdated 24 days ago
    Auto-check passed
  • Competitor Research

    hamzafarooq/claude-code-starter

    Research 3–5 competitors for any product or feature. An agent skill from hamzafarooq/claude-code-starter.

    145 GitHub stars~1.6k tokensUpdated 24 days ago
    Auto-check passed
  • Frontend Slides

    hamzafarooq/claude-code-starter

    Create stunning, animation-rich single-file HTML presentations from scratch or by converting a PowerPoint (.pptx) file.

    145 GitHub stars~1.4k tokensUpdated 24 days ago
    Auto-check passed
  • Md To PDF

    hamzafarooq/claude-code-starter

    Convert any markdown file to a clean PDF. An agent skill from hamzafarooq/claude-code-starter.

    145 GitHub stars~598 tokensUpdated 24 days ago
    Auto-check passed
  • User Story Writer

    hamzafarooq/claude-code-starter

    Converts feature ideas or rough bullets into user stories with acceptance criteria.

    145 GitHub stars~531 tokensUpdated 24 days ago
    Auto-check passed

Works with

Categories

Questions about Dockerfile Generator

What does Dockerfile Generator do?

Create a production-ready Dockerfile and deployment config for any project. Dockerfile Generator is an agent skill from hamzafarooq/claude-code-starter. Create a production-ready Dockerfile and deployment config for any project.

When should I use Dockerfile Generator?

Dockerfile Generator fits situations like: the user wants to containerize their app; deploy to Fly.io; any Docker-based platform.

How do I install Dockerfile Generator in Claude Code?

Run `npx skills add hamzafarooq/claude-code-starter --skill dockerfile-generator -a claude-code`. Or copy the skill folder (.claude/skills/dockerfile-generator in hamzafarooq/claude-code-starter) into .claude/skills/dockerfile-generator in your project. Claude Code loads it when a task matches its description.

How do I install Dockerfile Generator in Codex?

Run `npx skills add hamzafarooq/claude-code-starter --skill dockerfile-generator -a codex`. Or copy the skill folder (.claude/skills/dockerfile-generator in hamzafarooq/claude-code-starter) into .agents/skills/dockerfile-generator in your project. Codex loads it when a task matches its description.

Can I use Dockerfile Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hamzafarooq/claude-code-starter --skill dockerfile-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dockerfile-generator, .gemini/skills/dockerfile-generator, .github/skills/dockerfile-generator and .opencode/skills/dockerfile-generator in your project.

What does Dockerfile Generator need to run?

SKILL.md names no scripts, command-line tools or credentials: Dockerfile Generator is instructions for the agent only. Our summary lists: Python 3; Docker.

Does Dockerfile Generator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dockerfile Generator safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Dockerfile Generator use?

Dockerfile Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dockerfile Generator use?

About 355 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dockerfile Generator?

Skills that share tags, products or a category with Dockerfile Generator: Iron Proxy Gateway for NanoClaw (nanocoai/nanoclaw, 31k stars), GreptimeDB Dev Docker Image (GreptimeTeam/greptimedb, 6.7k stars), Senior DevOps Toolkit (maslennikov-ig/claude-code-orchestrator-kit, 260 stars) and LangBot Deployment Guide (langbot-app/LangBot, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dockerfile Generator?

hamzafarooq (a GitHub user) maintains it in hamzafarooq/claude-code-starter, which has 145 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on September 13, 2026.

Source: hamzafarooq/claude-code-starter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.