docker-init

docker-init is a skill for Claude Code from mgiovani/cc-arsenal. It costs 164 tokens per session (2,211 once invoked), scanned A, original, MIT.

A setup generator for Docker files: Dockerfile instructions for building an application image and Docker Compose configuration for running the application with its supporting services. It scans the project to identify the technologies and services it actually uses.

In plain words
What is it for?
Use it to generate or update Docker Compose and Dockerfile configurations for applications that depend on services such as databases, Redis, message queues, search systems, or object storage.
Why use it?
It reduces manual container setup and avoids adding services that the codebase does not need. It also accounts for health checks, resource limits, security settings, existing files, and secret handling.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the cc-arsenal-dev plugin — 19 skills shipped together , and of cc-arsenal

Good fit Use it to generate or update Docker Compose and Dockerfile configurations for applications that depend on services such as databases, Redis, message queues, search systems, or object storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mgiovani/cc-arsenal/docker-init
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 mgiovani/cc-arsenal --skill docker-init
Clone the repo
git clone --depth 1 https://github.com/mgiovani/cc-arsenal

Made for: Claude Code.

Or install cc-arsenal-dev, the plugin that ships this one along with the rest of its 19 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 docker-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/docker-init/github.svg)](https://agentmods.dev/skills/mgiovani/cc-arsenal/docker-init)
Your own site
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/docker-init"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/docker-init/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 docker-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/docker-init"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/docker-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,211 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.00164 $0.02211
Opus 5.5 $0.00066 $0.00884
Sonnet 5.5 $0.00033 $0.00442
Haiku 4.5 $0.00016 $0.00221

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

Security

Grade A, and why

docker-init 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 22d 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.

skills/docker-init/SKILL.md · 174 lines

How it starts

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

Docker Init

Generate production-ready docker-compose.yml and Dockerfile with auto-detected services, health checks, resource limits, and security hardening.

Guardrails

Only generate configs based on what the codebase actually uses:

  1. Scan before generating: read package.json, pyproject.toml, requirements.txt, etc. before proposing services.
  2. Read existing files first: if docker-compose.yml or Dockerfile already exist, read them fully before proposing any change, and ask the user whether to update in place or regenerate. Never overwrite an existing service definition you haven't read.
  3. Only well-known official images: do not invent image names or tags.
  4. No secrets in files: never put secrets, passwords, or API keys in compose files, use ${VAR} references pointing at .env instead.
  5. Read .dockerignore before changing it, if it exists.

Workflow

Phase 1: Scan Project

Detect the tech stack and dependencies from manifest files:

# Node.js
cat package.json 2>/dev/null | grep -E '"(pg|mysql|redis|mongodb|rabbitmq|kafka|meilisearch|elasticsearch|celery)"'

# Python
cat requirements.txt pyproject.toml 2>/dev/null | grep -iE "psycopg|pymysql|redis|pymongo|pika|kafka|celery"

# Ruby
cat Gemfile 2>/dev/null | grep -E "pg|mysql|redis|mongo|sidekiq"

# Go
cat go.mod 2>/dev/null | grep -E "postgres|mysql|redis|mongo"

# Rust
cat Cargo.toml 2>/dev/null | grep -E "postgres|mysql|redis|mongo"

Also scan:

  • Source files for DATABASE_URL, REDIS_URL, MONGODB_URI, RABBITMQ_URL patterns
  • Existing .env.example for service URLs
  • README.md for setup instructions mentioning services

Check for existing Docker files:

ls docker-compose.yml docker-compose.yaml Dockerfile .dockerignore 2>/dev/null

Phase 2: Propose Services

Map detected dependencies to Docker services and show the proposal for the user to confirm/modify. See references/service-catalog.md for the full dependency-to-image mapping, load it whenever the scan surfaces a dependency not already covered by the examples in this file.

Read the full file on GitHub · 174 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 22d ago Changed · -88 lines 695b3c32a14f
  2. 1mo ago Changed 41602e28898c
  3. 1mo ago Changed · +1 lines af4d41fdf33b
  4. 1mo ago First seen · 261 lines · 164 tokens per session scan A 295815494eb4

Subscribe to this mod's changes

docker-init is a skill published in the GitHub repository mgiovani/cc-arsenal (8 stars, last pushed 2d ago), licensed MIT. It adds 164 tokens to every session and 2,211 once invoked, about $0.0007 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-08-31.

Related

Other skills, from other repositories