Cross-drive storage audit and cleanup. Surveys all drives, finds orphaned git worktrees, large AI tool caches (.ollama, .gemini, .cursor, npm, pip), and buildable artifacts (node_modules, .venv). Produces a prioritized action plan with specific migration commands. Use when disk space is low or worktrees need cleanup; do NOT use for project structure issues (use /organize instead).
Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
Cross-drive storage audit and cleanup. Surveys all drives, finds orphaned git worktrees, large AI tool caches (.ollama, .gemini, .cursor, npm, pip), and buildable artifacts (node_modules, .venv). Produces a prioritized action plan with specific migration commands. Use when disk space is low or worktrees need cleanup; do NOT use for project structure issues (use /organize instead).
user-invocable
true
auto-trigger
false
trigger_keywords
["houseclean","house clean","disk space","free space","c drive full","drive full","running out of space","clean up disk","orphaned worktrees","clean worktrees","disk audit","storage audit","move to another drive","free up space"]
last-updated
"2026-04-03T00:00:00.000Z"
/houseclean — Storage Audit and Cleanup
Use when disk space is low, AI tool caches are bloated, or worktrees need cleanup.
Do NOT use for project structure issues (use /organize) or pre-merge worktree review (use /merge-review).
Orientation
Use when: cross-drive storage audit -- finds orphaned repos, stale branches, and large directories across all drives.
Don't use when: auditing project infrastructure only (use /infra-audit); cleaning a specific directory (use Bash directly).
Invocation Forms
/houseclean # Full audit — all phases
/houseclean --quick # Drive survey + quick wins only (no deep scan)
/houseclean --worktrees # Orphaned worktree audit only
/houseclean --ai-tools # AI tool cache audit only
/houseclean --projects # Project artifact scan only (node_modules, .venv, etc.)
/houseclean --migrate X # Migration instructions for a specific tool (ollama, gemini, npm, cursor)
SAFE TO CLEAR — rebuilds automatically (npm, pip, temp)
MOVE — redirectable via env var (ollama models, gemini)
REVIEW — needs user decision (cursor settings, IDE data)
Phase 5: Project Artifact Scan
Scan C: for rebuildable artifacts: node_modules, .venv, __pycache__, .pytest_cache, dist/, build/. Report path, size, last modified. Flag items not modified in > 30 days. Ask user before deleting any.
Phase 6: Quick Wins Report
=== QUICK WINS (safe to act on now) ===
1. npm-cache 5.7 GB CLEAR npm cache clean --force
2. Merged worktrees (17) 50 MB REMOVED (already done)
=== MOVE TO ANOTHER DRIVE ===
3. ~/.ollama/models 15.8 GB MOVE→F: See migration guide
4. ~/.gemini 10.2 GB MOVE→F: See migration guide
=== REVIEW WITH USER ===
5. ~/.claude/projects 3.1 GB REVIEW Old conversation history
Total recoverable on C: ~47 GB
Cannot be relocated. Archive inactive subdirectories to a backup drive, or test symlinking.
Fringe Cases
macOS/Linux: Use du -sh, df -h. Paths shift to ~/.
Worktree removed but branch exists:git branch -d {branch} after git worktree remove.
Ollama in use: Stop before moving model files.
Junction already exists:cmd /c rmdir "C:\...\tool-dir" (no contents deleted), then recreate.
No other drives: Clear caches first (npm, pip, temp), then rebuildable artifacts, then unused Ollama models.
Citadel Infrastructure Integration
After running /houseclean, update .claude/harness.jsonstorage section with projects_root, ai_tools paths, and last_audit date. Future runs verify migrations are still in place.
Contextual Gates
Disclosure: "Auditing all drives. Will present deletion suggestions — nothing deleted without your confirmation."
Reversibility: amber — deletes files and directories if user confirms; undo requires git or manual recovery for non-git files
Trust gates:
Any: view audit findings and suggestions
Familiar (5+ sessions): confirms deletions before executing; novices should review suggestions carefully before confirming
Quality Gates
Never delete data without confirming branch is merged into HEAD
Always verify uncommitted changes before removing a worktree
Always stop Ollama before moving model files
Show exact commands — no vague instructions
Re-run drive survey to confirm C: free space increased
Update harness.json storage section for any migrations completed
If total freed is 0 GB, surface why and what the user must do manually
Exit Protocol
Show total space freed this session
Show space still recoverable with user action
Show current C: free space
Suggest: "/houseclean runs well as a monthly check — use /schedule to add it"
---HANDOFF---
- Freed: {X} GB (caches cleared, worktrees removed)
- Pending user action: {Y} GB (AI tools to move, projects to migrate)
- C: free space now: {Z} GB
- harness.json storage section: updated / not updated
- Reversibility: amber — deleted files require git or manual recovery; moved files can be moved back manually
---