docker-development

docker-development is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 60 tokens per session (1,422 once invoked), scanned B, original, Apache-2.0.

Instructions for building and reviewing Dockerfiles and Docker Compose configurations. Docker packages applications and their dependencies into containers, while Compose defines groups of containers and how they run together.

In plain words
What is it for?
Use it when creating or optimising container builds, setting up multi-container development, checking Docker security, or reducing image size.
Why use it?
It helps reduce unnecessary image contents, improve build caching, and run production containers with fewer security risks. It recommends separating build tools from the final runtime image and avoiding root where appropriate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or optimising container builds, setting up multi-container development, checking Docker security, or reducing image size.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/docker-development
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tmj-90/gaffer --skill docker-development
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/docker-development/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/docker-development)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/docker-development"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/docker-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docker-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/docker-development"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/docker-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,422 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01422
Opus 5.5 $0.00024 $0.00569
Sonnet 5.5 $0.00012 $0.00284
Haiku 4.5 $0.00006 $0.00142

Measured 16d ago against content hash 31fc5bd1e9c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

docker-development scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `apt-get update && apt-get install -y --no-install-recommends ... && rm -rf

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

runner/skills/docker-development/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Smaller images. Faster builds. Secure containers.

Three concerns, in priority order: the container is safe (non-root, no secrets, pinned inputs), it behaves correctly as PID 1 (signals, health), and it is small and cache-friendly. Rules follow Docker's official "Building best practices" and Dockerfile reference.

Reference pattern

# syntax=docker/dockerfile:1
FROM node:22.11-bookworm-slim@sha256:<digest> AS build
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
    corepack enable && pnpm install --frozen-lockfile
COPY . .
RUN pnpm build && pnpm prune --prod

FROM node:22.11-bookworm-slim@sha256:<digest> AS runtime
ENV NODE_ENV=production
WORKDIR /app
COPY --from=build --chown=10001:10001 /app/dist ./dist
COPY --from=build --chown=10001:10001 /app/node_modules ./node_modules
USER 10001:10001
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s CMD ["node", "dist/healthcheck.js"]
CMD ["node", "dist/main.js"]

Replace <digest> with the real digest (docker buildx imagetools inspect <image:tag>); if you cannot resolve it, pin the full version tag and say so in evidence.

Procedure

  1. Read what exists. search_lore for base-image, registry and scan conventions. Read the current Dockerfile, .dockerignore, compose files and the CI job that builds the image. Note how the app starts, its port, its health endpoint, and what it writes to disk.
  2. Pin inputs. Base images by explicit version plus digest, never latest; the same base across stages where possible. Add a Dependabot package-ecosystem: docker entry if the repo uses Dependabot, so pins get refreshed.
  3. Split build from runtime. Compilers, dev dependencies, package-manager caches and source stay in the build stage; runtime gets only the artifact. Prefer slim or distroless runtimes; a static binary can use scratch/distroless static.
  4. Order for cache. Manifests and lockfile → install → source → build. Use RUN --mount=type=cache for package-manager caches. Keep .dockerignore tight: .git, node_modules, build output, test fixtures, .env*, keys.
  5. Harden.
    • Non-root with a numeric UID/GID (USER 10001:10001) so Kubernetes runAsNonRoot can verify it; no sudo.
    • Build-time secrets only via RUN --mount=type=secret,id=.... Never ARG/ENV for secrets — build args are visible in docker history.
    • apt-get update && apt-get install -y --no-install-recommends ... && rm -rf /var/lib/apt/lists/* in one RUN; set -o pipefail before pipes (with bash).
    • COPY, not ADD, unless extracting a local tarball.
  6. Behave as PID 1. Exec-form CMD/ENTRYPOINT (JSON array) so SIGTERM reaches the app; the app drains in-flight work on SIGTERM; use docker run --init/tini if it spawns children. Add a HEALTHCHECK (or the orchestrator's probe) that checks the app, not just the port.
  7. Compose. Healthchecks on every service; depends_on: { db: { condition: service_healthy } }; named volumes for data; no secrets inline (use secrets: or environment injected at runtime — the safety hook blocks .env* files, so document required variables in the README or compose comments). Do not scale a service to more than one replica on a shared writable volume unless the app is proven safe for concurrent writers — temp-file name collisions and unsynchronised read-modify-write lost data in live runs.
  8. Verify (below), evidence with the record-evidence skill, then stop.

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +19 lines scan A → B 31fc5bd1e9c2
  2. 1mo ago First seen · 88 lines · 60 tokens per session scan A 3fdc7f954715

Subscribe to this mod's changes

docker-development is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 17d ago), licensed Apache-2.0. It adds 60 tokens to every session and 1,422 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

bulwark-brainstorm

Role-based brainstorming with dual modes: --scoped (sequential Task tool, 5 roles) and --exploratory (Agent Teams peer debate, 4 roles). Use for feasibility assessment and idea validation.

QBall-Inc/the-bulwark · 50 tokens

plan-creation

Create structured implementation plans via a 4-role scrum team (Product Owner, Architect, Eng/Delivery Lead, QA/Critic) with optional Agent Teams peer debate mode.

QBall-Inc/the-bulwark · 38 tokens

anthropic-validator

Validates Claude Code assets (skills, hooks, agents, commands, MCP servers, plugins) against official Anthropic standards. Fetches latest docs dynamically and produces structured validation reports.

QBall-Inc/the-bulwark · 40 tokens

code-review

Comprehensive code review with distinct aspect based sections. Use when reviewing code, checking for security issues, finding type safety problems, auditing code quality, or when user asks to review code, PRs or changes. Three-phase workflow runs static tools, LLM judgment, and writes diagnostic log.

QBall-Inc/the-bulwark · 61 tokens

create-subagent

Generates single-purpose Claude Code sub-agents for use via the Task tool. Use when creating dedicated sub-agents, scaffolding agent definitions, or generating agents with diagnostics and permissions setup.

QBall-Inc/the-bulwark · 42 tokens

test-audit

Audit test suites for T1-T4 violations using AST analysis, mock detection, and multi-stage synthesis. Invoke when user asks to audit tests, check test quality, find mock violations, review test effectiveness, or inspect test suites for over-mocking. Triggers automatic rewrites when quality gates fail.

QBall-Inc/the-bulwark · 0 tokens