Ctx Cleanup — Development skill for Claude Code
Clean up completed worktrees and branches.
How to install Ctx Cleanup
Installs to ~/.claude/skills/shakestzd-contextune-ctx-cleanup/SKILL.md
mkdir -p ~/.claude/skills/shakestzd-contextune-ctx-cleanup && curl -fsSL https://raw.githubusercontent.com/shakestzd/contextune/HEAD/commands/ctx-cleanup.md -o ~/.claude/skills/shakestzd-contextune-ctx-cleanup/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Ctx Cleanup does
name: ctx:cleanup description: Clean up completed worktrees and branches keywords:
- clean up
- cleanup worktrees
- remove worktrees
- cleanup tasks
- cleanup parallel
- remove completed
- clean worktrees executable: true
Parallel Cleanup - Remove Completed Worktrees
You are performing cleanup of completed parallel development work.
**Contextune Integration:** This command can be triggered via `/contextune:parallel:cleanup` or natural language like "clean up parallel w
Alternatives in Development
- Clean Worktree (Interactive) — Interactive cleanup of worktrees: lists merged/stale branches and asks confirmation before deleting 25.5k ★
- Worktree Cleanup — Remove worktrees and branches that have been merged: $ARGUMENTS 23.4k ★
- Defensive Code Cleanup — Clean Defensive Try-Catch Blocks 1.2k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Clean Worktree
Clean stale worktrees (pruned, merged, or orphaned branches)
Clean Worktrees
Automatically clean all stale worktrees (pruned refs + merged branches)
Just Ship Status
/just-ship-status — Lokalen Repo-Zustand anzeigen (Branches, PRs, Board, Worktrees)
Tidy Branches
Survey local branches and worktrees, delete the ones already merged upstream, and report a short state summary
OSS Overnight
Overnight prepare-and-queue run: check PRs, prepare fix branches in worktrees, write a morning report. Never p
Ctx Status
Check status of parallel worktrees and tasks
Related Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Thread Janitor
Auto-clean stale cortex threads. Finds threads with no updates in 7+ days, resolves completed work, merges dup
Delivery Tpm
Delivery control (code: tpm). Reconciles the board with branches, worktrees, pull requests, and gates; keeps o