Branch and Worktree Hygiene

Official

Maintain project hygiene by auditing and cleaning branches, worktrees, and remote branches.

Authorbytetalent
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the issue of branch divergence, stale local worktrees, and merged-but-not-deleted remote branches in multi-repo projects, ensuring project integrity and efficiency.

Core Features & Use Cases

  • Branch Divergence Audit: Checks for and resolves main → staging → dev SHA alignment issues.
  • Local Worktree Cleanup: Identifies and removes stale local worktrees.
  • Remote Branch Cleanup: Deletes merged remote branches that are no longer needed.
  • Realign Procedure: Ensures SHA alignment after staging → main promotion.

Quick Start

Run the branch and worktree hygiene skill to audit and clean up your project branches and worktrees.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Branch and Worktree Hygiene
Download link: https://github.com/bytetalent/docs/archive/main.zip#branch-and-worktree-hygiene

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.