New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Generates optimized Dockerfiles and docker-compose files that follow container best practices.

version
1.0.0
GitHub stars
38
View on GitHub

What it does

  • Generates Dockerfiles and docker-compose.yml files tuned for smaller images and faster builds
  • Applies container best practices to the generated output, based on the plugin's listed description

Generate optimized Dockerfiles and docker-compose.yml with best practices

Add marketplace

/plugin marketplace add glincker/claude-code-marketplace

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install docker-wizard@glincker-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Docker Wizard

Generate production-ready Dockerfiles and docker-compose.yml files by analyzing your project. Follows best practices, optimizes image size, and includes security hardening.

What This Skill Does

  • Auto-detects project type and dependencies
  • Generates multi-stage builds for smaller images
  • Applies security best practices (non-root user, minimal base images)
  • Creates docker-compose.yml for multi-service setups
  • Includes development and production configurations
  • Optimizes layer caching for faster builds

Instructions

Phase 1: Project Analysis

  1. Detect project type:

    Use Glob to find:
    - package.json → Node.js
    - requirements.txt/pyproject.toml → Python
    - go.mod → Go
    - Cargo.toml → Rust
    - pom.xml/build.gradle → Java
    
  2. Analyze dependencies:

    Use Read to examine:
    - Runtime dependencies
    - Build dependencies
    - Environment requirements
    - Port requirements
    

Phase 2: Dockerfile Generation

Generate optimized multi-stage Dockerfile:

# Example for Node.js

# Stage 1: Dependencies
FROM node:20-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production

# Stage 2: Build
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

# Stage 3: Production
FROM node:20-alpine AS runner
WORKDIR /app

# Security: Run as non-root user
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --from=deps --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY --from=builder --chown=nextjs:nodejs /app/dist ./dist

USER nextjs
EXPOSE 3000
CMD ["node", "dist/index.js"]

Best practices applied:

  • Multi-stage builds (reduce image size by 70%)
  • Alpine base images (minimal attack surface)
  • Non-root user (security)
  • Optimized layer caching
  • .dockerignore generation

Phase 3: Docker Compose Generation

Create docker-compose.yml for multi-service setups:

version: '3.9'

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "3000:3000"
    environment:
      - NODE_ENV=production
      - DATABASE_URL=postgresql://user:pass@db:5432/myapp
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped

  db:
    image: postgres:16-alpine
    environment:
      - POSTGRES_USER=user
      - POSTGRES_PASSWORD=pass
      - POSTGRES_DB=myapp
    volumes:
      - postgres_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U user"]
      interval: 10s
      timeout: 5s
      retries: 5
    restart: unless-stopped

  redis:
    image: redis:7-alpine
    ports:
      - "6379:6379"
    restart: unless-stopped

volumes:
  postgres_data:

Phase 4: Additional Files

  1. .dockerignore:

    node_modules
    npm-debug.log
    .git
    .env
    *.md
    .vscode
    .idea
    coverage
    .DS_Store
    
  2. docker-compose.dev.yml (development overrides):

    version: '3.9'
    
    services:
      app:
        build:
          target: builder
        volumes:
          - .:/app
          - /app/node_modules
        environment:
          - NODE_ENV=development
        command: npm run dev
    

Language-Specific Optimizations

Node.js

# Use npm ci for faster, reproducible builds
RUN npm ci --only=production

# Leverage layer caching
COPY package*.json ./
RUN npm ci
COPY . .

Python

# Use pip with cache mount
RUN --mount=type=cache,target=/root/.cache/pip \
    pip install -r requirements.txt

# Use multi-stage for smaller images
FROM python:3.11-slim
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages

Go

# Multi-stage with scratch base
FROM golang:1.21-alpine AS builder
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .

FROM scratch
COPY --from=builder /app/app /app
CMD ["/app"]

Security Best Practices

  1. Non-root user: Always run as non-root
  2. Minimal base: Use Alpine or distroless
  3. No secrets: Never COPY .env files
  4. Health checks: Include HEALTHCHECK directive
  5. Read-only rootfs: Add security-opt in compose

Tool Requirements

  • Read: Examine project files
  • Write: Create Dockerfiles and compose files
  • Glob: Find project structure
  • Grep: Search for patterns
  • Bash: Test docker build (optional)

Examples

Example 1: Full Stack App

User: "Generate Docker setup for my MERN app"

Generated:

  • Multi-stage Dockerfile for React frontend
  • Dockerfile for Node.js backend
  • docker-compose.yml with MongoDB, Redis
  • Nginx reverse proxy config
  • .dockerignore for both services

Example 2: Microservices

User: "Create Docker Compose for microservices"

Generated:

  • Service-specific Dockerfiles
  • Shared docker-compose with networking
  • Environment-specific overrides
  • Health checks and dependencies

Best Practices

  • Use specific versions, not latest tags
  • Implement health checks for all services
  • Use bind mounts in development, volumes in production
  • Set resource limits (memory, CPU)
  • Enable logging drivers

Related Skills

Changelog

Version 1.0.0

  • Initial release
  • Multi-stage build support
  • Docker Compose generation
  • Security hardening
  • Multiple language support

Author

GLINCKER Team

From the glincker/claude-code-marketplace README

GLINCKER Claude Code Marketplace

Community-Driven Agent Marketplace - A comprehensive collection of specialized agents, automation workflows, and developer productivity tools

License: Apache 2.0 PRs Welcome Contributors Welcome Agents Commands

What GLINCKER Offers

A comprehensive marketplace of production-ready agents and tools designed to solve real developer pain points. Built by the community, for the community.

CategoryWhat We ProvideHow It Helps
Multi-Agent Coordination5 parallel agents for code reviewComprehensive analysis from security, performance, testing, architecture, and style perspectives
Workflow OrchestrationYAML-based agent chainingAutomate complex pipelines with conditional logic and parallel execution
Quick Access7 slash commandsInstant access to common development tasks
IntegrationsDatabase queries + 100+ APIsNatural language interface to your entire stack
InfrastructureDocker, Kubernetes, CI/CDProduction-ready configurations and best practices
Full SDLC Coverage23+ specialized agentsEnd-to-end support from development to deployment

See Complete Feature Matrix →

Why Choose GLINCKER

Comprehensive: 23+ specialized agents covering every stage of development Collaborative: Multi-agent coordination for complex tasks Automated: Workflow orchestration to chain agents together Production-Ready: Battle-tested configurations and best practices Open Source: Community-driven with transparent development Extensible: Easy to add your own agents and workflows

We're always improving - contributions welcome! See our Contributing Guide to help make this marketplace even better.

Architecture

Multi-Agent Code Review System

graph TD
    A[Pull Request] --> B[PR Reviewer Skill]
    B --> C[Security Agent]
    B --> D[Performance Agent]
    B --> E[Testing Agent]
    B --> F[Architecture Agent]
    B --> G[Style Agent]
    C --> H[Synthesizer]
    D --> H
    E --> H
    F --> H
    G --> H
    H --> I[Comprehensive Review Report]
    I --> J[Auto-Generated Fixes]

Workflow Composition Framework

┌─────────────────────────────────────────────────────────────┐
│                    Workflow Composer                        │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  Step 1: Code Quality Checks (Parallel)                    │
│  ┌──────────┐  ┌──────────┐  ┌──────────┐                 │
│  │  Linter  │  │ Security │  │  Tests   │                 │
│  └────┬─────┘  └────┬─────┘  └────┬─────┘                 │
│       └─────────────┼─────────────┘                        │
│                     ↓                                       │
│  Step 2: Conditional Logic                                 │
│  ┌─────────────────────────────────────┐                   │
│  │ IF all_passed THEN proceed          │                   │
│  │ ELSE notify and exit                │                   │
│  └────────────────┬────────────────────┘                   │
│                   ↓                                         │
│  Step 3: Deployment                                        │
│  ┌─────────────────────────────────────┐                   │
│  │ Deploy with retry (max 3 attempts)  │                   │
│  └─────────────────────────────────────┘                   │
│                                                             │
└─────────────────────────────────────────────────────────────┘

Quick Start

1. Install Marketplace

/plugin marketplace add https://github.com/GLINCKER/claude-code-marketplace

2. Install Essential Agents

# Core development agents
/plugin install pr-reviewer@glincker-marketplace
/plugin install security-scanner@glincker-marketplace
/plugin install docker-wizard@glincker-marketplace

# Or install all
/plugin marketplace install glincker-marketplace

3. Use Slash Commands

/review              # Multi-agent code review (5 agents)
/test                # Generate unit tests
/security-scan       # OWASP Top 10 audit
/docker-setup        # Generate Docker config
/k8s-setup           # Generate Kubernetes manifests
/deploy staging      # Orchestrated deployment
/workflow            # Create automated workflow

4. Natural Language Commands

# Database queries
"Show me users who signed up last month with revenue > $100"

# API integrations
"Send Slack message to #engineering: Deployment complete"

# Code migration
"Migrate this React component from class to hooks"

# Infrastructure
"Generate production-ready K8s manifests with autoscaling"

# Workflows
"Create workflow: test → security scan → deploy if all pass"

Featured Skills

Autonomous PR Reviewer

Location: skills/devops/pr-reviewer/

Multi-agent code review system with 5 specialized agents working in parallel.

  • Security Agent: Vulnerability scanning, OWASP compliance
  • Performance Agent: Bottleneck detection, optimization suggestions
  • Testing Agent: Coverage analysis, test case generation
  • Architecture Agent: Design pattern review, SOLID principles
  • Style Agent: Code style, documentation quality

Unique value: 5x more thorough than single-agent reviews, generates actionable fixes.

Workflow Composer

Location: skills/automation/workflow-composer/

First skill composition framework for Claude Code. Chain multiple skills with YAML configuration.

steps:
  - name: quality-checks
    parallel:
      - skill: security-scan
      - skill: test-runner
      - skill: linter

  - name: deploy
    when: ${steps.quality-checks.all_passed}
    skill: deploy-orchestrator
    retry:
      max_attempts: 3
      backoff: exponential

Unique value: Build complex automation pipelines without coding.

Database Query (Natural Language)

Location: skills/integrations/database-query/

Query any database using natural language with automatic optimization.

-- Input: "Show me users who signed up last month"
-- Generated:
SELECT * FROM users
WHERE created_at >= NOW() - INTERVAL '1 month'
ORDER BY created_at DESC;

-- Includes: Query optimization, index suggestions, EXPLAIN ANALYZE

Supported: PostgreSQL, MySQL, MongoDB, SQLite, Redis

Unique value: Only skill with query optimization and index suggestions.

Code Migrator

Location: skills/development/code-migrator/

Automated legacy code modernization with risk assessment.

Supported migrations:

  • Python 2 to Python 3
  • JavaScript to TypeScript
  • React Classes to Hooks
  • Callbacks to Async/Await
  • Framework upgrades (Django, Rails, Express)

Unique value: AI-powered risk assessment + automated test generation.

API Connector

Location: skills/integrations/api-connector/

Natural language interface to 100+ popular APIs.

Supported services:

  • Development: GitHub, GitLab, Linear, Jira
  • Communication: Slack, Discord, Twilio
  • Payments: Stripe, PayPal, Square
  • Cloud: AWS, Google Cloud, Azure
  • AI: OpenAI, Anthropic, Hugging Face
  • And 90+ more

Unique value: Handles authentication (OAuth, JWT), generates integration code.

Essential Skills

  • README Generator (skills/documentation/readme-generator/): Analyze project structure and generate comprehensive documentation
  • Unit Test Generator (skills/testing/unit-test-generator/): Create tests for multiple languages with coverage analysis

Comparison

FeatureGLINCKEROther Marketplaces
Multi-Agent Skills5 parallel agentsNone
Workflow OrchestrationYAML-basedNone
API Integrations100+ servicesFew (5-10)
Database QueryWith optimizationBasic/None
Code MigrationAI + risk assessmentNone
Code GenerationMulti-languageLimited

Use Cases

Startup: "Set up CI/CD, generate tests, create documentation" → Automated workflow handles everything

Enterprise: "Migrate Python 2 monolith to Python 3 microservices" → Risk-assessed migration with automated testing

Developer: "Review code, optimize, and deploy" → Multi-agent review with automated deployment

Skill Categories

skills/
├── development/      # Code migration, refactoring, architecture
├── devops/           # PR review, CI/CD, deployment
├── testing/          # Unit tests, integration tests, coverage
├── documentation/    # README, API docs, changelogs
├── integrations/     # APIs, databases, external services
├── automation/       # Workflows, task automation
├── data-science/     # Data analysis, visualization
└── security/         # Audits, vulnerability scanning

Skill Structure

skills/category/your-skill/
├── SKILL.md           # Required: Skill definition with YAML frontmatter
├── scripts/           # Optional: Helper scripts
└── templates/         # Optional: File templates

Minimal SKILL.md

---
name: your-skill
description: What your skill does
allowed-tools: ["Read", "Write"]
version: 1.0.0
author: Your Name
---

# Instructions

Clear instructions for Claude on executing this skill.

## Examples

Concrete usage examples.

Contributing

  1. Fork repository
  2. Create skill in appropriate category
  3. Follow Skill Template
  4. Submit pull request
  5. Pass community review

Resources:

Quality Standards

All skills must have:

  • Clear documentation with examples
  • Minimal tool permissions (principle of least privilege)
  • Security-conscious implementation
  • Error handling for edge cases
  • Automated testing where applicable

Safety

Skills execute code on your system. Before installing:

  1. Review source code
  2. Check author reputation
  3. Understand required permissions
  4. Only install from trusted sources

Community

Resources

License

Apache License 2.0 - See LICENSE

Acknowledgments

Built on:

  • Anthropic's Skills - Foundation
  • Claude Code community - Inspiration
  • Open source contributors - Innovation

Made with Claude Code by the GLINCKER community

Details

Marketplace
glincker/claude-code-marketplace
Source
skills/devops/docker-wizard
Category
Community
Keywords
docker, containerization, dockerfile, devops
Listed since
Apr 7, 2026

More from glincker/claude-code-marketplace

All 24

Similar to docker-wizard

More DevOps & Cloud