maintaining-docker-hub
Skill by TriliumNext
Guides maintainers of Trilium's Docker Hub and GHCR images through pull stats, tag cleanup and untagged-image purges. It is for the Trilium maintainers who manage those repositories.
Install maintaining-docker-hub
Built from the published package, never by AI.
git clone --depth 1 https://github.com/TriliumNext/Trilium /tmp/Trilium && mkdir -p ~/.claude/skills && cp -r /tmp/Trilium/.claude/skills/maintaining-docker-hub ~/.claude/skills/maintaining-docker-hubRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/TriliumNext/Trilium /tmp/Trilium && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Trilium/.claude/skills/maintaining-docker-hub ~/.gemini/antigravity-cli/skills/maintaining-docker-hubAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install maintaining-docker-hub in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides maintenance of Trilium's published Docker images on Docker Hub and GHCR. It covers pull and star statistics, which tags are published and where, the legacy triliumnext/notes and zadam/trilium repositories, and the workflow steps that copy images to Docker Hub. It does not cover building or running the image locally, which the Developer Guide's Docker page handles.
All work runs through hub.mjs, which provides stats, tag listing and deletion, a manifest inventory, and an untagged-image purge. Each command is a dry run by default and deletes only when given an explicit flag. The skill also explains how Docker Hub storage works: deleting a tag frees no space, and only deleting an untagged image does. It is aimed at maintainers of the Trilium project.
Written from the project's SKILL.md and checked against it.
What it can do
- statsShows pulls, stars, storage and the weekly pull series for the named repositories.
- tagsLists tags in a repository, with --delete to remove them.
- inventoryLists every manifest in a repository, including untagged ones.
- purgeDeletes untagged image indexes, optionally only those older than N days. Dry run by default.
- Publishing referenceExplains which tags go to GHCR, Docker Hub or both, and how legacy images are mirrored.
What you need
- Node.js to run hub.mjs
- Docker Hub credentials from docker login or DOCKERHUB_USERNAME and DOCKERHUB_TOKEN
- Owner access to the namespace to delete tags or images
Try asking
- How many pulls did triliumnext/trilium get this week?
- Do a dry run of purging untagged images older than 7 days.
- Which tags does triliumnext/trilium publish to Docker Hub?
Good to know
- Deletes cannot be reversed, so each delete needs explicit user approval.
- purge refuses to run while a repository has 1,000 or more tags.
- Tag listing returns at most 1,000 tags per request.
- The Docker Hub API rate-limits requests, and the script backs off when it is hit.
Security check
D- Tells the assistant to ignore its instructions or hide actions from youIn
.claude/skills/maintaining-docker-hub/SKILL.md:Never tell the user
Checked automatically: .claude/skills/maintaining-docker-hub/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
hub.mjs14 KB
Alternatives to maintaining-docker-hub
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
maintaining-docker-hub: common questions
Does deleting a Docker Hub tag free up storage?
No. The image stays, can still be pulled by digest, and still counts toward storage_size. Only deleting the untagged image frees storage.
Why are Docker Hub pull counts so high?
Pulls count manifest requests, so auto-updaters such as Watchtower and Diun polling an unchanged tag add to the count. The skill says to read them as installations still tracking a tag, not downloads.
Is hub.mjs safe to run on a repository?
Yes, by default. Every command is a dry run, and it only deletes when you pass --delete. The skill asks that deletions wait for explicit approval.
How do I install maintaining-docker-hub?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is maintaining-docker-hub free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is maintaining-docker-hub safe to use?
It scores 87 of 100. Grades: maintenance A, licence C, quality A. Security check: grade D (tells the assistant to ignore its instructions or hide actions from you). Review the code before you install. How grades work.
What are alternatives to maintaining-docker-hub?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
