Registry / michaleiatrak-star

michaleiatrak-star/lex-machina/git-worktree-prune

Safely prune stale git worktrees and local branches left over from past sessions, deleting only those with no unique work so no commit is ever lost. Use when a repo has accumulated worktrees and branches over many sessions and needs cleanup. Triggers include "prune worktrees", "delete stale branches", "clean up git worktrees/branches", "remove old worktrees", "which branches are safe to delete".

Agent skill · version 0.0.0-main.1794524115.g123e77e · from michaleiatrak-star/Lex-Machina

Install

npx yarkr-cli add skill:michaleiatrak-star/lex-machina/git-worktree-prune

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:michaleiatrak-star/lex-machina/git-worktree-prune
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:michaleiatrak-star/lex-machina/git-worktree-prune

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:michaleiatrak-star/lex-machina/git-worktree-prune

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.