cleanup

Prunes stale and merged Git branches while reconciling work items.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/SorraTheOrc/SorraAgents --skill cleanup-sorratheorc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/SorraTheOrc/SorraAgents/tree/main/skill/cleanup
Command: npx skills add https://github.com/SorraTheOrc/SorraAgents --skill cleanup-sorratheorc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Cleanup skill helps teams maintain a tidy codebase by auditing local and remote branches, identifying merged or stale work, safely removing branches, reconciling work items, and delivering a concise activity report.

Core Features & Use Cases

  • Inspect current and default branches to identify candidates for deletion while protecting essential branches like main and develop.
  • Remove merged local and remote branches after confirmation, with safe-guards and dry-run support.
  • Generate a summary report of actions taken and next steps, and map branches to work items when possible.
  • Use cases include periodic hygiene of long-lived repos, PR maintenance, and freeing up workspace after feature completion.

Quick Start

Run the cleanup skill in dry-run mode to preview merged and stale branches before applying any deletions.

Frequently Asked Questions about cleanup

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

FAQPage Schema
How do I safely prune merged and stale branches in a Git repository?

To safely prune Git branches, run the cleanup skill in dry-run mode to preview stale and merged branches before applying deletions. It inspects local and remote branches, protects essential ones like main and develop, and removes candidates only after confirmation.

Can I preview which Git branches will be deleted before removing them?

Yes, you can preview branch deletions using the dry-run mode. This safety feature audits your current and default branches, identifies merged or stale work as deletion candidates, and reports the planned actions without executing any actual removals.

How does branch cleanup reconcile work items during pruning?

Branch cleanup reconciles work items by mapping deleted branches to their associated work items when possible. After safely removing merged local and remote branches, it generates a concise activity report summarizing the actions taken and mapping the branch history to relevant work.

Do I need CLI tooling integration to automate Git branch deletion?

Yes, CLI tooling integration is required to automate Git branch deletion. The cleanup process applies to workflows involving feature development and team collaboration, utilizing CLI commands to execute safety checks, manage dry-run flows, and process confirmation prompts across repositories.

Does the branch cleanup process protect main and develop branches from deletion?

Yes, the branch cleanup process explicitly protects essential branches like main and develop from deletion. It inspects your current and default branches to identify deletion candidates while applying safeguards to ensure these critical local and remote branches remain intact.