From majestic-engineer
Cleans up merged and stale git worktrees by invoking git-worktree skill and running worktree-manager.sh cleanup, then reports what was removed.
npx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-engineerhaikugit/# Worktree Cleanup Use the git-worktree skill to clean up merged and stale worktrees: Then run: Report what was cleaned up.
/worktree-cleanCleans finished git worktrees by removing directories for safe (merged, no uncommitted changes) ones, pruning references, and reporting removed/kept items.
/cleanupRemoves already merged Git worktrees and their branches. Supports --dry-run to preview candidates and confirmation before deletion.
/cleanup-worktreesRemoves safe git worktrees for merged branches only (checked via git branch --merged and gh PRs), cleans orphans, categorizes kept ones, and generates a cleanup report.
/worktreeManages git worktrees for isolated feature development. List existing worktrees or cleanup unused ones using list or cleanup subcommands.
/worktree-removeRemoves git worktrees by path/branch or interactively. Supports --prune for stale cleanup and --merged for batch removal of merged worktrees, with optional branch deletion.
/cleanupMerges specified worktree branch into main, removes worktree, deletes branch, and verifies cleanup. Optional branch-name or auto-selects from git worktree list.
Share bugs, ideas, or general feedback.
Use the git-worktree skill to clean up merged and stale worktrees:
skill git-worktree
Then run:
worktree-manager.sh cleanup
Report what was cleaned up.