/palladius-public-goodies:git-disk-cleanupfrom palladius-public-goodies
Sweeps entire Git workspace to reclaim disk space by detecting interrupted chumbia runs, stale build outputs, merged worktrees, uv cache, and node_modules. Runs discovery-first with dry-run mode and mtime guards to protect active work.
Ships in palladius-public-goodies. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
git-disk-cleanup) — Fleet-Wide Workspace Janitor & Branch Mergergit-disk-cleanup is the macro-level ("Saturday Sweep" / daily disk emergency) counterpart to chumbia:
/chumbia cleans up 1 repository / 1 worktree at the end of a single conversation (creating <GIT_ROOT>/.chumbia.touch at start and removing it at Phase 4 sign-off)./git-disk-cleanup sweeps your entire Git workspace ($GIT_WORKSPACE_DIR, defaulting to ~/git in the Carlessian Cinematic Universe or ~/workspace elsewhere) plus global agent worktrees (~/.gemini/antigravity/worktrees/, ~/.gemini/jetski/worktrees/) to reclaim gigabytes of disk space and rescue forgotten branches/worktrees before they rot!python3 "$SKILL_DIR/scripts/git_disk_cleanup.py" first and present the structured 4-Tier table to the user before deleting anything.GIT_WORKSPACE_DIR):
--root <dir> > $GIT_WORKSPACE_DIR > $WORKSPACE_DIR > ~/git (if present) > ~/workspace./chumbia Detection (.chumbia.touch):
<GIT_ROOT>/.chumbia.touch had an interrupted, crashed, or incomplete /chumbia run. Highlight it at the very top of the report so the user can finish merging/cleaning that repo!--protect-days 7):
out/, publish/, dist/, or build/ folders if any file inside was modified within the last N days (default: 7 days). Active work (e.g., today's conference slides or articles) is marked 🔥 PROTECTED (RECENT M-TIME)..worktrees/ and global ~/.gemini/antigravity/worktrees/.🟢 MERGED & CLEAN): Branch is merged into main/master (git merge-base --is-ancestor or git cherry) AND git status --porcelain is empty (dirty: 0). 100% safe to remove via git worktree remove.🟡 UNMERGED OR DIRTY): Never delete the worktree directory! Report its unmerged commits and dirty file count so the user can merge/salvage it, and offer to clean only its internal node_modules/ or stale build caches.💎 DO NOT ZAP):
.zip, .tgz, .tar.gz, .mp4, .mov >50 MB) are flagged as 💎 GOLD — ARCHIVE TO NAS. Never rm them automatically; always propose rsync --checksum to NAS/external storage first.# Default scan (auto-detects $GIT_WORKSPACE_DIR, ~/git, or ~/workspace)
python3 "$SKILL_DIR/scripts/git_disk_cleanup.py"
# Custom workspace root or custom mtime protection window (in days)
GIT_WORKSPACE_DIR=~/workspace python3 "$SKILL_DIR/scripts/git_disk_cleanup.py" --protect-days 7
# JSON output for programmatic inspection
python3 "$SKILL_DIR/scripts/git_disk_cleanup.py" --json
Present the script's findings grouped into:
/chumbia Runs (.chumbia.touch) & Dirty Main Repos: Repos that need commits/pushes or finished /chumbia runs.uv cache (~/.cache/uv) + git-ignored node_modules/, .venv/, .next/, target/, __pycache__/.>7d old): Old publish/, out/, dist/ directories (explicitly showing which recent out//publish/ dirs were protected by the timestamp guard!).dirty: 0) worktrees ready for git worktree remove.node_modules//publish/ bloat while keeping the code, or (b) inspect their diff/commits to merge them into main now!DO NOT ZAP): Large .zip/.mp4 archives to move to NAS rather than delete.# Execute Tier 1 (uv cache + git-ignored node_modules/.venv/.next/__pycache__)
python3 "$SKILL_DIR/scripts/git_disk_cleanup.py" --execute --tier 1
# Execute Tier 2 (stale build outputs older than --protect-days)
python3 "$SKILL_DIR/scripts/git_disk_cleanup.py" --execute --tier 2
# Execute Tier 3A (remove merged+clean worktrees & prune inner bloat of unmerged worktrees)
python3 "$SKILL_DIR/scripts/git_disk_cleanup.py" --execute --tier 3
To run this automatically every Saturday morning (or daily when disk space is tight), recommend the /schedule command to the user:
"You can use
/scheduleto rungit-disk-cleanupin audit mode every Saturday at 09:00 (0 9 * * 6) to catch forgotten worktrees,.chumbia.touchbreadcrumbs, and multi-GB caches!"
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
palladius-public-goodies@palladius-skills is listed by palladius/skills — review the source before installing
npx claudepluginhub palladius/skills --plugin palladius-public-goodies66 skills in this plugin
/a2ui(💛) Build and render portable, declarative Generative UIs with Google A2UI (Agent-to-User Interface). Use whenever the user asks to generate, design, or wire interactive UI widgets, cards, forms, or dashboards using A2UI./add-to-portfolio-app(💛) Adds or syncs Talks, Keynotes, Workshops, Articles, Codelabs, Slides, and Videos in Riccardo's personal portfolio application (apps-portfolio) and companion bio repo (my-sessions-and-bio), including SQLite sync, TDD checks, default speaker images, and automated Cloud Run deployment./adk-python(💛) Create and manage AI agents using Google's Agent Development Kit (ADK) for Python. Use when the user wants to build single or multi-agent systems, evaluate agents, or deploy them. Includes instructions for fetching fresh ADK documentation and links for TypeScript and Go development./agy-cli-to-t3-import(💛) Import, resuscitate, and migrate historical or interrupted Antigravity CLI sessions (`agy --conversation <cid>`) into native T3 Code threads with standard title formatting `[agy2t3] 🪦 <Topic> (<short_cid>)` and context handoff./ai-coding(💛) Best practices for AI-assisted coding and maintaining agent system instructions (AGENTS.md, GEMINI.md, CLAUDE.md, CONTRIBUTING.md, SPECS.md, INSTRUCTIONS.md, SKILL.md) and collaborative Google Docs (references/google-docs-best-practices.md). Enforces inclusive AGENTS.md over vendor-specific files, prevents prompt bloat (instruction cramming, single-concept overfitting H2 sections, append-only drift), and provides analyze_bloat_history.py to audit Git history or uncommitted diffs./ai-ethics(💛) Use when evaluating ethical boundaries, ensuring EU AI Act (Regulation (EU) 2024/1689) safety-ladder compliance, handling security vulnerabilities or responsible disclosure, facing pressure to prioritize task completion over safety/honesty, launching multi-agent swarms (carbon footprint), verifying factual/scientific claims against disinformation, enforcing work-to-personal non-exfiltration, or installing/auditing AI_ETHICS.md and CONSTITUTION.md.