docker-expert

Analyze and optimize Dockerfiles for security, stability, and performance.

22|2|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/jshsakura/awesome-opencode-skills --skill docker-expert-jshsakura
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-expert
Source: https://github.com/jshsakura/awesome-opencode-skills/tree/main/skills/docker-expert
Command: npx skills add https://github.com/jshsakura/awesome-opencode-skills --skill docker-expert-jshsakura

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automate and optimize Dockerfile reviews, image sizing, and container runtime debugging to improve security, reliability, and performance across development, CI, and production.

Core Features & Use Cases

  • Dockerfile review & optimization: Pin base images, prune layers, and order instructions for faster builds.
  • Multi-stage builds & size reduction: Reorganize stages and remove intermediate artifacts to minimize image footprint.
  • Runtime hardening & startup behavior: Enforce non-root usage, proper signal handling, and safe entrypoint execution.
  • Use Case: When extending a microservice, quickly audit the Dockerfile to identify security weaknesses and performance bottlenecks before deployment.

Quick Start

Provide your Dockerfile context and I will recommend the smallest, safe improvement to reliability.

Frequently Asked Questions about docker-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Dockerfile instructions for faster builds and smaller images?

Dockerfile optimization prunes layers and orders instructions to improve build speed, while multi-stage builds remove intermediate artifacts to minimize image footprint across development and production.

What is the best way to harden container runtime security in Docker?

Container runtime hardening enforces non-root usage, proper signal handling, and safe entrypoint execution to improve security, stability, and safe startup and shutdown behavior.

How do I validate Docker container startup and shutdown behavior for production?

Validating container startup and shutdown behavior requires analyzing entrypoint execution and signal handling to ensure safe runtime stability and satisfy rollback audit requirements.

Does this Dockerfile review tool work for CI and production environments?

Yes, context-aware Dockerfile analysis applies to base image selection, runtime hardening, and image sizing across development, CI, and production environments.

Why should I pin base images in my Dockerfile?

Pinning base images ensures stable and auditable builds by preventing unexpected upstream changes, which improves reliability and security for container deployments.