ruby-gc

Featured

Audit asdf-installed Ruby versions against project pins and remove unreferenced ones. Dry-run by default.

AI & Automation 421 stars 49 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
87
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Ruby GC Garbage-collect asdf-installed Ruby versions that nothing on the system references. **Dry-run by default.** Without `--apply`, this is a read-only report and you must not uninstall anything. ## Arguments - `$ARGUMENTS` — pass `--apply` to enable the uninstall step. Absent that flag, stop after the report. - `--apply` enables deletion; it does **not** authorize it. You still show the full table and get an explicit yes first. ## Safety rules These are non-negotiable. The cost of a wrong delete is a broken app plus a slow rebuild; the cost of a wrong keep is a few hundred MB. 1. **Never delete the global version** — the one in `~/.tool-versions`. 2. **Never delete a version that has any pin on disk**, wherever that pin lives. 3. **Never delete without showing the table and getting an explicit confirmation** in the same session. 4. **If the scan errors, or returns implausibly few pins, STOP and report.** A truncated scan is indistinguishable from "nothing uses this" — it produces a confident delete list that breaks real apps. This has happened; treat a thin result as a bug in the scan, not a licence to delete. "Implausibly few" is measured against the July 2026 baseline in "Calibration" below — check it every run, before classifying anything. 5. **Uninstall one version at a time**, reporting each result before the next. ## Your task ### 1. Inventory what's installed ```bash asdf list ruby du -sh ~/.asdf/installs/ruby/* ``` ### 2. Read the global pin ```bash ...

Details

Author
joshukraine
Repository
joshukraine/dotfiles
Created
12 years ago
Last Updated
today
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category