container-image-engineeringlisted
Install: claude install-skill sandbaseai/workbuddy-skill
# Container Image Engineering
Use this skill for Dockerfiles, Docker/BuildKit builds, Compose development environments, and OCI-compatible images. Inspect the application runtime, build system, repository layout, target platforms, deployment runtime, registry, network constraints, and existing CI before writing a container recipe. Preserve the user's chosen language, base distribution, and orchestrator unless a change is part of the request.
## Define the image contract
Record the build inputs, output artifact, entrypoint and arguments, listening interface and port, writable paths, user identity, environment/configuration, signal and shutdown behavior, health semantics, CPU/memory expectations, supported architectures, and required certificates or native libraries. Distinguish build-time dependencies from runtime dependencies and local-development conveniences from production requirements.
Do not assume an image that builds will start correctly, handle termination, pass a health probe, or run under the target security policy. Validate those behaviors explicitly.
## Make builds reproducible and reviewable
Use a narrow build context and a `.dockerignore` based on actual repository needs. Exclude version-control data, local caches, test results, credentials, `.env` files, editor state, package stores, and unrelated artifacts; do not blindly exclude files required by compilation or runtime.
Prefer multi-stage builds when they keep compilers, package managers, source, and t