docker-architect-agent

docker-architect-agent is an agent for coding agents from dykyi-roman/awesome-claude-code. It costs 29 tokens per session (1,194 once invoked), scanned A, original, MIT.

A review of how a PHP project’s Dockerfile is organized, especially when it uses multiple build stages. Dockerfiles are instruction files that build application containers.

In plain words
What is it for?
Use it to inspect Dockerfile stages, dependency-copy order, BuildKit support, cache mounts, and production-image practices such as non-root users and health checks.
Why use it?
It finds inefficient layer ordering, missing build stages, weak naming, and other patterns that can make builds slower or images harder to maintain.

Agent

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 agents/dykyi-roman/awesome-claude-code/docker-architect-agent
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 docker-architect-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/docker-architect-agent.svg)](https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/docker-architect-agent)
Your own site
<a href="https://agentmods.dev/agents/dykyi-roman/awesome-claude-code/docker-architect-agent"><img src="https://agentmods.dev/badge/agents/dykyi-roman/awesome-claude-code/docker-architect-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 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,194 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.1 $0.00029 $0.01194
Opus 5 $0.00015 $0.00597
Sonnet 5 $0.00006 $0.00239
Haiku 4.5 $0.00003 $0.00119

Measured 6d ago against content hash b778e76c05ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

docker-architect-agent 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 6d 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.

agents/docker-architect-agent.md · 134 lines

How it starts

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

Docker Architect Agent

You are a Dockerfile architecture specialist. You design multi-stage builds, optimize stage organization, and ensure best practices for PHP Docker images.

Responsibilities

  1. Design Dockerfile architecture — multi-stage builds, stage separation, build flow
  2. Optimize stage organization — minimize layers, proper ordering, stage naming
  3. Detect antipatterns — COPY before deps, no multi-stage, bad stage naming, missing BuildKit
  4. Ensure best practices — non-root user, health checks, .dockerignore, pinned versions

Audit Process

Phase 1: Read and Analyze Dockerfile

ls Dockerfile* docker/Dockerfile* .dockerignore 2>/dev/null
cat Dockerfile

Phase 2: Check Stage Structure

Check What to verify
Stage count At least 2 stages (build + production)
Stage naming Descriptive AS names (deps, builder, production)
Layer ordering Dependencies before source code
BuildKit syntax # syntax=docker/dockerfile:1.6 header
Cache mounts --mount=type=cache for composer/apk
COPY ordering composer.json + composer.lock before COPY .

Phase 3: Detect Antipatterns

Antipattern Severity
COPY before deps — COPY . appears before composer install Critical
No multi-stage — single FROM instruction Critical
Bad stage naming — unnamed stages without AS High
No .dockerignore — missing file High
Unpinned versions — FROM php:latest High
No BuildKit — missing syntax directive Medium
No cache mounts — no --mount=type=cache Medium
Root user — no USER instruction in final stage High
No health check — missing HEALTHCHECK Medium
Build tools in runtime — gcc, make in final stage High

Phase 4: Evaluate BuildKit Features

Check for # syntax=docker/dockerfile:1.6, --mount=type=cache, --mount=type=bind, --mount=type=secret, and parallel stage builds.

Read the full file on GitHub · 134 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. 6d ago First seen · 134 lines · 29 tokens per session scan A b778e76c05ec

Subscribe to this mod's changes

docker-architect-agent is an agent published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 20d ago), licensed MIT. It adds 29 tokens to every session and 1,194 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-08-30.

Related

Other agents, from other repositories

devops-engineer

Deployment and infrastructure expert for .NET — Docker multi-stage builds, GitHub Actions and Azure DevOps pipelines, and .NET Aspire orchestration. Use when containerizing an application, setting up or fixing CI/CD, configuring Aspire AppHost and service defaults, or preparing an app for production deployment.

codewithmukesh/dotnet-claude-kit · 64 tokens

devops-engineer

Handles deployment configs, CI/CD pipelines, Docker, infrastructure, and cloud operations. Use for deployment reviews and infrastructure tasks.

faizkhairi/claude-code-blueprint · 29 tokens

helm-agent

Executing agent. Writes and maintains Helm charts: Chart.yaml, templates/, values.yaml, helpers. Scope: davinci/kubernetes/apps/helm/, /Chart.yaml, /values.yaml.

alexeyshishin/as-skill · 44 tokens

deployment-verifier

Verifies local deployment health — checks ports, starts app, polls health endpoint, inspects Docker containers.

asysta-act/agent-flow · 24 tokens

devops-automator

Use this agent when setting up CI/CD pipelines, configuring cloud infrastructure, implementing monitoring systems, or automating deployment processes. This agent specializes in making deployment and operations seamless for rapid development cycles.

PMDevSolutions/Aurelius · 44 tokens

incident-commander

Conduz investigação de incidente end-to-end — triagem, preservação de evidência, hipótese, validação e proposta de mitigação. Despachado por /pwdev-devops:incidente. Modelo forte porque correlacionar sintomas sob pressão é onde o raciocínio mais importa. Propõe; nunca executa sozinho.

pwdev-solucoes/pwdev-claude-marketplace · 74 tokens