worktree-hygiene

Installation
SKILL.md

Worktree hygiene

Remove merged worktrees. Stop scratch buildup.

Set up scratch ignores

Before listing worktrees, check whether the repo's .gitignore already contains the patterns in worktree-scratch.gitignore. If not, append that block to the repo's .gitignore and commit it. Skip this step if the repo has no .gitignore write access; note that in the report instead.

List worktrees

List all worktrees for the repo. Read branch and path for each entry.

Check merge state

Installs
1
GitHub Stars
1
First Seen
Nov 15, 2026