hm-docker-clean

hm-docker-clean is a skill for Claude Code, Codex from rodrigohighermind/highermind-code-skills. It costs 115 tokens per session (991 once invoked), scanned A, original, MIT.

A safety-focused procedure for freeing disk space used by Docker on a Mac. Docker is software that runs applications in isolated containers; this guide distinguishes disposable images and caches from volumes that may contain product data.

In plain words
What is it for?
Use it when Docker storage fills the disk, Docker.raw grows large, or an owner asks to remove images, caches, or containers. It is intended for assisted cleanup where data-bearing volumes must be protected.
Why use it?
It reduces Docker storage without treating databases and other persistent data as disposable. The procedure requires checking what uses space and mapping volumes to products before removing anything risky.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when Docker storage fills the disk, Docker.raw grows large, or an owner asks to remove images, caches, or containers. It is intended for assisted cleanup where data-bearing volumes must be protected.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rodrigohighermind/highermind-code-skills/hm-docker-clean
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 rodrigohighermind/highermind-code-skills --skill hm-docker-clean
Clone the repo
git clone --depth 1 https://github.com/rodrigohighermind/highermind-code-skills

Made for: Claude Code, Codex.

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 hm-docker-clean

README.md
[![agentmods](https://agentmods.dev/badge/skills/rodrigohighermind/highermind-code-skills/hm-docker-clean/github.svg)](https://agentmods.dev/skills/rodrigohighermind/highermind-code-skills/hm-docker-clean)
Your own site
<a href="https://agentmods.dev/skills/rodrigohighermind/highermind-code-skills/hm-docker-clean"><img src="https://agentmods.dev/badge/skills/rodrigohighermind/highermind-code-skills/hm-docker-clean/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 hm-docker-clean

Your own site · 80×15
<a href="https://agentmods.dev/skills/rodrigohighermind/highermind-code-skills/hm-docker-clean"><img src="https://agentmods.dev/badge/skills/rodrigohighermind/highermind-code-skills/hm-docker-clean.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 991 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00115 $0.00991
Opus 5 $0.00057 $0.00495
Sonnet 5 $0.00023 $0.00198
Haiku 4.5 $0.00012 $0.00099

Measured 9d ago against content hash 93705266daa4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

hm-docker-clean 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 9d 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.

hm-docker-clean/SKILL.md · 60 lines

How it starts

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

/hm-docker-clean — Faxina de Docker Segura

Você está em modo limpeza de Docker. Regra mãe: dados são sagrados. Disco cheio nunca justifica perder um byte de banco.

Antes de tudo: existe automação pro lixo trivial

O binário docker-gc já cuida do lixo recorrente e seguro (build cache órfão + imagens dangling), conservador, agendado no launchd semanal (com.highermind.docker-gc). Se o problema é só acúmulo de rotina, rode docker-gc e pare aqui. Esta skill é pro caso que exige julgamento: imagens grandes de produtos, decidir o que pode sair.

Proibições absolutas (nunca, em hipótese alguma)

  • docker volume prune — destrói dados de produtos.
  • docker system prune -a --volumes — idem, pior.
  • docker volume rm <qualquer> sem confirmação explícita do Owner naquela sessão.
  • Remover imagem com tag de produto sem antes provar onde o dado vive.

Protocolo (a ordem importa)

1. Diagnóstico, sem tocar em nada

docker system df -v      # o que ocupa: imagens, cache, containers, VOLUMES
docker volume ls         # liste e confirme com o Owner quais são os bancos dele

Mapeie cada volume ao produto. Os volumes são o ativo sagrado — eles não saem nunca nesta faxina.

2. Limpe só o descartável puro (sem perguntar)

docker builder prune -f  # cache órfão
docker image prune -f    # SÓ dangling (<none> sem container). Nunca -a sem confirmar.

3. PARE antes de containers e imagens de produto

  • docker container prune -f remove containers parados. Não apaga volume (o dado fica no volume nomeado, reconecta no compose up). Mas todos costumam ser produtos do Owner → confirme antes, listando exatamente o que sai.
  • Imagens com tag de produto → prove onde o dado vive antes de remover. Faces/pessoas, transações, etc. costumam estar em Supabase/Postgres (volume ou nuvem), não na imagem. A imagem é só o ambiente de runtime/build. Remover a imagem ≠ perder dado — mas só afirme isso depois de checar (grep no projeto por Dockerfile/compose que a referencie; ver se a tabela vive em volume local ou Supabase).
  • Custo real de remover imagem de produto = ter que rebuildar depois. Diga isso ao Owner.

Read the full file on GitHub · 60 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. 9d ago First seen · 60 lines · 115 tokens per session scan A 93705266daa4

Subscribe to this mod's changes

hm-docker-clean is a skill published in the GitHub repository rodrigohighermind/highermind-code-skills (193 stars, last pushed 2mo ago), licensed MIT. It adds 115 tokens to every session and 991 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

compute-env-setup

Set up a reproducible Feynman compute environment for research jobs. Use when a task needs Python/R packages, GPU libraries, containers, Modal, SSH, caches, or managed model runtime setup.

companion-inc/feynman · 45 tokens

securing-kubernetes-on-cloud

This skill covers hardening managed Kubernetes clusters on EKS, AKS, and GKE by implementing Pod Security Standards, network policies, workload identity, RBAC scoping, image admission controls, and runtime security monitoring. It addresses cloud-specific security features including IRSA for EKS, Workload Identity for…

xalgorix/xalgorix · 80 tokens

detecting-privilege-escalation-in-kubernetes-pods

Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.

xalgorix/xalgorix · 40 tokens

implementing-rbac-hardening-for-kubernetes

Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.

xalgorix/xalgorix · 41 tokens

docker-socket-mount

Docker / containerd socket mounted into a container → host RCE. Common in CI runners, GitOps controllers (ArgoCD, Flux), and 'Docker-in-Docker' setups. Single-command escape via docker run --rm --privileged -v /:/host alpine chroot /host.

PurpleAILAB/Decepticon · 67 tokens