Agent skill · software engineering · borghei

docker-development

This skill should be used when the user asks to "analyze a Dockerfile", "optimize Docker layers", "validate docker-compose", "check container best practices", or "audit Docker configurations".

Why this skill is useful

Adds 3 executable scripts for Dockerfile analysis and validation that provide specific optimizations and security checks not commonly known.

What it needs

Requires python installed locally. About 3k tokens when loaded. Last updated 2026-07-21. 462 stars on the source repository.

What this skill does

Docker Development Category: Engineering Domain: Container Development & Optimization Overview The Docker Development skill provides automated analysis of Dockerfiles and docker-compose configurations. It identifies layer optimization opportunities, security issues, best practice violations, and compose service misconfigurations. Use this skill to enforce container standards across your team and catch issues before they reach production. Clarify First Before running the analysis, confirm these inputs. If any is unknown or vague, ASK — do not assume: [ ] Target file — which Dockerfile or docker-compose.yml to analyze (sets --file and which tool runs) [ ] Focus — full analysis vs security-only, and whether to check port conflicts (sets --security-only/--check-ports) [ ] Output mode — human-readable vs JSON for CI (sets --format json and whether findings gate a pipeline) Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact. Quick Start Tools Overview dockerfileanalyzer.py Analyzes Dockerfiles for best practices, security issues, and optimization opportunities. Feature Description --------- ------------- Layer optimization Detects unnecessary layers, recommends combining RUN statements Multi-stage analysis Validates multi-stage build patterns and final image size Security scanning Flags running as root, use of latest tags, exposed secrets Base image checks Recommends smaller base images (alpine, distroless, slim) Cache optimization Identifies poor layer ordering that breaks Docker cache composevalidator.py Validates docker-compose files for correctness, dependency issues, and port conflicts. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills borghei/docker-development

View the source on GitHub

Browse the @skills marketplace