/all-skills:cleanupfrom all-skills
Reclaims disk space by scanning and pruning git worktrees, merged branches, stale build artifacts, package caches, archives, and agent session logs. Useful when disk is full or after AI agent sessions.
Ships in all-skills. 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.
Free disk space and prune branches with one scan, one confirmation, and one apply. Every deletion goes through scripts/agent_cleanup.py in this skill's directory. Right before acting, it re-checks each git item, artifact folder, archive and the trash, and skips anything that changed since the scan.
Choose what to scan:
--root. The scan covers this repo, the agent worktree folders (Codex, Cursor, Conductor, Vibe Kanban), package caches, agent logs and the trash.--root <dir> for each folder that holds their projects. Look for the usual ones (~/code, ~/dev, ~/src, ~/projects, ~/repos, ~/Developer, ~/Documents/*). If none of them exist, ask the user.Narrow with --only git,artifacts,archives,caches,agents,trash when the user asks for one kind, e.g. "just branches" → --only git. Add --remote only when the user wants merged branches deleted on origin too.
Done when the scan command is chosen.
python3 <skill-dir>/scripts/agent_cleanup.py scan --fetch [--root DIR ...] [--only ...] [--remote]
The scan is read-only, apart from --fetch updating remote-tracking refs. It prints numbered items in four classes and saves the plan:
REMOVE: merged into the base branch, regenerable, or a worktree whose directory is already gone (unregistering it keeps its branch).NEEDS-DECISION: holds something unique (uncommitted or ignored files, unmerged or unpushed commits, build output, archives, old logs).KEEP-ACTIVE and SKIP: open PRs, recent work, long-lived branches, the main checkout, locked or rebasing worktrees, anything a running process is inside, unmounted drives. Never act on these.--help lists the thresholds (--stale-days, --keep-days, --min-size).
Done when the plan is printed with its reclaimable total.
Ask once, using your multi-select question tool if you have one, otherwise a single message, then wait for the answer:
--remote was used, as a separate question: deleting them affects everyone using the repo.KEEP-ACTIVE and SKIP get one summary line so the user knows they were seen.
Done when the user has answered.
Pass exactly the ids the user picked:
python3 <skill-dir>/scripts/agent_cleanup.py apply 1 2 5 9-14
Add --remote only when the picked ids include remote branches the user approved in their own question. apply --recommended takes every REMOVE item; use it only when the user approved all of them and nothing else.
apply prints one line per item: done, skipped (changed since the scan, gone, or now in use), refused, or failed with git's reason. Report each one as printed. Leave skipped and refused items in place; the next scan classifies them again. If the plan is more than 24 hours old, apply refuses it: scan again and confirm again.
git worktree remove refuses a worktree with uncommitted changes. Add --force only for ids where the user explicitly accepted losing those changes. A detached worktree's unique commits are saved under refs/agent-cleanup/ before removal.
Done when every picked id has a result line.
Tell the user:
agent-data item, the agent's built-in retention setting named in its note, so the logs stop piling up.Every action is logged to ~/.local/state/agent-cleanup/history.jsonl.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub davepoon/buildwithclaude --plugin all-skills256 skills in this plugin
/activecampaign-automationAutomate ActiveCampaign tasks via Rube MCP (Composio): manage contacts, tags, list subscriptions, automation enrollment, and tasks. Always search tools first for current schemas./ad-angle-researchPull the ads a competitor is running right now on Meta (Facebook/Instagram) and Google, then extract the hooks, offers, CTAs and landing pages worth modelling. Use when writing ad copy, planning creative tests, choosing a landing page angle, or when the user asks "what is X advertising", "what ads does X run", "find competitor ad hooks". Reads live Ad Library and Ads Transparency data through the Tracetify MCP; falls back to a manual Ad Library walkthrough when the connector is absent./Other plugins' skills for the same job