/cc-arsenal:docker-init [--services postgres,redis] [--prod] [--with-dockerfile]from cc-arsenal
Generates production-ready docker-compose.yml and Dockerfiles by scanning manifest files and source code for service dependencies, with health checks, security hardening, and resource limits.
Ships in cc-arsenal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate production-ready docker-compose.yml and Dockerfile with auto-detected services, health checks, resource limits, and security hardening.
Only generate configs based on what the codebase actually uses:
package.json, pyproject.toml, requirements.txt, etc. before proposing services.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.${VAR} references pointing at .env instead..dockerignore before changing it, if it exists.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:
DATABASE_URL, REDIS_URL, MONGODB_URI, RABBITMQ_URL patterns.env.example for service URLsREADME.md for setup instructions mentioning servicesCheck for existing Docker files:
ls docker-compose.yml docker-compose.yaml Dockerfile .dockerignore 2>/dev/null
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.
Only ask about services the scan didn't already resolve:
--with-dockerfile).mailhog, smtp, mailer), ask whether to add Mailhog, don't ask otherwise.Generate docker-compose.yml with no version: key (deprecated in modern Compose). Every service must meet these goals:
references/service-catalog.md), alpine/slim variant when one exists.healthcheck with interval, timeout, retries and a start_period sized to the service's boot time; commands are in the catalog. Dependents wait with depends_on: condition: service_healthy.security_opt: [no-new-privileges:true], on every service.deploy.resources.limits for cpus and memory.restart: unless-stopped.${VAR} references to .env, with ${VAR:?required} for passwords and ${VAR:-default} for harmless values such as user and database name.frontend (app and reverse proxy), backend (app and services), db (services and databases only).Kafka defaults to KRaft mode, not Zookeeper. A Zookeeper-backed Kafka is legacy topology and adds a second container for no benefit in a dev/prod compose file. Use the single-node KRaft form unless the user explicitly asks for a Zookeeper-based cluster:
services:
kafka:
image: apache/kafka:latest # pin to a specific tag (e.g. 3.8.0) before deploying to prod
environment:
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@kafka:9093
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
healthcheck:
test: ["CMD-SHELL", "kafka-broker-api-versions.sh --bootstrap-server localhost:9092"]
interval: 10s
timeout: 5s
retries: 5
security_opt:
- no-new-privileges:true
Health check commands for other services (Postgres, MySQL, Redis, MongoDB, RabbitMQ, MinIO) are in references/service-catalog.md.
--with-dockerfile)Write a Dockerfile for the detected stack that meets these goals:
.nvmrc, engines, requires-python, go.mod).npm ci, uv sync --frozen, bundle config set deployment true).USER before CMD.COPY .env, no secrets in ARG/ENV; use BuildKit --mount=type=secret when a build needs one.HEALTHCHECK when the app serves HTTP or another probeable port; skip it for workers and CLIs.EXPOSE for the real port, and exec-form CMD.Also write a .dockerignore that excludes VCS data, .env*, dependency directories, caches and build output, and the Dockerfile and compose files themselves.
--prod)Create docker-compose.prod.yml as an overlay that only holds the differences from the base file:
ports: []).restart: always.deploy.resources.limits than the dev defaults.json-file logs (max-size, max-file).Copy this checklist and tick each step:
- [ ] hadolint Dockerfile (skip if no Dockerfile)
- [ ] docker build -t <project>-check . (skip if no Dockerfile)
- [ ] docker compose config --quiet (add -f docker-compose.yml -f docker-compose.prod.yml if --prod)
- [ ] .dockerignore exists and .env is in .gitignore
hadolint install: brew install hadolint, or without installing, docker run --rm -i hadolint/hadolint < Dockerfile.
Fix every finding, then re-run the failed step and the ones after it. Stop after 3 rounds and report what still fails. Don't suppress a hadolint rule to get green unless the reason is stated to the user.
If a tool is unavailable (no docker, no hadolint), skip its steps and tell the user which checks were skipped and the commands to run once the tool is available. Never claim a check passed that was not run.
Remind the user to add real secrets to .env.
--services <list>: Comma-separated list of additional services (e.g., --services postgres,redis,meilisearch)--prod: Also generate docker-compose.prod.yml with production settings--with-dockerfile: Also generate Dockerfile and .dockerignoreversion: field in compose files: deprecated in modern Docker Compose.${VAR} references pointing to .env.USER.deploy.resources.limits on every service to prevent a runaway container from starving the host.# Auto-detect and generate docker-compose.yml
/docker-init
# Generate with specific services
/docker-init --services postgres,redis,meilisearch
# Generate compose + Dockerfile
/docker-init --with-dockerfile
# Full production setup
/docker-init --with-dockerfile --prod
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Docker, Docker Compose, PostgreSQL, MySQL, Redis, MongoDB, Kafka, RabbitMQ
Other plugins' skills for the same job
npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenal52 skills in this plugin
/agent-browserHeadless browser automation CLI optimized for AI agents: drives a real browser via accessibility-tree snapshots and @e1-style refs for ~93% less context than raw DOM tools. Use whenever a task needs to interact with a live web page: click, fill forms, log in, extract text or data, take screenshots, test a running web app, or scrape a site. Triggers on 'automate the browser', 'fill this form', 'click the button', 'take a screenshot of the page', 'log into', 'scrape this site', 'test my web app', 'headless browser'. Not for Playwright test-suite authoring or CDP/service-worker work needing the full JS API: use Playwright directly. Not for driving the user's own already-open, logged-in Chrome tab: use claude-in-chrome for that./anything-to-skillTurns a docs site, local folder, PDF or book, YouTube video, playlist or channel, or a topic into a source-grounded, token-efficient agent skill (hub SKILL.md, sectioned references, INDEX, evals), and can compact it into a lean expert skill. Use for "make a skill from these docs", "turn this channel into a skill". Not for a skill from your own description (use create-skill), improving one (use improve-skill) or finding third-party skills (use find-skills)./ci-generateGenerate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this skill only authors the pipeline file itself./ci-localRun the checks a GitHub Actions workflow would run, locally, when Actions is unavailable or out of quota. Parses .github/workflows/*.yml, extracts the jobs/steps that gate merges (lint, typecheck, test, build), translates them to local commands respecting the workflow's pinned node/python versions and env, executes them sequentially, and reports a parity table of what passed locally vs. what can't be replicated (service containers, secrets, matrix dimensions) and why. Activates on "CI quota", "Actions is down/unavailable", "run CI locally", "verify like CI would", "run the pipeline on my machine", or a pre-push request to check a branch the way CI checks it. Not for generating a new workflow file (use ci-generate), not for debugging why a specific CI run failed on GitHub (use fix-bug or review-code), and not for the release/hotfix gating process itself (use gitflow), this skill only produces the local stand-in when the real thing isn't reachable./clotho-researchFind what a change will actually touch before planning it — the existing code that must change, the prior art worth copying, and the risks that will bite. Trigger on "what would this change touch", "research this before we plan it", or an automated pre-planning step. Reports files, sources, and risks; it never proposes an implementation and never edits anything. Not for auditing dependencies (use review-deps), not for writing the plan itself (use project-planner), and not for reviewing code that already exists (use review-code)./codex-imagegenGenerates images and polished raster art (logos, mascots, hero images, icons, characters, sprite sheets, illustrations, product mockups) by driving Codex CLI's $imagegen skill. This is the default image generator, use it for any request to generate or create an image or visual asset, including "generate an image", "create a hero image", "make a mascot", "design a logo", "draw an icon", "generate a sprite sheet", or "make an illustration". Requires the `codex` CLI installed and authenticated (ChatGPT auth). Not for architecture, flow, or sequence diagrams (use docs-diagram).