container-image-tagging

container-image-tagging is a skill for Claude Code from oborchers/fractional-cto. It costs 84 tokens per session (2,815 once invoked), scanned A, original, MIT.

A guide for tagging Docker container images, which are packaged versions of applications, with the exact Git commit that created them.

In plain words
What is it for?
Use it when building images, publishing them to registries, setting retention rules, or tracing a deployed container back to its source code.
Why use it?
It makes it easier to identify the code running in production and avoids unclear or changing tags such as “latest” during incidents and rollbacks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cloud-foundation-principles plugin — 16 skills, 1 command, 1 agent shipped together

Good fit Use it when building images, publishing them to registries, setting retention rules, or tracing a deployed container back to its source code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oborchers/fractional-cto/container-image-tagging
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 oborchers/fractional-cto --skill container-image-tagging
Clone the repo
git clone --depth 1 https://github.com/oborchers/fractional-cto

Made for: Claude Code.

Or install cloud-foundation-principles, the plugin that ships this one along with the rest of its 16 skills, 1 command, 1 agent.

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 container-image-tagging

README.md
[![agentmods](https://agentmods.dev/badge/skills/oborchers/fractional-cto/container-image-tagging/github.svg)](https://agentmods.dev/skills/oborchers/fractional-cto/container-image-tagging)
Your own site
<a href="https://agentmods.dev/skills/oborchers/fractional-cto/container-image-tagging"><img src="https://agentmods.dev/badge/skills/oborchers/fractional-cto/container-image-tagging/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 container-image-tagging

Your own site · 80×15
<a href="https://agentmods.dev/skills/oborchers/fractional-cto/container-image-tagging"><img src="https://agentmods.dev/badge/skills/oborchers/fractional-cto/container-image-tagging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,815 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00084 $0.02815
Opus 5 $0.00042 $0.01407
Sonnet 5 $0.00017 $0.00563
Haiku 4.5 $0.00008 $0.00281

Measured 12d ago against content hash 444695ed4d60, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

container-image-tagging 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 12d 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.

cloud-foundation-principles/skills/container-image-tagging/SKILL.md · 216 lines

How it starts

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

Tag Every Image with the Git SHA, or Accept Chaos

At 3am during an incident, the first question is always the same: "what code is running?" If the answer requires digging through CI/CD logs, cross-referencing deployment timestamps, or asking a colleague who might remember which build went out Tuesday, you have already lost critical minutes. A container image tagged with the full git commit SHA answers the question instantly. You look at the running container, read the image tag, and you have the exact commit. From there, one command shows you every line of code in production.

The latest tag is the root of a particularly insidious class of failures. Two services pulling latest five minutes apart may receive different images. A rollback to latest deploys whatever happens to be newest, which may be the broken version you are trying to escape. Environment-based tags like staging or production silently mutate, destroying the ability to reproduce issues. The only tag that is both immutable and traceable is the git commit SHA.

The Tagging Format

Every container image receives exactly one meaningful tag: the full 40-character git commit SHA. Short SHAs are not acceptable -- they can collide as repository history grows, and they provide no benefit since the tag is never typed by hand.

# The only acceptable tagging pattern
IMAGE_TAG=$(git rev-parse HEAD)
# Result: a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0

docker build -t myorg/myapp:${IMAGE_TAG} .
docker push registry.example.com/myorg/myapp:${IMAGE_TAG}

Good vs. Bad Tagging Patterns

Pattern Example Verdict Why
Full git SHA myapp:a1b2c3d4e5f6... Correct Immutable, traceable to exact commit
latest myapp:latest Dangerous Mutable, two pulls can get different images, rollback is meaningless
Short SHA myapp:a1b2c3d Risky Collisions grow with repo size, loses traceability precision
Date-based myapp:2025-03-15 Broken Multiple builds per day, no code traceability, timezone confusion
Build number myapp:build-142 Fragile CI-system-specific, lost if CI rebuilt, no direct link to code
Environment myapp:production Dangerous Mutable like latest, silently changes, impossible to diff
Semver only myapp:1.2.3 Incomplete Required for production deploys, but insufficient alone -- must always accompany the SHA tag for traceability

Read the full file on GitHub · 216 lines

Files

What ships with it

2 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. 12d ago First seen · 216 lines · 84 tokens per session scan A 444695ed4d60

Subscribe to this mod's changes

container-image-tagging is a skill published in the GitHub repository oborchers/fractional-cto (30 stars, last pushed 1mo ago), licensed MIT. It adds 84 tokens to every session and 2,815 once invoked, about $0.0004 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-08-30.

Related

Other skills, from other repositories

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

compute-env-setup

Set up a reproducible Feynman compute environment for research jobs. Use when a task needs Python/R packages, GPU libraries, containers, Modal, SSH, caches, or managed model runtime setup.

companion-inc/feynman · 45 tokens

securing-kubernetes-on-cloud

This skill covers hardening managed Kubernetes clusters on EKS, AKS, and GKE by implementing Pod Security Standards, network policies, workload identity, RBAC scoping, image admission controls, and runtime security monitoring. It addresses cloud-specific security features including IRSA for EKS, Workload Identity for…

xalgorix/xalgorix · 80 tokens

detecting-privilege-escalation-in-kubernetes-pods

Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.

xalgorix/xalgorix · 40 tokens

implementing-rbac-hardening-for-kubernetes

Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.

xalgorix/xalgorix · 41 tokens

docker-socket-mount

Docker / containerd socket mounted into a container → host RCE. Common in CI runners, GitOps controllers (ArgoCD, Flux), and 'Docker-in-Docker' setups. Single-command escape via docker run --rm --privileged -v /:/host alpine chroot /host.

PurpleAILAB/Decepticon · 67 tokens