clean-git-repo

Installation
SKILL.md

Clean Git Repo

Report and clean up local branches, linked worktrees, stale remote-tracking refs, worktree metadata, and tags. Run from either:

  • a worktree or Git directory to handle one repository; or
  • a worktree container whose immediate child directories are worktrees.

In container mode, the script groups children by their resolved Git common directory and handles each repository once. It does not recurse beyond immediate children. A bundled script does the deterministic detection and deletion; you orchestrate the safety gates.

Resolve [scripts/clean-git-repo.sh][1] to an absolute path once and run it from the target repository or worktree container, not the skill directory. In Claude Code: SCRIPT="${CLAUDE_SKILL_DIR}/scripts/clean-git-repo.sh".

Installs
16
Repository
webpro/skills
GitHub Stars
18
First Seen
Jul 23, 2026