cleanup-all
CommunityOrchestrate a full git cleanup in one sequence.
System Documentation
What problem does it solve?
Run all git cleanup operations in sequence: worktrees, branches, and stashes. Use before or after repo assessment, at the end of a sprint, or whenever local git state has accumulated clutter. Chains /cleanup-worktrees, /cleanup-branches, and /cleanup-stashes with a combined summary at the end.
Core Features & Use Cases
Full Git Cleanup; Chains all three cleanup skills in sequence. Each skill does its own analysis, generates its own approval script, and reports its own results. This skill orchestrates the sequence and prints a combined summary at the end. Phase 1: Worktrees - reviews git worktrees. Removes those whose PR is merged and branch is deleted on remote. Flags stale worktrees (no commits in 7+ days) for review. Requires confirmation. Phase 2: Branches - Analyzes local branches. Categorizes as: merged to main (safe), stale (no remote, >14 days), or pattern-based (temp-, wip-, test-*). Generates a single bash script for approval - never runs git branch -D directly. Phase 3: Stashes - Reviews all stashes. Flags orphaned (branch gone), superseded (branch merged), and stale (>14 days). Generates a drop script in descending index order for approval. Recent stashes are always kept.
Quick Start
Run /cleanup-all to execute the full cleanup sequence, or /cleanup-all --dry-run to analyze across all three phases without generating scripts.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cleanup-all Download link: https://github.com/sburl/CrossCheck/archive/main.zip#cleanup-all Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.