Skill / SKILL.md

Cleanup Local Branches

pekral/cursor-rules

Use when cleaning up local Git branches after origin pruning. Deletes local branches whose upstream was deleted on origin (marked gone) and local branches with no origin counterpart that have been inactive for more than six months, while always protecting the current branch and the default branches. Previews every deletion before running it.
3 views 11 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when cleaning up local Git branches after origin pruning. Deletes local branches whose upstream was deleted on origin (marked gone) and local branches with no origin counterpart that have been inactive for more than six months, while always protecting the current branch and the default branches. Previews every deletion before running it.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/pekral/cursor-rules' skill-source

Use the complete skill-source/skills/cleanup-local-branches directory with your client’s skill installer.

  • skills/cleanup-local-branches

    master · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/cleanup-local-branches

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
0a6d6c6a85695094e50aa263409adb27585137ccceebb29a26a0e99869e5cfe7
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills