What problem does it solve?
Audit and clean up stale git resources — local branches, remote-tracking refs, worktrees, stashes, tags, pull requests, and issues — across local checkouts, GitHub, and GitLab. Before recommending any deletion, the skill cross-references active code and project state to distinguish truly abandoned resources from work-in-progress. Dry-run is the default; destructive actions require --apply plus explicit user confirmation.
Core Features & Use Cases
- Cross-domain audit: collects state across local and remote repos, ensuring safe cleanup decisions.
- Phase-driven workflow: performs setup, state collection, active-code checks, user gating, and optional execution with audit trails.
- Host-aware operations: detects GitHub/GitLab hosts and uses appropriate CLIs or MCP tools, respecting protected branches and open PRs.
Quick Start
Run the git-cleanup skill to perform a safe, dry-run audit of stale resources and review the generated report before applying any destructive actions.