Agent skill

Docker Development

by JMBeresford in JMBeresford/retrom

A skill your agent uses when working with ANY Docker task: writing Dockerfiles, configuring docker-compose/compose.yml, multi-stage builds, docker-bake.hcl, container security audits, .dockerignore…

MITAuto-check: warningsDevOps & Cloud

Install Docker Development

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

skills CLI
$ npx skills add JMBeresford/retrom --skill docker-development -a claude-code

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

GitHub CLI
$ gh skill install JMBeresford/retrom docker-development --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/JMBeresford/retrom.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/docker-development .claude/skills/docker-development && 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-development
GitHub stars
2.1k
Token cost
~1.1k tokens
SKILL.md length
233 words
Files
4 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when working with ANY Docker task: writing Dockerfiles, configuring docker-compose/compose.yml, multi-stage builds, docker-bake.hcl, container security audits, .dockerignore…

  • Works in 4 steps: Minimal -- Alpine/distroless, multi-stage → Secure -- Non-root USER, no layer… → Testable -- CI-verifiable: entrypoint… → …
  • Working with ANY Docker task: writing Dockerfiles
  • SKILL.md covers Core Principles, Quick Reference, Security Anti-Patterns and CI Testing Gotchas, plus 3 more sections
  • Calls docker; needs DB_PASSWORD

What it does

Docker Development is an agent skill from JMBeresford/retrom. Use when working with ANY Docker task: writing Dockerfiles, configuring docker-compose/compose.yml, multi-stage builds, docker-bake.hcl, container security audits, .dockerignore optimization, or CI/CD container testing. Triggers on: Dockerfile, docker-compose, container, image build, multi-stage, docker bake, compose.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/bind-mount-ownership.md`, `references/ci-testing.md` and `references/dind-testing-patterns.md`). Compatibility notes: Requires docker, docker compose.

It sits in DevOps & Cloud, covering Containers. It works with Docker. The repository describes itself as: A centralized game library/collection management service with a focus on emulation. The licence is MIT.

When your agent uses it

  • Working with ANY Docker task: writing Dockerfiles
  • Configuring docker-compose/compose.yml
  • Multi-stage builds
  • Docker-bake.hcl

Example prompts

  • “/docker-development”

Requirements

  • Node.js
  • Docker
  • Compatibility (from SKILL.md): Requires docker, docker compose.
  • Pre-approved tools (allowed-tools): Bash(docker:*), Bash(grep:*), Read, Write, Glob, Grep

Workflow steps

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

  1. Minimal -- Alpine/distroless, multi-stage
  2. Secure -- Non-root USER, no layer secrets, pin versions
  3. Testable -- CI-verifiable: entrypoint bypass, DNS mocking
  4. Cache-efficient -- deps first, clean in same layer

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(docker:*)
    • Bash(grep:*)
    • Read
    • Write
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • docker

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

  • Network

    No URLs in SKILL.md. Its commands use docker, 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 these keys or tokens, usually read from environment variables:

    • DB_PASSWORD

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

  • Compatibility

    Requires docker, docker compose.

    From compatibility in the SKILL.md frontmatter.

Context cost

Docker Development loads about 1.1k tokens when it runs, and up to ~7.1k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 233 words of instructions outside code blocks.

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

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:86
    t=type=secret,id=ssh_key,dst=/root/.ssh/id_rsa git clone git@github.com:org/repo.git
  • NoteMentions a .env fileSKILL.md:117
    **Compose validation**: `cp .env.example .env` before `docker compose config`
  • NoteMentions a .env fileSKILL.md:123
    clude: `.git`, `node_modules`/`vendor`, `.env*`, `*.pem`, `*.key`

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from JMBeresford/retrom at commit c081a2d, republished under its MIT licence (© JMBeresford). 233 words, ~1,085 tokens.

Download SKILL.mdSave it as .claude/skills/docker-development/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
docker-development
description
Use when working with ANY Docker task: writing Dockerfiles, configuring docker-compose/compose.yml, multi-stage builds, docker-bake.hcl, container security audits, .dockerignore optimization, or CI/CD container testing. Triggers on: Dockerfile, docker-compose, container, image build, multi-stage, docker bake, compose.
allowed-tools
Bash(docker:*), Bash(grep:*), Read, Write, Glob, Grep
compatibility
Requires docker, docker compose.
license
(MIT AND CC-BY-SA-4.0)
metadata.version
1.10.0
metadata.repository
https://github.com/netresearch/docker-development-skill
metadata.author
Netresearch DTT GmbH

Docker Development

Patterns for building, testing, and deploying Docker containers.

Core Principles

  1. Minimal -- Alpine/distroless, multi-stage
  2. Secure -- Non-root USER, no layer secrets, pin versions
  3. Testable -- CI-verifiable: entrypoint bypass, DNS mocking
  4. Cache-efficient -- deps first, clean in same layer

Quick Reference

Multi-Stage Build (Node.js)
dockerfile
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .

FROM node:20-alpine
RUN addgroup -g 1001 app && adduser -u 1001 -G app -D app
USER app
COPY --from=builder /app .
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
  CMD wget -qO- http://localhost:3000/health || exit 1
CMD ["node", "server.js"]
Multi-Stage Build (Go -- scratch/distroless)
dockerfile
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /app/server .

FROM gcr.io/distroless/static:nonroot
COPY --from=builder /app/server /server
CMD ["/server"]
Layer Optimization
dockerfile
RUN apt-get update && \
    apt-get install -y --no-install-recommends curl && \
    rm -rf /var/lib/apt/lists/*
Build Cache: Copy Dependency Files First
dockerfile
COPY package*.json ./
RUN npm ci
COPY . .

Manifests before source keeps install layers cached on source-only changes.

BuildKit Secrets
dockerfile
RUN --mount=type=secret,id=ssh_key,dst=/root/.ssh/id_rsa git clone git@github.com:org/repo.git

ENV/ARG/COPY secrets persist in docker history. Use --mount=type=secret.

Docker Bake (Multi-Platform)
hcl
target "app" {
  platforms = ["linux/amd64", "linux/arm64"]
  cache-from = ["type=gha"]
  cache-to = ["type=gha,mode=max"]
}

Security Anti-Patterns

Anti-patternFix
FROM image:latestPin version: image:1.2.3-alpine
No USER directiveadduser + USER appuser
chmod 777Use specific permissions: chmod 550
privileged: true in composeRemove or use specific cap_add
volumes: [/:/host]Mount only needed paths
ports: ["0.0.0.0:3000:3000"]Bind to 127.0.0.1:3000:3000
ENV DB_PASSWORD=secretUse --mount=type=secret or compose secrets

CI Testing Gotchas

  1. Bypass entrypoint: docker run --rm --entrypoint php myimage -v
  2. Mock upstream DNS: docker run --rm --add-host backend:127.0.0.1 nginx-image nginx -t
  3. Compose validation: cp .env.example .env before docker compose config
  4. Secret scanning: Exclude .env.example, README, docs from scanners
  5. Root-owned artifacts: in-container installs leave root-owned bind-mount dirs (EACCES on host) -- references/bind-mount-ownership.md

.dockerignore

Exclude: .git, node_modules/vendor, .env*, *.pem, *.key

Compose Essentials

  • startup ordering: depends_on.condition: service_healthy + healthcheck start_period
  • networks.internal: true isolates databases from external access
  • profiles: [debug]: services start only with --profile debug

References

  • references/ci-testing.md -- CI testing patterns for Docker images
  • references/dind-testing-patterns.md -- Docker-in-Docker (DinD) testing patterns
  • references/bind-mount-ownership.md -- root-owned bind-mount artifacts

© JMBeresford, MIT. 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 3 other files (references) in .agents/skills/docker-development of JMBeresford/retrom.

  • SKILL.md
  • references/bind-mount-ownership.md
  • references/ci-testing.md
  • references/dind-testing-patterns.md

Open the folder on GitHubat commit c081a2d

Compare with similar skills

Docker Development 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 Development compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Docker Development this skillJMBeresford/retrom2.1k—~1.1kAutomated safety check: WarnMIT
Iron Proxy Gateway for NanoClawnanocoai/nanoclaw31k—~4.6kAutomated safety check: NotesMIT
GreptimeDB Dev Docker ImageGreptimeTeam/greptimedb6.7k—~4kAutomated safety check: NotesApache-2.0
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2606 repos~1.1kAutomated safety check: NotesCustom licence
LangBot Deployment Guidelangbot-app/LangBot18k—~1.2kAutomated safety check: NotesApache-2.0
Build Openshell Mxc WindowsNVIDIA/OpenShell16k—~4.9kAutomated safety check: PassApache-2.0

Similar skills

  • Installs or refreshes Iron Proxy and its Iron Control web console for NanoClaw, with a local Docker setup, database, credentials and a human approval bridge.

    31k GitHub stars~4.6k tokensUpdated 2 days ago
    DevOps & CloudAuto-check: notes
  • GreptimeDB Dev Docker Image

    GreptimeTeam/greptimedb

    Packages a locally built GreptimeDB debug binary into a development-only Docker image for local-cluster testing, with an optional push to a dev registry.

    6.7k GitHub stars~4k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    260 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • LangBot Deployment Guide

    langbot-app/LangBot

    Deploys and configures a LangBot instance with Docker Compose or Kubernetes, covering config.yaml, the Box sandbox runtime, the plugin runtime and the global API key.

    18k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Official

    Maintain and validate OpenShell's build-only Windows MSVC lane for x64 and ARM64.

    16k GitHub stars~4.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Megatron-LM Base Image Bump

    NVIDIA/Megatron-LM

    Official

    Moves Megatron-LM CI to a newer NVIDIA PyTorch base image, updating both the GitHub and GitLab pins together and handling the CI follow-up.

    18k GitHub stars~2.8k tokensUpdated today
    DevOps & CloudAuto-check passed

More from JMBeresford/retrom

  • Docker Via Wsl

    JMBeresford/retrom

    A skill your agent uses when YOU (the AI agent) are running on Windows OUTSIDE WSL (Git Bash/MSYS/PowerShell shell) and need to run ANY docker / docker compose command.

    2.1k GitHub stars~832 tokensUpdated 4 days ago
    Auto-check passed
  • Rust Skills

    JMBeresford/retrom

    Comprehensive Rust coding guidelines with 265 rules across 26 categories.

    2.1k GitHub starsUsed in 1 repo~9.5k tokens
    Auto-check passed

Works with

Categories

Questions about Docker Development

What does Docker Development do?

A skill your agent uses when working with ANY Docker task: writing Dockerfiles, configuring docker-compose/compose.yml, multi-stage builds, docker-bake.hcl, container security audits, .dockerignore…. Docker Development is an agent skill from JMBeresford/retrom.dockerignore optimization, or CI/CD container testing.

When should I use Docker Development?

Docker Development fits situations like: working with ANY Docker task: writing Dockerfiles; configuring docker-compose/compose.yml; multi-stage builds; Docker-bake.hcl.

How do I install Docker Development in Claude Code?

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

How do I install Docker Development in Codex?

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

Can I use Docker Development 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 JMBeresford/retrom --skill docker-development -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-development, .gemini/skills/docker-development, .github/skills/docker-development and .opencode/skills/docker-development in your project.

What does Docker Development need to run?

Going by SKILL.md and its folder, Docker Development needs the command-line tools its instructions call (docker) and credentials named DB_PASSWORD. Our summary lists: Node.js; Docker. Its frontmatter pre-approves these tools: Bash(docker:*), Bash(grep:*), Read, Write, Glob, Grep. Compatibility (from SKILL.md): Requires docker, docker compose..

Does Docker Development access the network?

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

Is Docker Development safe to install?

Our automated static check of SKILL.md flagged 1 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.

What licence does Docker Development use?

Docker Development is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Docker Development use?

About 1.1k tokens (SKILL.md is roughly 4.3k 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 6k tokens, read only when the agent opens those files.

What are the alternatives to Docker Development?

Skills that share tags, products or a category with Docker Development: Iron Proxy Gateway for NanoClaw (nanocoai/nanoclaw, 31k stars), GreptimeDB Dev Docker Image (GreptimeTeam/greptimedb, 6.7k stars), Senior DevOps Toolkit (maslennikov-ig/claude-code-orchestrator-kit, 260 stars) and LangBot Deployment Guide (langbot-app/LangBot, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Docker Development?

JMBeresford (a GitHub user) maintains it in JMBeresford/retrom, which has 2,099 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 4, 2026.

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