sethgammon/citadel/houseclean
Claude Code and agent skill by sethgammon/citadel
- community
Checking that the SKILL.md file is still in the repository.
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).
Install
npx vskill@latest install sethgammon/citadel/housecleanSKILL.md
The same SKILL.md was published earlier as sethgammon/citadel/houseclean.
/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
Protocol
Phase 1: Drive Survey
Windows (PowerShell):
Present as a table with Drive, Total, Used, Free, Label columns.
Thresholds: C: free < 5 GB → CRITICAL. C: free < 20 GB → WARNING. Store which drives have free space — these are migration targets.
Phase 2: C Drive Hot Spots
Windows (PowerShell):
Tag each entry:
- AI-tool-data —
.ollama,.gemini,.cursor,.windsurf,.codex,.continue - IDE-cache —
.vscode,.idea,AppData\Local\JetBrains - Package-cache —
AppData\Local\npm-cache,AppData\Local\pip\cache,.gradle,.m2 - Conversation-history —
.claude\projects - Projects —
Desktop,Documents, user project directories - System —
AppData\Local\Microsoft,AppData\Roaming
Phase 3: Orphaned Worktree Audit
For each worktree (excluding main):
- Check if branch is merged:
git branch --merged HEAD | grep "{branch-name}" - Verify worktree directory exists
- Check uncommitted changes:
git -C "{worktree-path}" status --short
Classify:
- SAFE TO REMOVE — merged into HEAD, no uncommitted changes
- REVIEW FIRST — not merged, has changes
- STALE — path missing (registered but deleted)
- ACTIVE — not merged, no changes (possibly in-flight)
Auto-remove SAFE TO REMOVE and STALE:
Report what was removed. Ask before touching REVIEW FIRST or ACTIVE.
Phase 4: AI Tool Cache Audit
Check these paths (Windows). Report any > 500 MB:
Tag recommended action:
- 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
Phase 7: Migration Reference
Ollama (models → another drive)
Gemini CLI
Check if GEMINI_HOME is supported: gemini --help | grep -i "home\|data\|dir"
If supported:
If not supported, create a junction:
npm cache
Cursor/Windsurf/Codex (junction method)
git worktrees
Move the main repo to another drive:
After moving, record in .claude/harness.json (Citadel's shared config path for all runtimes, including Codex):
Claude conversation history (.claude/projects)
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.json storage 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
storagesection 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"
Security
- Security scanPassed, 91 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/houseclean/SKILL.md
Popularity
- Repository stars
- 918
- Repository forks
- 82
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 6 Jun 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sethgammon/citadel/houseclean)