Provides Docker Buildx 0.31.0 updates: Rego source policies with auto-loading and eval/test, bake --var flag, semvercmp function, env lookup disable. Load before Docker builds.
npx claudepluginhub nevaberry/nevaberry-plugins --plugin docker-knowledge-patchThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Claude Opus 4.6 knows Docker Engine through 24.x and Compose through 2.x. This skill provides features from Buildx 0.31.0 (2026-01-22).
| Topic | Reference | Key features |
|---|---|---|
| Buildx & Bake | references/buildx-bake.md | Rego source policies, --var flag, semvercmp, env lookup disable |
Buildx enforces build policies written in Rego (Open Policy Agent). Policies control what sources/images are allowed during builds.
# Explicit policy file
docker buildx build --policy policy.rego .
# Auto-loads Dockerfile.rego or app.Dockerfile.rego alongside the Dockerfile
docker buildx build -f app.Dockerfile .
# Evaluate and test policies
docker buildx policy eval
docker buildx policy test
In Bake, use the policy key or rely on auto-loading:
# docker-bake.hcl
target "app" {
dockerfile = "Dockerfile"
policy = "policy.rego"
}
--var flag (Buildx 0.31.0)Set HCL variables directly from the command line instead of using environment variables:
docker buildx bake --var FOO=bar --var VERSION=1.2.3
semvercmp function (Buildx 0.31.0)Stdlib function for semantic version comparisons in Bake HCL files.
Option to prevent Bake from reading host environment variables, useful for reproducible builds.
| File | Contents |
|---|---|
| buildx-bake.md | Rego source policy enforcement (auto-loading, explicit --policy, policy eval/test, Bake policy key), --var flag for HCL variables, semvercmp stdlib function, env lookup disable |