Digitalocean registry cleanup
Skill Goodsmileduck/claude-registry/plugins/digitalocean-skills/skills/digitalocean-registry-cleanup
Community marketplace of Claude Code plugins: DevOps skill packs (Terraform, Kubernetes, CI/CD, cloud platforms, DigitalOcean), CLAUDE.md optimization, and diagramming — gated by a best-practices lint + security-audit CI.
npx -y skills add Goodsmileduck/claude-registry --skill digitalocean-registry-cleanupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Analyze and clean DigitalOcean Container Registry images. Lists repos with tag counts, deletes old tags (keep last N), finds stale repos, triggers garbage collection. Supports dry-run mode. Use when user says "clean registry", "delete old images", "DO registry", "registry cleanup", "docker images cleanup", "container registry", or "clean up old tags".
SKILL.md
1.6 KB, as published. Nobody here has run it
DigitalOcean Registry Cleanup
Prerequisite: doctl CLI must be installed and authenticated (doctl auth init).
Script
Run scripts/registry_cleanup.py via Bash tool:
SCRIPT="<skill-path>/scripts/registry_cleanup.py"
# Analyze: show all repos with tag counts and dates
python3 $SCRIPT analyze
# Clean: delete old tags from a repo, keep newest N
python3 $SCRIPT clean <repo> --keep 5 --dry-run # preview first
python3 $SCRIPT clean <repo> --keep 5 # execute
# Stale: find repos not updated in N months
python3 $SCRIPT stale --months 6 # list only
python3 $SCRIPT stale --months 6 --delete # delete all tags
# GC: trigger garbage collection to reclaim storage
python3 $SCRIPT gc
Workflow
- Run
analyzeto show registry overview - Present the table to the user, ask which repos to clean and how many tags to keep
- Run
clean <repo> --keep N --dry-runto preview - On user confirmation, run
clean <repo> --keep Nto delete - Run
staleif user wants to find abandoned repos - Run
gcafter all deletions to reclaim storage - Run
analyzeagain to show the result
Always use --dry-run first before destructive operations.