github-branch-inventory

Inventory and clean up stale branches across multiple GitHub repositories.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/Toqsick/MaxClaw --skill github-branch-inventory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-branch-inventory
Source: https://github.com/Toqsick/MaxClaw/tree/main/.claude/skills/github-branch-inventory
Command: npx skills add https://github.com/Toqsick/MaxClaw --skill github-branch-inventory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, curl, json5, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the inventory and cleanup of branches across multiple GitHub repositories, identifying stale branches and providing bulk cleanup workflows.

Core Features & Use Cases

  • Branch Inventory: Lists all branches across multiple repositories, classifying them by staleness.
  • Staleness Classification: Identifies branches that are older than 30 days as STALE, those between 15-30 days as WARN, and those 14 days or younger as ACTIVE.
  • Auto-Delete Heuristics: Provides heuristics for automatically deleting branches that match certain patterns, such as backup branches or branches with one commit.
  • Bulk Cleanup Workflows: Offers reusable scripts for bulk cleanup of branches across multiple repositories.

Quick Start

Run the 'branch_cleanup_scan.sh' script to scan all branches across your repositories for staleness and generate a report.

Frequently Asked Questions about github-branch-inventory

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

FAQPage Schema
How do I automate branch inventory and cleanup across multiple GitHub repositories?

You can automate branch inventory and cleanup across multiple GitHub repositories by running the branch_cleanup_scan.sh script, which scans all branches for staleness and generates a bulk cleanup report.

Do I need the gh CLI to scan GitHub branches for staleness?

Yes, you need the gh CLI or an equivalent tool to retrieve branch and commit data from the GitHub API, which is required to automate branch inventory and identify stale branches across multiple repositories.

Can I automatically delete backup branches or branches with one commit in GitHub?

Yes, you can automatically delete branches matching specific patterns like backup branches or branches with one commit using the provided auto-delete heuristics within the bulk cleanup workflows.

What is the best way to identify stale branches in GitHub for repository hygiene?

The best way to identify stale branches for repository hygiene is to use an automated branch inventory tool that classifies branches by staleness and provides bulk cleanup workflows across multiple repositories.