docker-init

docker-init is a skill for Claude Code, Codex from mgiovani/cc-arsenal. It costs 164 tokens per session (2,268 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 CodeCodex

Part of the cc-arsenal plugin — 53 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/mgiovani/cc-arsenal/docker-init
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, Codex.

Or install cc-arsenal, the plugin that ships this one along with the rest of its 53 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.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.svg" alt="Measured on agentmods" 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,268 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00164 $0.02268
Opus 5 $0.00082 $0.01134
Sonnet 5 $0.00033 $0.00454
Haiku 4.5 $0.00016 $0.00227

Measured 4d ago against content hash 295815494eb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 · 261 lines

How it starts

The opening of the file, as written. The whole thing — 261 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.
  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 · 261 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. 4d 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 (7 stars, last pushed 4d ago), licensed MIT. It adds 164 tokens to every session and 2,268 once invoked, about $0.0008 per session on Opus 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

test-environments

Design environment strategy for testing across dev, CI, preview, staging, and production — Docker Compose test infrastructure, multi-stage Dockerfiles, seed-data lifecycle, per-PR preview environments, production parity, and external-dependency stubbing at the HTTP boundary. Use when: "set up test environment,"…

petrkindlmann/qa-skills · 157 tokens

litestar-deployment

Auto-activate for Dockerfile, compose, Railway, Cloud Run, GKE, systemd, Kubernetes, Terraform, deploy scripts, or granian/litestar run at runtime. Not for packaging artifacts.

litestar-org/litestar-skills · 47 tokens

docker-and-orchestration

Enforces the Zero-Host-Dependencies engineering philosophy using Docker, Docker Compose, and a unified Makefile orchestration layer. Triggers when creating, refactoring, or containerizing applications, writing multi-stage Dockerfiles (Distroless/Scratch/Alpine), setting up split Compose topologies (base + dev…

racastellanosm/agent-skills · 82 tokens

devops

(forwward) Configures CI/CD pipelines, Docker, monitoring, alerting, and infrastructure with reliability-first defaults. Triggers on CI/CD, Docker, deployment, monitoring, alerting, infrastructure setup, or production debugging.

iankiku/forwward-teams · 49 tokens

analyzing-kubernetes-audit-logs

Parses Kubernetes API server audit logs (JSON lines) to detect exec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access. Builds threat detection rules from audit event patterns. Use when investigating Kubernetes cluster compromise or building k8s-specific SIEM detection rules.

Mikaru0Mystic/sectinel · 71 tokens

analyzing-docker-container-forensics

Investigate compromised Docker containers by analyzing images, layers, volumes, logs, and runtime artifacts to identify malicious activity and evidence.

Mikaru0Mystic/sectinel · 34 tokens