Loading...
Loading...
Clean dangling workspaces/worktrees, stale branches, excess build artifacts, caches, and other leftover clutter. Arguments: scan/plan (inventory only), workspaces, artifacts, caches, branches, deep, and all. Use when the user says "tidy up", reclaim disk, remove stale worktrees, clear build junk, or prune leftover agent/dev debris. Always inventory first; delete only with approval unless the user already ordered that exact cleanup.
npx skill4agent add decisionnerd/dev-skills tidy-upscanhandbook/concepts/14-operating-contract.mdNext:AskUserQuestionrequest_user_inputWorkflowCLAUDE_CODE_SUBAGENT_MODELagents.default_subagent_modelagents.<name>.config_filemodel:haikusonnetopusfableAgentmodelmodel:modelmodel:inherit.cursor/agents/*.mdTASKS.mdBlocked on meChangedFoundNext: <exact invoke>| Command | What it does |
|---|---|
| Inventory clutter; estimate size; propose deletions (no deletes) |
| Remove dangling / merged / abandoned git worktrees and empty workspace dirs |
| Remove stale build outputs ( |
| Clear regenerable caches (tool/package caches in-repo; ask before global home caches) |
| Prune stale local branches (merged / gone remote); never delete unmerged without approval |
| Broader pass: workspaces + artifacts + caches + safe branch prune (still gated) |
| Same as |
| List commands |
cleancleanupprunescanscanChanged.env~/Library/Cachesnpm run cleanmake cleangit worktree prunerm -rfgit clean -fdxChangedscanBlocked on meChangedFound<next invoke if applicable>workspacesworktreesgit worktree list --porcelaingit worktree pruneartifactsbuilddistbuildoutsite.next.nuxt.outputcoverage*.tsbuildinfogit clean -fdX -- <paths>caches.turbo.cache.parcel-cache.vite__pycache__.pytest_cache.mypy_cache.ruff_cache.eslintcachenode_modules/.cachepnpm store prunenode_modulesdeepbranchesgit fetch --prunegonedeepallnode_modulesagents slaptidy-uprefactor-itreconsources.mdhandbook/practices/tidy-up.md