Clean worktrees

From dyoshikawa/rulesync · View interactive version

Clean worktrees is an AI agent skill from the GitHub repository dyoshikawa/rulesync. Clean git worktrees created by git-worktree-runner

How to use this skill

Skill file

  1. Run git gtr list to list all worktrees.
  2. For each worktree branch that is NOT the default branch (e.g. main), run git gtr rm --force {branch} to remove it.
  3. Run git pull --prune to fetch latest changes and prune deleted remote branches.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.