Skip to content
Agentmart
Submit a tool

cleanup-all

Run the full local cleanup pipeline — stale git worktrees, dead personal forks, Docker prune, Go caches, and Homebrew — in one pass, each stage report →…

Skill by lexfrei

IndexedBSD-3-Clause★ 11
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lexfrei-cleanup-all

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Run the full local cleanup pipeline — stale git worktrees, dead personal forks, Docker prune, Go caches, and Homebrew — in one pass, each stage report → confirm → execute, then a combined reclaimed-space summary. TRIGGER when the user wants a broad disk cleanup ("free up disk space", "почисти всё", "run the cleanup pipeline"). DO NOT trigger when the user clearly wants only one specific cleaner — invoke that skill instead.

Use cases: documents, devops, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/cleanup-all

What's inside

Skill name
cleanup-all
Description
Run the full local cleanup pipeline — stale git worktrees, dead personal forks, Docker prune, Go caches, and Homebrew — in one pass, each stage report → confirm → execute, then a combined reclaimed-space summary. TRIGGER when the user wants a broad disk cleanup ("free up disk space", "почисти всё", "run the cleanup pipeline"). DO NOT trigger when the user clearly wants only one specific cleaner — invoke that skill instead.
License
BSD-3-Clause
Instructions
28 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

Orchestrate the cleanup skills end to end and report total disk reclaimed.

Each stage keeps its own **report → confirm → execute** gate, and each gathers its own options through interactive questions — this orchestrator passes no flags. The user approves (or skips) each stage independently.

## Step 0: Resolve shared inputs (never hardcode paths)

- **Scan root** for the filesystem stages (worktrees, forks): resolve from `$ARGUMENTS`, else infer the hosting root by walking up from the current directory and **ask the user** to confirm or correct it, else **ask** outright. Do not assume a default. Resolve this once and reuse it for both filesystem stages.
- **Which stages to run**: **ask the user** (interactive, multi-select) which of the five stages to include — worktrees, forks, docker, go, brew. Default to all available ones.

Announce the plan: which stages will run, in what order, with the resolved scan root.

## Stages (run the selected ones in order)

Run each by following the corresponding sibling skill in this plugin. Each sibling asks its own scope questions (volumes, modcache, delete-remote, etc.) — do not try to pre-answer them here. Carry the running total of reclaimed space across stages.

1. **worktrees** → `worktree-sweep` on the resolved scan root (all-repos scope). Remove safe worktrees; triage dirty ones.
2. **forks** → `stale-forks` on the resolved scan root. Remove dead/reclonable local clones; the sibling asks per-fork about deleting the GitHub fork.
3. **docker** → `docker-prune`. The sibling asks which scopes (images/cache, volumes, non-default buildx builders, VM disk trim on VM-backed daemons).
4. **go** → `go-cache`. The sibling asks whether to include the module cache.
5. **brew** → `brew-cleanup`. The sibling asks which scopes (cleanup, autoremove, full cache scrub).

If a stage's prerequisite is absent (no Docker daemon, no `go`, no `brew`, no repositories under the root), report that and continue to the next stage instead of failing the pipeline.

## Final report

A single table: stage, items removed, space reclaimed, and anything intentionally kept (with reasons — dirty-real-work, live-locked worktrees, forks with open PRs or local-only commits, preserved volumes, kept modcache, kept brew formulae). End with the combined total reclaimed across all stages.

From lexfrei/ccc, BSD-3-Clause.

More from lexfrei/ccc

Signals

Stars
11
Forks
3
Open issues
2
Last commit (this folder)
Jul 10, 2026 (3 months ago)
Last release
Oct 4, 2026 (25 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
BSD-3-Clause
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lexfrei

Cite this page

cleanup-all skill. Agent Mart. https://agentmart.dev/skills/lexfrei-cleanup-all (last updated 2026-10-24)