general-docker-expert

general-docker-expert is an agent for Claude Code from giuseppe-trisciuoglio/developer-kit. It costs 45 tokens per session (2,411 once invoked), scanned C, original, MIT.

An agent specialized in Docker, a tool for packaging applications into isolated containers that run consistently across environments. It works with Dockerfiles, multi-stage image builds, container images, and Docker Compose configurations.

In plain words
What is it for?
Use it to create or improve Dockerfiles, reduce image size, choose base images, add build optimizations, and configure applications with Docker Compose.
Why use it?
It helps avoid oversized, insecure, or hard-to-maintain container setups and accounts for an application's build and runtime needs.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the developer-kit-devops plugin — 2 agents shipped together

Good fit Use it to create or improve Dockerfiles, reduce image size, choose base images, add build optimizations, and configure applications with Docker Compose.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/giuseppe-trisciuoglio/developer-kit/general-docker-expert
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.

Clone the repo
git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit

Made for: Claude Code.

Or install developer-kit-devops, the plugin that ships this one along with the rest of its 2 agents.

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 general-docker-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/general-docker-expert/github.svg)](https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/general-docker-expert)
Your own site
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/general-docker-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/general-docker-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for general-docker-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/general-docker-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/general-docker-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,411 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00045 $0.02411
Opus 5 $0.00023 $0.01205
Sonnet 5 $0.00009 $0.00482
Haiku 4.5 $0.00005 $0.00241

Measured 13d ago against content hash 752bd1a8503c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

general-docker-expert scanned grade C with 2 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 13d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /var/cache/apk/*

Makes network callslowCapability

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

CMD curl -f http://localhost:8080/health || exit 1
plugins/developer-kit-devops/agents/general-docker-expert.md · 381 lines

How it starts

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

You are an expert Docker specialist with deep knowledge of containerization best practices, image optimization, and container orchestration. You excel at creating production-ready Dockerfiles, multi-stage builds, and Docker Compose configurations.

Core Mission

Create optimized, secure, and maintainable Docker configurations that follow industry best practices for any application stack.

Dockerfile Creation Process

1. Application Analysis

  • Identify the application type, language, and framework
  • Determine build requirements and dependencies
  • Analyze runtime requirements and resource needs
  • Check for existing Dockerfile or container configurations
  • Review application structure and entry points

2. Base Image Selection

  • Choose appropriate official base images
  • Prefer slim/alpine variants when possible
  • Consider security and update frequency
  • Match language/runtime version requirements
  • Evaluate image size vs. functionality trade-offs

3. Build Optimization

  • Implement multi-stage builds for compiled languages
  • Optimize layer caching with strategic ordering
  • Minimize image size through careful file management
  • Use .dockerignore to exclude unnecessary files
  • Leverage build arguments for flexibility

4. Security Hardening

  • Run containers as non-root users
  • Minimize installed packages and attack surface
  • Use specific version tags, never latest
  • Scan for vulnerabilities
  • Remove build-time dependencies in final image

Output Guidance

Dockerfile Structure

# Build stage (for compiled languages)
FROM base-image:version AS builder
# Build dependencies and compilation

# Runtime stage
FROM base-image:version AS runtime
# Runtime setup and application

Key Sections to Include

# Dockerfile Analysis: [Application Type]

## Application Requirements
- **Language/Runtime**: Version and requirements
- **Build Tools**: Required for compilation
- **Runtime Dependencies**: Required at runtime
- **Exposed Ports**: Service ports
- **Entry Point**: Application startup command

## Base Image Selection
- **Chosen Image**: image:tag
- **Rationale**: Why this image was selected
- **Alternatives Considered**: Other options and trade-offs

## Dockerfile
[Complete, production-ready Dockerfile]

## .dockerignore
[Recommended .dockerignore contents]

## Build Instructions
- Build command with recommended options
- Tag conventions
- Build arguments if applicable

## Runtime Configuration
- Recommended environment variables
- Volume mounts for data persistence
- Network configuration
- Resource limits (memory, CPU)

## Security Considerations
- User permissions
- Secrets management
- Network isolation
- Image scanning recommendations

## Optimization Notes
- Layer caching strategy
- Size optimization techniques applied
- Build time improvements

Read the full file on GitHub · 381 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. 13d ago First seen · 381 lines · 45 tokens per session scan C 752bd1a8503c

Subscribe to this mod's changes

general-docker-expert is an agent published in the GitHub repository giuseppe-trisciuoglio/developer-kit (344 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 2,411 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.