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.
npx skills add chainguard-demo/claude-plugins --skill dockerfile-migratorgit clone --depth 1 https://github.com/chainguard-demo/claude-pluginsWrote 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.
[](https://agentmods.dev/skills/chainguard-demo/claude-plugins/dockerfile-migrator)<a href="https://agentmods.dev/skills/chainguard-demo/claude-plugins/dockerfile-migrator"><img src="https://agentmods.dev/badge/skills/chainguard-demo/claude-plugins/dockerfile-migrator/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.
<a href="https://agentmods.dev/skills/chainguard-demo/claude-plugins/dockerfile-migrator"><img src="https://agentmods.dev/badge/skills/chainguard-demo/claude-plugins/dockerfile-migrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00018 | $0.01880 |
| Opus 5.5 | $0.00007 | $0.00752 |
| Sonnet 5.5 | $0.00004 | $0.00376 |
| Haiku 4.5 | $0.00002 | $0.00188 |
Grade C, and why
dockerfile-migrator scanned grade C with 2 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 3mo 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 deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
The `rm -rf /var/lib/apt/lists/*` cleanup pattern is unnecessary with `apk --no-cache`. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
RUN apt-get update && apt-get install -y curl git → RUN apk add --no-cache curl git How it starts
The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert at migrating existing Dockerfiles to use Chainguard Containers.
Available Tools
You have access to the dfc (Dockerfile Converter) MCP server which provides:
convert_dockerfile: Automatically converts Dockerfiles using Chainguard's mapping databaseanalyze_dockerfile: Analyzes Dockerfile structure and provides insights
Use these tools for automated conversion, then explain and enhance the results with the guidance below.
Also use the mapping-container-images-to-chainguard and mapping-os-packages-to-chainguard skills if they are available.
Clarify Before Starting
Before doing anything, clarify the following with the user and store the answers in ~/.claude/chainguard-preferences.md for reuse across subsequent Dockerfile migrations:
- What is the Chainguard organization name? (use
ORGANIZATIONas placeholder if unknown; usechainguardfor free tier) - Is FIPS compliance required? (FIPS images have a
-fipssuffix, e.g.python-fips) - Should images be pulled from
cgr.devdirectly, or from a proxied/mirrored registry? - Should the conversion be tested by building and/or running the image?
Backup the Dockerfile
Before modifying, back up the original by prepending old. to the filename:
Dockerfile -> old.Dockerfile
Then modify the original file directly.
Migration Strategy
- Use
analyze_dockerfileto understand the current structure - Use
convert_dockerfilefor automated conversion - Review and correct the output using the guidance below
- Explain each change and its security benefit
Image Mapping
| Original | Chainguard Image | Notes |
|---|---|---|
python:* |
cgr.dev/ORGANIZATION/python |
Use -dev for build stages |
node:* |
cgr.dev/ORGANIZATION/node |
Use -dev for npm/yarn install |
golang:* |
cgr.dev/ORGANIZATION/go + static:latest |
Build with go, run in static |
nginx:* |
cgr.dev/ORGANIZATION/nginx |
Drop-in replacement |
postgres:* |
cgr.dev/ORGANIZATION/postgres |
Compatible |
redis:* |
cgr.dev/ORGANIZATION/redis |
Compatible |
ruby:* |
cgr.dev/ORGANIZATION/ruby |
Use -dev for gem install |
openjdk:*, eclipse-temurin:* |
cgr.dev/ORGANIZATION/jdk (build) / jre (runtime) |
|
maven:* |
cgr.dev/ORGANIZATION/maven |
|
php:* |
cgr.dev/ORGANIZATION/php |
Use -dev for composer |
ubuntu:*, debian:* |
cgr.dev/ORGANIZATION/chainguard-base:latest |
Always use latest, no -dev variant |
alpine:* |
cgr.dev/ORGANIZATION/chainguard-base:latest |
Always use latest, no -dev variant |
fedora:*, centos:*, ubi* |
cgr.dev/ORGANIZATION/chainguard-base:latest |
Always use latest, no -dev variant |
scratch |
cgr.dev/ORGANIZATION/static:latest |
For fully static binaries |
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.
- 3mo ago First seen · 193 lines · 18 tokens per session scan C d5fb3636e7f9
dockerfile-migrator is a skill published in the GitHub repository chainguard-demo/claude-plugins (8 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 1,880 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
dockerfile-migrator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dockerfile-migratorchainguard-demo/claude-plugins | Skill | 8 | 7mo ago | Apache-2.0 | C | 18 | Claude Code |
| agent-bomLeoYeAI/openclaw-master-skills | Skill | 2.2k | 11d ago | MIT | A | 99 | Claude Code, Codex |
| bailian-sandboxmodelstudioai/cli | Skill | 378 | today | Apache-2.0 | A | 177 | Claude Code, Codex |
| configure-log-aggregationpjt222/agent-almanac | Skill | 46 | today | MIT | A | 86 | Claude Code |
| hermes-diagnostic-reviewAtlasOmnia/hermes-custom-pack | Skill | 88 | 16d ago | MIT | A | 49 | Claude Code, Codex |
| agents-v2-pylingxling/awesome-skills-cn | Skill | 343 | 1mo ago | MIT | A | 39 | Claude Code |
| vibe-service-health-dashboardash1794/vibe-engineering | Skill | 163 | 5d ago | MIT | A | 32 | Claude Code |