containerize

containerize is a skill for Claude Code, Codex from fmind/dot. It costs 40 tokens per session (1,097 once invoked), scanned A, original, MIT.

A workflow for packaging an application as a small, reproducible OCI container image, using ko for Go or a multi-stage Dockerfile for Python. OCI is a standard format for container images.

In plain words
What is it for?
Build Go and Python images, connect image tasks to mise, scan local images, and prepare them for deployment, signing, and SBOM checks.
Why use it?
It creates images that run without root access, can target multiple CPU types, and can be checked before they are shipped.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/fmind/dot/containerize
Any agent
npx skills add fmind/dot --skill containerize
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

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 containerize

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/containerize.svg)](https://agentmods.dev/skills/fmind/dot/containerize)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/containerize"><img src="https://agentmods.dev/badge/skills/fmind/dot/containerize.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,097 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.01097
Opus 5 $0.00020 $0.00549
Sonnet 5 $0.00008 $0.00219
Haiku 4.5 $0.00004 $0.00110

Measured today against content hash 7ff7e9ab7959, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

containerize 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 today.

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.

skills/containerize/SKILL.md · 67 lines

How it starts

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

Containerize an Application

Build a small, non-root, reproducible OCI image and verify it before it ships; cloud-run deploys it, trivy scans it, and cosign signs it.

Workflow

  1. Go: ko (default, no Dockerfile): builds a shell-less, multi-arch, reproducible image from a package path on cgr.dev/chainguard/static. Pin it per project (go get -tool github.com/google/ko, then go tool ko).

    export KO_DOCKER_REPO=<registry>/<slug>
    go tool ko build ./cmd/<slug> --bare --platform=linux/amd64,linux/arm64
    
  2. Python: multi-stage Dockerfile: copy Dockerfile and .dockerignore, then set the image digests and the <slug> entry point. Other runtimes need their own lockfile-aware build stage.

    docker build -t <registry>/<slug>:<tag> .
    docker buildx build --platform linux/amd64,linux/arm64 -t <registry>/<slug>:<tag> --push .
    
  3. Wire the tasks into mise.toml: build:image builds, check:image scans a local tarball so no registry push or digest is needed before the image ships.

    [env]
    KO_DOCKER_REPO = "<registry>/<slug>" # ko names images from it even when not pushing
    
    [tasks."build:image"]
    description = "Build the OCI image (ko)"
    run = "go tool ko build ./cmd/<slug> --bare" # or: docker build -t <registry>/<slug>:<tag> .
    
    [tasks."check:image"]
    description = "Scan the OCI image for vulnerabilities (trivy)"
    run = [
      "mkdir -p tmp",
      "go tool ko build ./cmd/<slug> --bare --push=false --tarball tmp/image.tar",
      "trivy --config trivy.yaml image --input tmp/image.tar",
    ]
    
  4. Verify the pushed digest: use the registry digest for every scan, signature, SBOM, and deployment reference; scan per trivy, then sign, verify, and attest the SBOM per cosign.

  5. Run locally the way Cloud Run will: docker run --rm -p 8080:8080 -e PORT=8080 <registry>/<slug>@<digest>; a project with a local cluster pushes to its registry per k8s-local.

Read the full file on GitHub · 67 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. today Changed · -1 tokens per session 7ff7e9ab7959
  2. yesterday First seen · 67 lines · 41 tokens per session scan A 76515a9002bd

Subscribe to this mod's changes

containerize is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 1,097 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.