docker-architecture

docker-architecture is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 8 tokens per session (3,133 once invoked), scanned A, original, MIT.

A command that designs a complete Docker architecture from a project's description, technology stack, required services, and constraints. Docker packages applications and their dependencies into isolated containers.

In plain words
What is it for?
Use it to design container layouts for applications such as an e-commerce REST API, including services like PostgreSQL, Redis, and Elasticsearch.
Why use it?
It helps translate project requirements into a concrete architecture and identifies dependencies before Docker files and related setup are created.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks 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/thebeardedbearsas/claude-craft/docker-architecture
Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

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-architecture

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/docker-architecture.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/docker-architecture)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/docker-architecture"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/docker-architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,133 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.1 $0.00008 $0.03133
Opus 5 $0.00004 $0.01566
Sonnet 5 $0.00002 $0.00627
Haiku 4.5 $0.00001 $0.00313

Measured 2d ago against content hash 73cb9551720c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

docker-architecture scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

CMD wget -q --spider http://localhost:3000/health || exit 1
Infra/i18n/de/Docker/commands/docker-architecture.md · 441 lines

How it starts

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

Vollständige Docker-Architektur

Du bist ein Senior Docker-Architekt. Du musst eine vollständige containerisierte Architektur aus Projektspezifikationen entwerfen.

Argumente

$ARGUMENTS

Argumente:

  • Projektbeschreibung
  • Tech Stack (z.B. symfony, node, python)
  • Benötigte Services (z.B. postgres, redis, elasticsearch)
  • Einschränkungen (z.B. prod, multi-env, microservices)

Beispiel: /docker:architecture "E-Commerce REST API" stack:node services:postgres,redis,elasticsearch

Plan-Modus

Der Plan-Modus wird empfohlen. Claude aktiviert den Plan-Modus, um den Ansatz zu strukturieren, Abhängigkeiten zu identifizieren und eine Generierungsstrategie vorzustellen, bevor Artefakte erstellt werden.

MISSION

Schritt 1: Discovery

══════════════════════════════════════════════════════════════
🏗️ DOCKER ARCHITEKTUR
══════════════════════════════════════════════════════════════

Projekt: {name}
Beschreibung: {beschreibung}

──────────────────────────────────────────────────────────────
📋 ANFORDERUNGSANALYSE
──────────────────────────────────────────────────────────────

### Tech Stack
| Komponente | Technologie | Version |
|------------|-------------|---------|
| Backend | {tech} | {version} |
| Datenbank | {tech} | {version} |
| Cache | {tech} | {version} |

### Benötigte Services
| Service | Verwendung | Kritikalität |
|---------|------------|--------------|
| {service} | {verwendung} | Hoch/Mittel/Niedrig |

### Umgebungen
| Env | Zweck | Besonderheiten |
|-----|-------|----------------|
| dev | Entwicklung | Hot-reload, Debug |
| staging | Validierung | Production-ähnlich |
| prod | Produktion | Performance, Sicherheit |

Schritt 2: Architektur-Design

──────────────────────────────────────────────────────────────
🔷 SERVICE-TOPOLOGIE
──────────────────────────────────────────────────────────────

┌─────────────────────────────────────────────────────────────┐
│                        FRONTEND                              │
│  ┌───────────────┐                                          │
│  │    Traefik    │ ─── Port 80/443                          │
│  │  (reverse     │                                          │
│  │   proxy)      │                                          │
│  └───────┬───────┘                                          │
└──────────┼──────────────────────────────────────────────────┘
           │
┌──────────▼──────────────────────────────────────────────────┐
│                        BACKEND                               │
│  ┌───────────────┐    ┌───────────────┐                     │
│  │      API      │────│    Workers    │                     │
│  │   (app:3000)  │    │  (async jobs) │                     │
│  └───────┬───────┘    └───────┬───────┘                     │
└──────────┼────────────────────┼─────────────────────────────┘
           │                    │
┌──────────▼────────────────────▼─────────────────────────────┐
│                         DATA                                 │
│  ┌──────────────┐  ┌─────────────┐  ┌───────────────┐       │
│  │  PostgreSQL  │  │    Redis    │  │   RabbitMQ    │       │
│  │   (db:5432)  │  │  (cache:    │  │  (queue:5672) │       │
│  │              │  │    6379)    │  │               │       │
│  └──────────────┘  └─────────────┘  └───────────────┘       │
└─────────────────────────────────────────────────────────────┘

──────────────────────────────────────────────────────────────
🔒 NETZWERK-SEGMENTIERUNG
──────────────────────────────────────────────────────────────

| Netzwerk | Services | Zugriff |
|----------|----------|---------|
| frontend | traefik | Öffentlich (80, 443) |
| backend | app, workers | Intern |
| data | db, redis, queue | Isoliert intern |

Read the full file on GitHub · 441 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. 2d ago First seen · 441 lines · 8 tokens per session scan A 73cb9551720c

Subscribe to this mod's changes

docker-architecture is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 3d ago), licensed MIT. It adds 8 tokens to every session and 3,133 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.