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 catpilotai/catpilot-ai-guardrails --skill docker-safetygit clone --depth 1 https://github.com/catpilotai/catpilot-ai-guardrailsWrote 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/catpilotai/catpilot-ai-guardrails/docker-safety)<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/docker-safety"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/docker-safety/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/catpilotai/catpilot-ai-guardrails/docker-safety"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/docker-safety.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.00114 | $0.04739 |
| Opus 5.5 | $0.00046 | $0.01896 |
| Sonnet 5.5 | $0.00023 | $0.00948 |
| Haiku 4.5 | $0.00011 | $0.00474 |
Grade D, and why
docker-safety scanned grade D with 3 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 1mo 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
### Rule 2 — Non-root `USER` is mandatory; no images run as root 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/lib/apt/lists/*` for apt, `apk --no-cache` for apk, 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 python3 curl How it starts
The opening of the file, as written. The whole thing — 496 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Baseline
Applies when: Writing or running a Dockerfile/Containerfile, docker-compose.yml, docker build/run/exec (or podman/nerdctl/buildah equivalents), or a Kubernetes manifest setting securityContext, hostNetwork, hostPID, hostIPC, privileged, or hostPath volumes.
Always:
- Pin base images to an immutable digest (
FROM <image>@sha256:...); floating tags (latest, major/minor only) are for non-deployed internal tooling only. - Declare and switch to a non-root
USERbeforeCMD/ENTRYPOINT;COPY --chown=app:appfiles the runtime needs to read. - Pass build-time secrets with BuildKit
--mount=type=secret; pass runtime secrets via--env-fileor a secret store, never baked into the image. - Run production containers with
read_only/--read-only,no-new-privileges, andcap_drop: [ALL]with only required capabilities re-added. - Pin package versions, use the minimal-install flag, and clean the package cache in the same layer; verify checksums for downloaded binaries.
Never:
--privileged/privileged: true— disables seccomp, AppArmor, and capability dropping.--net=host/network_mode: hostor--pid=host/pid: host— shares the host's network or process namespace.-v /:/hostor mounting/var/run/docker.sockinto the container — full host filesystem or Docker daemon control.ENV/ARGfor secrets, orCOPY .env .— persists secrets in image history.chmod -R 777inside a container image.
Open the full component before acting: it has the examples, the remediation steps, and the detection patterns.
Why
A Docker image and its run command together define the security posture
of every workload they produce. The same image can ship as a hardened,
non-root, read-only filesystem service — or as a root-owned container
with the host's /var/run/docker.sock mounted in, one docker exec
away from a host takeover.
The failures this skill blocks share a common shape: a single line in
a Dockerfile, a docker-compose.yml, or a docker run flag that
breaks the isolation boundary the container is supposed to provide.
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.
- 1mo ago Changed · +20 lines a933e0685878
- 2mo ago First seen · 476 lines · 114 tokens per session scan D 24656937f2d4
docker-safety is a skill published in the GitHub repository catpilotai/catpilot-ai-guardrails (2 stars, last pushed 8d ago), licensed MIT. It adds 114 tokens to every session and 4,739 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it D with 3 findings (asks for root, 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.
docker-safety compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docker-safetycatpilotai/catpilot-ai-guardrails | Skill | 2 | 8d ago | MIT | D | 114 | Claude Code |
| hermes-s6-container-supervisionNousResearch/hermes-agent | Skill | 262k | today | MIT | A | 20 | Claude Code, Codex |
| docker-managementNousResearch/hermes-agent | Skill | 262k | today | MIT | A | 14 | Claude Code, Codex |
| dockerAtomicBot-ai/Atomic-Chat | Skill | 1.9k | yesterday | none | A | 44 | Claude Code, Codex |
| dockerG1Joshi/Agent-Skills | Skill | 15 | 1mo ago | MIT | A | 38 | Claude Code, Codex |
| helmG1Joshi/Agent-Skills | Skill | 15 | 1mo ago | MIT | A | 32 | Claude Code, Codex |
| kubernetesG1Joshi/Agent-Skills | Skill | 15 | 1mo ago | MIT | A | 47 | Claude Code, Codex |