Docker Harden — Security skill for Claude Code
Audits and hardens Dockerfiles for size and security.
How to install Docker Harden
Installs to ~/.claude/commands/pedrol-cmd-brain-drin-docker-harden.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/pedrol-cmd/brain-drin/HEAD/.claude/commands/docker-harden.md -o ~/.claude/commands/pedrol-cmd-brain-drin-docker-harden.md Restart Claude Code, or start a new session, for it to be picked up.
What Docker Harden does
description: Audits and hardens Dockerfiles for size and security.
/docker-harden
Optimizes your containerization strategy.
Usage
- Provide a Dockerfile.
- Agent applies multi-stage builds, minimal base images, and non-root users.
- Verifies image size and security scan.
Specialist Agent
@devops-engineer @security-auditor
Alternatives in Security
Full documentation available on GitHub
View Source RepositoryRelated Skills
Docker Review
Review a Dockerfile/image for multi-stage correctness, size, and security.
Asset Audit
Audits game assets for compliance with naming conventions, file size budgets, format standards, and pipeline r
Harden Iac
Pin Terraform modules, check state security, and flag dangerous provisioners
Harden Codebase Properly
A Claude Code skill: measure an existing web app, repair it, and keep it at a verifiable production bar — gate
Audit Docker
Audit Docker configuration. Analyzes Dockerfile, Compose, security, performance, and production readiness for
GitHub Actions Cicd Generator
Generate a complete, security-hardened GitHub Actions pipeline for any stack, with Docker publishing and relea
Related Agents
Docker Container Master
Designs, reviews, and hardens Dockerfiles, OCI images, and Docker Compose environments with BuildKit/buildx. D
Production Docker Auditor
Audits Dockerfiles and container configuration for production hardening — multi-stage builds, non-root users,
Network Security Engineer
Network Security Engineer (Tier 3): hardens the network perimeter and runtime — TLS 1.3/HSTS/ACME, nginx/Caddy