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 migrating-dockerfiles-to-chainguardgit 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/migrating-dockerfiles-to-chainguard)<a href="https://agentmods.dev/skills/chainguard-demo/claude-plugins/migrating-dockerfiles-to-chainguard"><img src="https://agentmods.dev/badge/skills/chainguard-demo/claude-plugins/migrating-dockerfiles-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.
<a href="https://agentmods.dev/skills/chainguard-demo/claude-plugins/migrating-dockerfiles-to-chainguard"><img src="https://agentmods.dev/badge/skills/chainguard-demo/claude-plugins/migrating-dockerfiles-to-chainguard.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.00024 | $0.01985 |
| Opus 5.5 | $0.00010 | $0.00794 |
| Sonnet 5.5 | $0.00005 | $0.00397 |
| Haiku 4.5 | $0.00002 | $0.00198 |
Grade C, and why
migrating-dockerfiles-to-chainguard scanned grade C with 1 finding 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.
rm -rf /var/cache/yum/* How it starts
The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
To convert a Dockerfile to use Chainguard images you should follow these steps:
- Clarify instructions with the user
- Convert the Dockerfile
- Modify
FROMstatements to use Chainguard images. - Migrate any uses of other OS package managers to
apk - Adjust users and permissions where required.
- Modify
- Test the conversion
- Build the image
- Run the image
- Troubleshoot any failures
Clarify Instructions
If you're asked to convert a Dockerfile to Chainguard, before doing anything else, you should clarify the following with the user:
- What is the Chainguard organization name? Each Chainguard customer has their
own organization and it will be referred to generically as
ORGANIZATIONin these instructions. - Is FIPS required? Chainguard offers FIPS compliant images that have the
suffix
-fips. For instance:python-fips. - Should images be pulled directly from
cgr.dev? Or, if images are hosted/proxied from another repository, what is that repository? - Should you test the conversion?
- Should you try and build the image to validate the conversion worked?
- Should you try and run the image to validate the conversion worked?
Store these answers under ~/.claude/chainguard-preferences.md and try and reuse
this file across subsequent asks to migrate Dockerfiles.
Backup the Dockerfile
You should backup the old Dockerfile by prepending old. to it. For instance,
Dockerfile -> old.Dockerfile.
Then you can modify the original file directly.
Converting FROM statements
You should replace images defined in FROM lines with the equivalent
Chainguard image.
Always use the mapping-container-images-to-chainguard skill if it is
available.
You should try to match to actively maintained tags when converting Dockerfiles.
You should prefer -dev tags as they have more utilities in them and they are
less likely to cause issues. One known exception is chainguard-base which has
no -dev variant. You should always use the latest tag for chainguard-base.
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 · 248 lines · 24 tokens per session scan C a41419320d0b
migrating-dockerfiles-to-chainguard is a skill published in the GitHub repository chainguard-demo/claude-plugins (8 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 24 tokens to every session and 1,985 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
migrating-dockerfiles-to-chainguard compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| migrating-dockerfiles-to-chainguardchainguard-demo/claude-plugins | Skill | 8 | 7mo ago | Apache-2.0 | C | 24 | 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 |