docker-best-practices

docker-best-practices is a skill for Claude Code from HigorAlves/orc. It costs 41 tokens per session (737 once invoked), scanned A, original, MIT.

A set of guidelines for using Docker, a tool that packages applications and their dependencies into isolated containers. It covers Dockerfiles, Compose setups, image builds, and deploying containers.

In plain words
What is it for?
Use it to write or review Docker configurations, optimize images, apply security controls, and prepare containers for production.
Why use it?
It helps avoid oversized, insecure, fragile, or difficult-to-deploy container setups.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the orc plugin — 80 skills, 30 commands, 14 agents, 5 hooks shipped together

Good fit Use it to write or review Docker configurations, optimize images, apply security controls, and prepare containers for production.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/higoralves/orc/docker-best-practices
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 HigorAlves/orc --skill docker-best-practices
Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc

Made for: Claude Code.

Or install orc, the plugin that ships this one along with the rest of its 80 skills, 30 commands, 14 agents, 5 hooks.

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-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/higoralves/orc/docker-best-practices.svg)](https://agentmods.dev/skills/higoralves/orc/docker-best-practices)
Your own site
<a href="https://agentmods.dev/skills/higoralves/orc/docker-best-practices"><img src="https://agentmods.dev/badge/skills/higoralves/orc/docker-best-practices.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00041 $0.00737
Opus 5 $0.00020 $0.00368
Sonnet 5 $0.00008 $0.00147
Haiku 4.5 $0.00004 $0.00074

Measured 4d ago against content hash 58a0cd16c818, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

docker-best-practices scanned grade A with 0 findings 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

orc/skills/docker-best-practices/SKILL.md · 59 lines

How it starts

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

Docker Expert

Advanced Docker containerization expertise: container optimization, security hardening, multi-stage builds, orchestration patterns, and production deployment based on current industry best practices.

When to use

Use this skill when writing, optimizing, or reviewing Docker setups — Dockerfiles, .dockerignore, Docker Compose, multi-stage builds, image-size reduction, container security, resource limits, health checks, or production container deployment.

When NOT to use (recommend switching and stop)

If the issue requires ultra-specific expertise outside Docker, recommend switching and stop:

  • Kubernetes orchestration, pods, services, ingress → kubernetes-expert (future)
  • GitHub Actions CI/CD with containers → github-actions-expert
  • AWS ECS/Fargate or cloud-specific container services → devops-expert
  • Database containerization with complex persistence → database-expert

Example to output: "This requires Kubernetes orchestration expertise. Please invoke: 'Use the kubernetes-expert subagent.' Stopping here."

Workflow

  1. Analyze the container setup comprehensively (environment detection, project structure, running containers). See references/production-deploy.md. Prefer internal tools (Read, Grep, Glob) over shell; shell is a fallback.
  2. Identify the specific problem category and complexity level (see the index below).
  3. Apply the appropriate solution strategy from the relevant reference file.
  4. Validate thoroughly (build, security scan, runtime, Compose config). See references/production-deploy.md.

Read the relevant references/<topic>.md file when you need that detail — each file holds the patterns, code review checklist items, and diagnostics for that topic. For a partial task, load only the references you need.

Topic index

Topic When you need it Reference
Multi-stage builds & layer caching Optimizing Dockerfiles, dependency caching, cross-platform/buildx, base image selection references/multistage-builds.md
Image size optimization Distroless, artifact selection, layer consolidation, shrinking large images references/image-optimization.md
Security hardening Non-root users, secrets management, build-time secrets, health checks, attack surface references/security-hardening.md
Compose & dev workflow Docker Compose orchestration, service deps, networks, volumes, hot-reload dev overrides references/compose.md
Performance, resources & networking Resource limits, restart policies, service discovery, networking issues, expert handoff references/orchestration.md
Production deploy, validation & diagnostics Environment detection, build/runtime/Compose validation, full diagnostics catalog references/production-deploy.md

Read the full file on GitHub · 59 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 59 lines · 41 tokens per session scan A 58a0cd16c818

Subscribe to this mod's changes

docker-best-practices is a skill published in the GitHub repository HigorAlves/orc (6 stars, last pushed 12d ago), licensed MIT. It adds 41 tokens to every session and 737 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

pn-docker

Docker best practices for production containers. Multi-stage builds, non-root user, .dockerignore, layer caching, compose.yaml for local dev, and container security scanning. Use when writing or reviewing Dockerfiles or local development container setups.

perniemann/pnCore · 50 tokens

setup-container-security

Harden container images (Containerfile/Dockerfile) for supply-chain security — digest-pinned bases, non-root runtime, verified artifact fetches, hadolint/shellcheck linting, and grype + syft SBOM scanning. Use when a project builds a container image, before publishing an image to a registry, or when auditing container…

jrjsmrtn/project-orchestration-skills · 76 tokens

redteam-container-detail-pack

Domain routing and boundary guidance for authorized container and orchestration security testing, including Docker escape, Kubernetes privilege escalation, image vulnerabilities, and service mesh bypasses. Use when a task belongs to the container testing domain and needs scope, evidence, pivot, or exit criteria.

Unclecheng-li/DeepSec · 59 tokens

infrastructure-catchall

Routes infrastructure requests to the correct specialist based on domain: CI/CD, containers, cloud, databases, monitoring, reliability, and systems admin. Triggers: docker, kubernetes, terraform, ci/cd, github actions, deploy, railway, vercel, aws, database, postgresql, supabase, monitoring, alerting, incident, slo…

Chipagosfinest/enterprise-team · 92 tokens

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

taiyi-ui-design

A design-planning guide for describing how an application's user interface should look and behave. It produces a UI-DESIGN.md document covering layouts, components, interactions, accessibility, and error states.

Dong90/oh-my-taiyiforge · 35 tokens