mapping-container-images-to-chainguard

mapping-container-images-to-chainguard is a skill for Claude Code from chainguard-demo/claude-plugins. It costs 35 tokens per session (2,052 once invoked), scanned A, original, Apache-2.0.

A guide for replacing container image references in Dockerfile FROM lines with corresponding Chainguard images.

In plain words
What is it for?
Use it to convert full Dockerfiles, inspect them first, map image names and tags, handle registry namespaces, and look up unknown images.
Why use it?
Image names, tags, registries, and special cases such as FIPS versions or static binaries need careful translation during a Dockerfile conversion.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the chainguard-codegen plugin — 6 skills, 1 MCP server shipped together

Good fit Use it to convert full Dockerfiles, inspect them first, map image names and tags, handle registry namespaces, and look up unknown images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chainguard-demo/claude-plugins/mapping-container-images-to-chainguard
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 chainguard-demo/claude-plugins --skill mapping-container-images-to-chainguard
Clone the repo
git clone --depth 1 https://github.com/chainguard-demo/claude-plugins

Made for: Claude Code.

Or install chainguard-codegen, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

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 mapping-container-images-to-chainguard

README.md
[![agentmods](https://agentmods.dev/badge/skills/chainguard-demo/claude-plugins/mapping-container-images-to-chainguard/github.svg)](https://agentmods.dev/skills/chainguard-demo/claude-plugins/mapping-container-images-to-chainguard)
Your own site
<a href="https://agentmods.dev/skills/chainguard-demo/claude-plugins/mapping-container-images-to-chainguard"><img src="https://agentmods.dev/badge/skills/chainguard-demo/claude-plugins/mapping-container-images-to-chainguard/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 mapping-container-images-to-chainguard

Your own site · 80×15
<a href="https://agentmods.dev/skills/chainguard-demo/claude-plugins/mapping-container-images-to-chainguard"><img src="https://agentmods.dev/badge/skills/chainguard-demo/claude-plugins/mapping-container-images-to-chainguard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,052 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.00035 $0.02052
Opus 5 $0.00017 $0.01026
Sonnet 5 $0.00007 $0.00410
Haiku 4.5 $0.00003 $0.00205

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

Security

Grade A, and why

mapping-container-images-to-chainguard 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.

chainguard-codegen/skills/mapping-container-images-to-chainguard/SKILL.md · 182 lines

How it starts

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

When converting FROM statements in a Dockerfile to use Chainguard images, follow these steps:

  1. Use the dfc MCP server for automated conversion where available
  2. Apply tag mapping rules
  3. Look up unknown images using the ai-docs MCP server
  4. Handle special cases (generic Linux bases, static binaries, FIPS)

Use the dfc MCP Server

If the dfc MCP server is available, use it to perform automated conversion. It handles registry rewriting, image name translation, and tag mapping automatically.

Use the convert_dockerfile tool to convert a full Dockerfile, or analyze_dockerfile to inspect the current state before converting.

When using dfc, always pass the organization name if you know it. If you don't, use ORG as a placeholder and remind the user to substitute their own.

Organization Name

Every Chainguard customer has their own organization namespace at cgr.dev:

cgr.dev/ORGANIZATION/image-name:tag
  • For enterprise customers, use the customer's Chainguard organization name
  • For free tier / public images, use chainguard

Check ~/.claude/chainguard-preferences.md if it exists, or ask the user if the organization name is unknown.

Tag Mapping Rules

Follow these rules when converting tags from upstream images to Chainguard:

  1. chainguard-base always uses latest — never add a version or -dev suffix
  2. No tag or non-semantic tag → latest
    • FROM nodeFROM cgr.dev/ORGANIZATION/node:latest
    • FROM node:ltsFROM cgr.dev/ORGANIZATION/node:latest
  3. Semantic version → truncate to major.minor
    • FROM node:14.17.3FROM cgr.dev/ORGANIZATION/node:14.17
  4. Add -dev suffix when the stage has RUN commands (except chainguard-base)
    • FROM node:14 (stage has RUN) → FROM cgr.dev/ORGANIZATION/node:14-dev
    • FROM node:14 (no RUN) → FROM cgr.dev/ORGANIZATION/node:14
  5. Final stage of a multi-stage build should use a non-dev image unless it has RUN commands

Examples:

  • FROM node:14FROM cgr.dev/ORG/node:14-dev (if stage has RUN commands)
  • FROM node:14.17.3FROM cgr.dev/ORG/node:14.17-dev (if stage has RUN commands)
  • FROM debian:bullseyeFROM cgr.dev/ORG/chainguard-base:latest (always)
  • FROM golang:1.19-alpineFROM cgr.dev/ORG/go:1.19-dev (if stage has RUN commands)

Read the full file on GitHub · 182 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. 12d ago First seen · 182 lines · 35 tokens per session scan A 481fa0f0198b

Subscribe to this mod's changes

mapping-container-images-to-chainguard is a skill published in the GitHub repository chainguard-demo/claude-plugins (7 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 35 tokens to every session and 2,052 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-08-31.

Related

Other skills, from other repositories

build-mcpb

This skill should be used when the user wants to "package an MCP server", "bundle an MCP", "make an MCPB", "ship a local MCP server", "distribute a local MCP", discusses ".mcpb files", mentions bundling a Node or Python runtime with their MCP server, or needs an MCP server that interacts with the local filesystem…

anthropics/claude-plugins-official · 98 tokens

nextjs-deployment

Provides comprehensive patterns for deploying Next.js applications to production. Use when configuring Docker containers, setting up GitHub Actions CI/CD pipelines, managing environment variables, implementing preview deployments, or setting up monitoring and logging for Next.js applications. Covers standalone output…

giuseppe-trisciuoglio/developer-kit · 71 tokens

opencode-sandbox

Run OpenCode in a docker-dev sandbox (SSH/gh on by default; --no-ssh/--no-github to isolate). Prints docker exec attach; kept until you confirm rm. Don't use for opencode.ai (opencode-runner), Herdr, or the app.

luongnv89/skills · 63 tokens

escaping-hardened-containers

Escape containers that drop capabilities, enforce seccomp profiles, and run behind AppArmor or SELinux — enumerating residual capabilities, analyzing seccomp filters, abusing single-capability escapes, cgroup release agents, filesystem mounts, and runtime CVEs. Use when a container has no --privileged flag but retains…

trilwu/secskills · 105 tokens

pentest-cloud-infrastructure

Cloud security posture management and container security assessment for AWS, Azure, GCP, and Kubernetes.

jd-opensource/JoySafeter · 25 tokens

configure-log-aggregation

Set up centralized log aggregation with Loki and Promtail (or ELK stack), including log parsing, label extraction, retention policies, and integration with metrics for correlation. Use when consolidating logs from multiple services into a searchable system, replacing local log files with centralized queryable storage…

pjt222/agent-almanac · 86 tokens