Official agent skill

Docker Build Strategies

by docker in docker/skills

A skill your agent uses when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production.

OfficialApache-2.0Auto-check: warningsDevOps & Cloud

Install Docker Build Strategies

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add docker/skills --skill docker-build-strategies -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install docker/skills docker-build-strategies --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/docker/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/docker-build-strategies .claude/skills/docker-build-strategies && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docker-build-strategies
GitHub stars
539
Token cost
~3k tokens
SKILL.md length
1,445 words
Files
11 (incl. scripts, references, assets)
Skills in repo
11
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production.

  • Works in 4 steps: Name every stage explicitly (FROM ... AS… → Use the smallest appropriate base for… → Copy only the final artifact into the… → …
  • Optimizing Dockerfiles
  • SKILL.md covers Overview, When to use this skill, Do not use this skill when and Core guidance, plus 5 more sections
  • Runs Go and Shell scripts from its folder; calls docker, bash and npm

What it does

Docker Build Strategies is an agent skill from docker/skills, published by the product's own GitHub organization. Use this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Covers multi-stage builds, layer caching, .dockerignore, non-root users, and image size optimization.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including scripts, reference files and assets (for example `agents/openai.yaml`, `checks/verification.md` and `references/layer-caching.md`). Compatibility notes: Requires Docker 23.0+ (BuildKit default). On Docker 20.10–22.x, set DOCKERBUILDKIT=1 before building.

It sits in DevOps & Cloud, covering Containers. It works with Docker and npm. The repository describes itself as: A collection of Docker skills for AI coding agents to help them build, test, debug, and optimize containerized apps with consistent, reusable workflows. The licence is Apache-2.0.

When your agent uses it

  • Optimizing Dockerfiles
  • Even if the user just says their image is too large
  • Their build is slow
  • They need to harden a container for production

Example prompts

  • “/docker-build-strategies”

Requirements

  • Python 3
  • Node.js
  • A Bash shell
  • Docker
  • Compatibility (from SKILL.md): Requires Docker 23.0+ (BuildKit default). On Docker 20.10–22.x, set DOCKER_BUILDKIT=1 before building.

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Name every stage explicitly (FROM ... AS build, FROM ... AS runtime).
  2. Use the smallest appropriate base for the runtime stage: distroless, alpine, or slim variants.
  3. Copy only the final artifact into the runtime stage with COPY --from=build.
  4. Use COPY --link when copying from a prior stage or adding static files — it improves cache reuse by making the COPY independent of…

What it can do on your machine

Read from SKILL.md and the folder at commit f791727. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Go and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • docker
    • bash
    • npm
    • pip
    • go
    • apt-get

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use docker, npm and pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Docker 23.0+ (BuildKit default). On Docker 20.10–22.x, set DOCKER_BUILDKIT=1 before building.

    From compatibility in the SKILL.md frontmatter.

Context cost

Docker Build Strategies loads about 3k tokens when it runs, and up to ~6.8k if it reads all its reference files. Until then it costs about 79 tokens; SKILL.md has 1,445 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:65
    edential files into the build context: `.npmrc`, `.pypirc`, `.netrc`, `pip.conf`, Maven `settings.xml`, `.env`, cloud cr
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:69
    mount=type=secret,id=npmrc,target=/root/.npmrc,required=false \
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:88
    --secret id=npmrc,src=$HOME/.npmrc \
  • NoteMentions a .env fileSKILL.md:93
    7. `.dockerignore` exclusions of `.env` and credential files are **defense in depth**, not the primary mechanism — keep
  • NoteMentions a .env fileSKILL.md:105
    - `.env` files and any secrets

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from docker/skills at commit f791727, republished under its Apache-2.0 licence (© docker). 1,445 words, ~3,033 tokens.

Download SKILL.mdSave it as .claude/skills/docker-build-strategies/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
docker-build-strategies
description
Use this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Covers multi-stage builds, layer caching, .dockerignore, non-root users, and image size optimization.
compatibility
Requires Docker 23.0+ (BuildKit default). On Docker 20.10–22.x, set DOCKER_BUILDKIT=1 before building.
license
Apache-2.0

Docker Build Strategies

Overview

This skill provides rules and patterns for writing and reviewing production-quality Dockerfiles. Apply it when the main task is image-build quality: multi-stage builds, cache behavior, non-root execution, build context hygiene, and runtime image size.

When to use this skill

Activate this skill when:

  • Creating a new Dockerfile for any language or framework
  • Optimizing an existing Dockerfile for size, speed, or security
  • Reviewing a Dockerfile for best-practice compliance
  • Adding a .dockerignore file to a project

Do not use this skill when

Do not use this skill when:

  • The project has no Docker setup yet and the main need is a first-pass scaffold
  • The main task is wiring services together in compose.yaml
  • The main task is debugging Compose startup ordering, networking, or development overrides

Core guidance

Multi-stage builds

Use multi-stage builds when the project has a build step or when build-time dependencies differ from runtime. Separate build-time dependencies from the runtime image.

  1. Name every stage explicitly (FROM ... AS build, FROM ... AS runtime).
  2. Use the smallest appropriate base for the runtime stage: distroless, alpine, or slim variants.
  3. Copy only the final artifact into the runtime stage with COPY --from=build.
  4. Use COPY --link when copying from a prior stage or adding static files — it improves cache reuse by making the COPY independent of previous layers.

See references/multi-stage-builds.md for language-specific patterns (Go, Node, Python, Java).

Layer caching

Order Dockerfile instructions from least-frequently-changed to most-frequently-changed.

  1. Place dependency manifests (package.json, go.mod, requirements.txt) and install steps before copying application source code. Bind-mount the manifest into the install step instead of COPY-ing it, so it never enters a layer: RUN --mount=type=bind,source=package.json,target=package.json --mount=type=bind,source=package-lock.json,target=package-lock.json npm ci. This is safe for install commands that only read the manifest (npm ci, pip install -r, go mod download); if a step also needs to write the manifest back into the image, COPY it instead.
  2. Use BuildKit cache mounts for package manager caches:
    • Go: RUN --mount=type=cache,target=/go/pkg/mod go build ...
    • Node: RUN --mount=type=cache,target=/root/.npm npm ci
    • Python: RUN --mount=type=cache,target=/root/.cache/pip pip install ...
    • apt: RUN --mount=type=cache,target=/var/cache/apt,sharing=locked --mount=type=cache,target=/var/lib/apt,sharing=locked apt-get update && apt-get install -y ... — no rm -rf /var/lib/apt/lists/* needed, since the cache lives outside the image layer. sharing=locked is required because apt needs exclusive access to its cache directories.
    • apk (Alpine — per the Alpine wiki, not a Docker-verified doc; references/layer-caching.md links the source): RUN --mount=type=cache,target=/etc/apk/cache,sharing=locked apk add ... — drop --no-cache so downloaded packages land in the mounted cache directory instead of being discarded.
  3. Pin base image tags to a specific version or digest — never use latest in production.
  4. Combine related RUN commands with && to reduce layer count, but keep logically distinct steps separate for cache granularity.

See references/layer-caching.md for detailed cache invalidation rules and cache mount patterns.

Build secrets and SSH access

Never bake credentials into the image. Use BuildKit secrets and SSH mounts so credentials are available only during the specific RUN step that needs them, and never persist in any layer or docker history output.

  1. Do NOT pass credentials through ARG or ENV. Both end up in the image layers and are inspectable via docker history.
  2. Do NOT COPY credential files into the build context: .npmrc, .pypirc, .netrc, pip.conf, Maven settings.xml, .env, cloud credentials (~/.aws/credentials, ~/.config/gcloud/, service-account JSON files, ~/.azure/), secret-manager tokens (~/.vault-token), package-registry tokens (~/.cargo/credentials.toml), TLS keys (*.pem, *.p12), kubeconfig, SSH keys (id_rsa, id_dsa, id_ed25519, id_ecdsa). Even when the final stage does not copy them forward, they live in intermediate layers and the build cache.
  3. Do NOT echo, write, or expand the secret value inside a RUN command in a way that persists it to a layer or emits it to build logs. Access the secret file (e.g., /run/secrets/<id>, or directly via the mount target=) — never echo "$(cat /run/secrets/X)", never substitute it into a shell argument that will be logged with --progress=plain.
  4. Use RUN --mount=type=secret for package manager registry credentials:
    dockerfile
    RUN --mount=type=secret,id=npmrc,target=/root/.npmrc,required=false \
        --mount=type=cache,target=/root/.npm \
        npm ci --omit=dev
    The secret is available only inside that RUN, never written to a layer. Use required=true when the build will always need the credential (e.g., all packages come from a private registry, so missing the secret should fail the build immediately); use required=false only when the secret is optional (the build can succeed with public packages alone).
  5. Use RUN --mount=type=ssh for fetching private Git repositories or modules. The build container has no known_hosts by default — populate it inside the same RUN:
    dockerfile
    RUN --mount=type=ssh \
        mkdir -p -m 0700 /root/.ssh && \
        ssh-keyscan github.com >> /root/.ssh/known_hosts && \
        git clone git@github.com:org/private-repo.git
    Do NOT use StrictHostKeyChecking=no as a shortcut — it disables host-key verification entirely. ssh-keyscan accepts whatever host key the server presents each time the step runs; nothing is pinned between builds. For stronger assurance, compare it against the provider's published host key fingerprints, or write the published key into known_hosts instead of scanning.
  6. Invoke buildx with the secret and SSH sources:
    bash
    # --ssh default forwards this shell's SSH agent (SSH_AUTH_SOCK); list every key the build can use:
    ssh-add -l
    
    docker buildx build \
        --secret id=npmrc,src=$HOME/.npmrc \
        --ssh default \
        .
    The RUN --mount=type=ssh step can use every key that ssh-add -l lists, so expose only the key this build needs. In an interactive terminal, run ssh-agent bash to start a shell with a dedicated agent, then run ssh-add <key-file>, confirm that ssh-add -l lists only that key, and run the build in that shell. A tool that starts a new shell for each command loses that agent between commands, so ask the user to run these steps. Alternatively, pass an unencrypted key file, such as a dedicated deploy key, directly with --ssh default=<key-file>; BuildKit rejects passphrase-protected keys in this form, so load those into an agent instead.
  7. .dockerignore exclusions of .env and credential files are defense in depth, not the primary mechanism — keep them, but do not rely on them as your only protection.

See references/multi-stage-builds.md for per-language patterns (npm, pip, Maven, Go GOPRIVATE).

Show full SKILL.md (541 more words)Show less
.dockerignore

Always generate a .dockerignore alongside the Dockerfile. Exclude:

  • .git/, .github/, .vscode/, .idea/
  • node_modules/, __pycache__/, .venv/, vendor/ (when rebuilt in the build stage)
  • *.md, LICENSE, docs/
  • Build outputs, test artifacts, and IDE configs
  • .env files and any secrets

See assets/dockerignore-example for a comprehensive template.

Non-root user

Always configure the final image to run as a non-root user.

  1. Create a dedicated user and group in the runtime stage:
    dockerfile
    RUN addgroup --system --gid 1001 appgroup && \
        adduser --system --uid 1001 --ingroup appgroup appuser
  2. Set ownership on application files: COPY --from=build --chown=appuser:appgroup /app /app
  3. When combining --chown with COPY --link, always use the numeric UID:GID you assigned (e.g., --chown=1001:1001 if you used --uid 1001 --gid 1001 above), not named users. --link creates an independent layer where named users from prior RUN instructions are not available.
  4. Place the USER appuser instruction after all file operations and before ENTRYPOINT/CMD.
  5. On distroless images, use the built-in nonroot user: USER nonroot:nonroot.
Image size optimization
  1. Prefer FROM scratch (Go static binaries), distroless, or Alpine-based images for the runtime stage.
  2. Install OS packages with a BuildKit cache mount rather than rm -rf-ing the cache in the same layer — see "Layer caching" above. The cache mount keeps the package cache out of the image layer entirely, so no cleanup step is needed.
  3. Do not install documentation, man pages, or debug tools in the runtime image.
  4. Use .dockerignore aggressively to minimize the build context.
General rules
  • Always include a # syntax=docker/dockerfile:1 directive as the first line to enable BuildKit features.
  • Set WORKDIR before any COPY or RUN instructions — never rely on the default /.
  • Prefer ENTRYPOINT with exec form (["binary"]) over shell form.
  • Add EXPOSE to document the listening port.
  • Add metadata labels: LABEL org.opencontainers.image.source=...
  • For first-time Docker project scaffolding and deciding which files to create, use docker-project-foundations.
  • For service dependencies, health checks, overrides, networks, and volume patterns, use docker-compose-patterns.
  • For destructive Docker CLI commands (docker system prune, docker rm -f, image/network/builder pruning) and a cross-product index of destructive-command guardrails, use docker-destructive-guardrails.

References

  • references/multi-stage-builds.md — Language-specific multi-stage patterns for Go, Node.js, Python, and Java
  • references/layer-caching.md — Deep dive on layer ordering, cache invalidation, and BuildKit cache mounts

Assets

  • assets/Dockerfile.go — Multi-stage Go build with distroless runtime and non-root user
  • assets/Dockerfile.nodejs — Multi-stage Node.js build with proper layer caching and non-root user
  • assets/Dockerfile.python — Python build with virtual env, layer ordering, and non-root user
  • assets/dockerignore-example — Comprehensive .dockerignore template

Scripts

  • scripts/verify-build.sh — Builds the Dockerfile in the current directory, then reports image size and configured user. Run it from the project root (the directory that contains the Dockerfile), with the script path resolved under this skill's directory:
    bash
    bash "<skill-dir>/scripts/verify-build.sh" [--help] [IMAGE_NAME]
    Replace <skill-dir> with the absolute path of the folder that contains this SKILL.md; the scripts/ path is relative to that folder, not to the project. Do not change into the skill directory first: the script builds whatever is in the current directory. If the skill directory cannot be resolved, run docker build -t verify-build-test ., then docker images verify-build-test and docker inspect verify-build-test --format '{{.Config.User}}'. Exit status is 0 when all Docker commands succeed or help is requested, the failing Docker command's non-zero status when verification fails, and 2 for invalid arguments.

Checks

  • checks/verification.md — Detailed verification runbook for manual review.

© docker, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files (scripts, references, assets) in skills/docker-build-strategies of docker/skills.

  • SKILL.md
  • agents/openai.yaml
  • assets/Dockerfile.go
  • assets/Dockerfile.nodejs
  • assets/Dockerfile.python
  • assets/dockerignore-example
  • checks/verification.md
  • references/layer-caching.md
  • references/multi-stage-builds.md
  • scripts/verify-build.sh
  • skill.yaml

Open the folder on GitHubat commit f791727

Compare with similar skills

Docker Build Strategies next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Docker Build Strategies compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Docker Build Strategies this skilldocker/skills539—~3kAutomated safety check: WarnApache-2.0
Reflexo ReleaseMyriad-Dreamin/typst.ts1.2k—~1.5kAutomated safety check: PassApache-2.0
Os Eco Dep Syncjayminwest/warren476—~1.9kAutomated safety check: PassMIT
Ddevhaxtheweb/haxcms-php130—~1.6kAutomated safety check: PassApache-2.0
Data Processingaiskillstore/marketplace4301 repos~720Automated safety check: NotesMIT
Tokf Runmpecan/tokf199—~571Automated safety check: PassMIT

Similar skills

  • Reflexo Release

    Myriad-Dreamin/typst.ts

    Guide Reflexo/typst.ts release preparation and operator handoffs.

    1.2k GitHub stars~1.5k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Os Eco Dep Sync

    jayminwest/warren

    Bump warren onto the latest published @os-eco/ versions across package.json + bun.lock and the Dockerfile CLI pins, then run the gates and open a PR.

    476 GitHub stars~1.9k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Ddev

    haxtheweb/haxcms-php

    DDEV local development environment guidance for Docker-based PHP/Node projects.

    130 GitHub stars~1.6k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    DevOps & CloudAuto-check: notes
  • Tokf Run

    mpecan/tokf

    Compress verbose CLI output with tokf before returning results.

    199 GitHub stars~571 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Verify Version Alignment

    Luligu/matterbridge

    Verify that package, Docker build, test utility helper, docs update JSON files, and Docker workflow tags match the expected root version rules.

    983 GitHub stars~1.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

More from docker/skills

All 11 skills in this repo
  • Official

    A skill your agent uses when creating, modifying, or debugging Docker Compose configurations, even if the user just says they need to wire services together, add a database to their stack, or set up…

    539 GitHub stars~2.4k tokensUpdated 4 days ago
    Auto-check: notes
  • Docker Agent Config

    docker/skills

    Official

    A skill your agent uses when creating or editing an agent.yaml (or .yml/.hcl) configuration file for Docker Agent (cagent), including defining agents, models/providers, built-in or MCP toolsets…

    539 GitHub stars~2.5k tokensUpdated 4 days ago
    Auto-check: notes
  • Docker Agent Deploy

    docker/skills

    Official

    A skill your agent uses when exposing a Docker Agent as a server (MCP, HTTP API, A2A, ACP, or OpenAI-compatible chat), distributing an agent via an OCI registry with docker agent share, or measuring…

    539 GitHub stars~1.9k tokensUpdated 4 days ago
    Auto-check passed
  • Official

    A skill your agent uses when setting up, initializing, or Dockerizing a project, even if the user doesn't explicitly mention Docker but describes a need for containerized local development, adding a…

    539 GitHub stars~1.9k tokensUpdated 4 days ago
    Auto-check: warnings
  • Official

    A skill your agent uses when authoring, planning, or running a declarative sbxenv.yaml file for Docker Sandboxes (sbx env create/run/plan/exec/rm), even if the user just says they want to "check in…

    539 GitHub stars~4k tokensUpdated 4 days ago
    Auto-check passed
  • Official

    A skill your agent uses when creating, running, reattaching to, listing, stopping, or removing Docker Sandboxes (the standalone sbx CLI that runs AI coding agents in isolated microVMs), even if the…

    539 GitHub starsUsed in 1 repo~3.2k tokens
    Auto-check passed

Works with

Categories

Questions about Docker Build Strategies

What does Docker Build Strategies do?

A skill your agent uses when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Docker Build Strategies is an agent skill from docker/skills, published by the product's own GitHub organization. Use this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production.

When should I use Docker Build Strategies?

Docker Build Strategies fits situations like: optimizing Dockerfiles; even if the user just says their image is too large; their build is slow; they need to harden a container for production.

How do I install Docker Build Strategies in Claude Code?

Run `npx skills add docker/skills --skill docker-build-strategies -a claude-code`. Or copy the skill folder (skills/docker-build-strategies in docker/skills) into .claude/skills/docker-build-strategies in your project. Claude Code loads it when a task matches its description.

How do I install Docker Build Strategies in Codex?

Run `npx skills add docker/skills --skill docker-build-strategies -a codex`. Or copy the skill folder (skills/docker-build-strategies in docker/skills) into .agents/skills/docker-build-strategies in your project. Codex loads it when a task matches its description.

Can I use Docker Build Strategies in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add docker/skills --skill docker-build-strategies -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docker-build-strategies, .gemini/skills/docker-build-strategies, .github/skills/docker-build-strategies and .opencode/skills/docker-build-strategies in your project.

What does Docker Build Strategies need to run?

Going by SKILL.md and its folder, Docker Build Strategies needs Go and a shell for the scripts in its folder and the command-line tools its instructions call (docker, bash, npm, pip, go and apt-get). Our summary lists: Python 3; Node.js; A Bash shell; Docker. Compatibility (from SKILL.md): Requires Docker 23.0+ (BuildKit default). On Docker 20.10–22.x, set DOCKER_BUILDKIT=1 before building..

Does Docker Build Strategies access the network?

SKILL.md contains no URLs. Its commands use docker, npm and pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Docker Build Strategies safe to install?

Our automated static check of SKILL.md flagged 3 warning(s): mentions a credentials file (ssh keys, cloud or package-manager tokens). Read the flagged lines before installing; the check is not a guarantee either way. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Docker Build Strategies use?

Docker Build Strategies is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Docker Build Strategies use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.7k tokens, read only when the agent opens those files.

What are the alternatives to Docker Build Strategies?

Skills that share tags, products or a category with Docker Build Strategies: Reflexo Release (Myriad-Dreamin/typst.ts, 1.2k stars), Os Eco Dep Sync (jayminwest/warren, 476 stars), Ddev (haxtheweb/haxcms-php, 130 stars) and Data Processing (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Docker Build Strategies?

docker (a GitHub organization, an official publisher) maintains it in docker/skills, which has 539 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 4, 2026.

Source: docker/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.