generate-docker

generate-docker is a command for coding agents from dykyi-roman/awesome-claude-code. It costs 28 tokens per session (1,802 once invoked), scanned A, original, MIT.

A generator for Docker setup files for PHP projects. Docker packages an application and its runtime settings into containers; the command can create files for the application, services, web proxy, startup process, and development shortcuts.

In plain words
What is it for?
Use it to generate a Dockerfile, Docker Compose configuration, Nginx reverse-proxy settings, an entrypoint script, a Makefile, environment templates, or the full set.
Why use it?
It reduces the effort of assembling consistent local or production container configuration from separate files.

Command

Part of the acc plugin — 101 skills, 26 commands, 68 agents, 1 hook 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 commands/dykyi-roman/awesome-claude-code/generate-docker
Clone the repo
git clone --depth 1 https://github.com/dykyi-roman/awesome-claude-code

Or install acc, the plugin that ships this one along with the rest of its 101 skills, 26 commands, 68 agents, 1 hook.

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 generate-docker

README.md
[![agentmods](https://agentmods.dev/badge/commands/dykyi-roman/awesome-claude-code/generate-docker.svg)](https://agentmods.dev/commands/dykyi-roman/awesome-claude-code/generate-docker)
Your own site
<a href="https://agentmods.dev/commands/dykyi-roman/awesome-claude-code/generate-docker"><img src="https://agentmods.dev/badge/commands/dykyi-roman/awesome-claude-code/generate-docker.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,802 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.00028 $0.01802
Opus 5 $0.00014 $0.00901
Sonnet 5 $0.00006 $0.00360
Haiku 4.5 $0.00003 $0.00180

Measured yesterday against content hash c56555cd04ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generate-docker 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 yesterday.

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.

commands/generate-docker.md · 280 lines

How it starts

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

Generate Docker Components

Generate Docker configuration components for PHP projects with production-ready defaults.

Input Parsing

Parse $ARGUMENTS to extract component type, optional name, and meta-instructions:

Format: <component-type> [name] [-- <meta-instructions>]

Examples:
- /acc:generate-docker dockerfile
- /acc:generate-docker compose
- /acc:generate-docker full
- /acc:generate-docker dockerfile production -- with Symfony
- /acc:generate-docker compose myapp -- with PostgreSQL and Redis
- /acc:generate-docker nginx -- with SSL termination
- /acc:generate-docker entrypoint -- with migrations

Parsing rules:

  1. First part = component type (required, see list below)
  2. Second part = name (optional project/service name)
  3. After -- = meta-instructions (optional customizations)

Supported Components

Component Aliases Description
dockerfile df Production multi-stage Dockerfile
compose dc, docker-compose Docker Compose configuration
nginx web Nginx reverse proxy config
entrypoint ep, entry Container entrypoint script
makefile mk, make Docker Makefile commands
env environment Environment variable template
healthcheck hc, health Health check script
full all, stack Complete Docker setup

Pre-flight Check

  1. Verify valid component type:

    • If not provided, ask user which component to generate
    • If invalid, show list of supported components
  2. Check project structure:

    # PHP project info
    cat composer.json 2>/dev/null
    
    # Detect framework
    grep -E "(symfony|laravel)" composer.json 2>/dev/null
    
    # Check existing Docker files
    ls Dockerfile* docker-compose* .dockerignore 2>/dev/null
    
    # Check project directories
    ls -d src/ app/ public/ config/ 2>/dev/null
    
  3. Detect framework and services:

    • Symfony: symfony/framework-bundle in composer.json
    • Laravel: laravel/framework in composer.json
    • MySQL: doctrine/dbal or ext-pdo_mysql
    • PostgreSQL: ext-pdo_pgsql
    • Redis: predis/predis or ext-redis
    • RabbitMQ: php-amqplib/php-amqplib or ext-amqp

Read the full file on GitHub · 280 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. yesterday First seen · 280 lines · 28 tokens per session scan A c56555cd04ec

Subscribe to this mod's changes

generate-docker is a command published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 19d ago), licensed MIT. It adds 28 tokens to every session and 1,802 once invoked, about $0.0001 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-09-03.