Git Branch Cleanup
List stale branches, check if they are merged, and suggest cleanup actions
Example Prompt
Find all stale branches in our main repo that are older than 30 days and suggest which ones to delete
About
Helps maintain repository hygiene by scanning for branches that have gone stale. Checks each branch against the main branch to determine if it has been fully merged and is safe to delete. Generates a cleanup report listing branches recommended for deletion and posts it for team review.
Workflow Steps
Search the repository for all existing branches and their last commit dates
๐ Search RepositoriesCheck associated pull requests to determine merge status of each branch
๐ List IssuesAnalyze branch staleness and merge status to classify cleanup recommendations
๐ง Structured ReasoningPost the branch cleanup report with recommended actions to Slack
๐จ Send MessageTools Used
List Issues
List open issues in a GitHub repository with filtering by label, assignee, or milestone
Search Repositories
Search GitHub repositories by name, topic, language, or other criteria
Structured Reasoning
Break down a complex problem into sequential reasoning steps with explicit chain-of-thought
Send Message
Send a message to a Slack channel or direct message conversation