stale-branch-audit

Identify stale, merged, and orphaned Git branches for prioritized cleanup.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/NIMBUS-MX/nimbus-skills --skill stale-branch-audit
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: stale-branch-audit
Source: https://github.com/NIMBUS-MX/nimbus-skills/tree/main/skills/stale-branch-audit
Command: npx skills add https://github.com/NIMBUS-MX/nimbus-skills --skill stale-branch-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps manage and organize local and remote branches in a repository by identifying and listing stale branches that are older than 30 days, merged branches with no worktree, orphaned worktrees, and branches with a deleted remote. It provides a prioritized cleanup list for branch management.

Core Features & Use Cases

  • Branch Staleness Audit: Identifies branches older than 30 days that are merged and do not have a worktree.
  • Review and Prune: Offers a prioritized cleanup list for branches that need review or cannot be deleted automatically.
  • Batch Across Repositories: Audits branches across multiple repositories as specified by the user.
  • Prevent Accidental Deletion: Avoids accidental deletion of important branches that may still be needed or are pinned by a worktree.

Quick Start

Run the stale-branch-audit skill to list stale branches in your current repository.

Frequently Asked Questions about stale-branch-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find and clean up stale branches in my Git repository?▼

You can audit branches older than 30 days, merged branches with no worktree, orphaned worktrees, and branches with a deleted remote. The audit generates a prioritized cleanup list to safely prune stale branches without accidental deletion.

What is considered a stale branch in Git repository management?▼

A stale branch is typically a local or remote branch older than 30 days, a merged branch with no active worktree, an orphaned worktree, or a branch tracking a deleted remote, all of which clutter the repository and require cleanup.

Can I audit stale branches across multiple Git repositories at once?▼

Yes, you can batch audit stale branches across multiple repositories as specified by your input, identifying merged branches and orphaned worktrees to produce a unified, prioritized cleanup list for repository management.

How do I avoid accidental deletion of important Git branches during cleanup?▼

To avoid accidental deletion, the audit checks for branches pinned by an active worktree and generates a prioritized cleanup list, separating branches ready for pruning from those that still need manual review.

What do I need to know to audit orphaned worktrees and deleted remote branches?▼

You need basic Git operations and an understanding of the branch lifecycle to identify orphaned worktrees and branches with a deleted remote, ensuring safe repository cleanup based on the provided audit list.

When should I run a branch audit for repository cleanup?▼

You should run a branch audit when repository management becomes cumbersome, checking for branches older than 30 days, merged branches lacking worktrees, or orphaned worktrees to maintain a clean Git environment.