wt-prune

star 2

Remove worktrees whose branches have merged into the default branch

MichaelVessia By MichaelVessia schedule Updated 5/4/2026

name: wt-prune description: Remove worktrees whose branches have merged into the default branch allowed-tools: Bash(wt list:), Bash(wt step prune:)

Context

  • Current worktrees: !wt list --format json

Your task

Clean up stale worktrees.

  1. Review the wt list output in context. If nothing looks merged/stale, say so and stop.
  2. Run wt step prune to remove worktrees whose branches are already merged into the default branch.
  3. Report what was removed (diff the list against the post-prune state) and stop.
Install via CLI
npx skills add https://github.com/MichaelVessia/nixos-config --skill wt-prune
Repository Details
star Stars 2
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator
MichaelVessia
MichaelVessia Explore all skills →