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 | $0.00012 | $0.00992 |
| Sonnet 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 11d 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.
- 11d 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 (7 stars, last pushed 4mo 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. 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.
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…
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…
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.
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…
pentest-cloud-infrastructure
Cloud security posture management and container security assessment for AWS, Azure, GCP, and Kubernetes.
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…