Clean Worktree banner
FlorianBruniaux FlorianBruniaux

Clean Worktree

Development community

Description

--- name: clean-worktree description: Clean stale worktrees (pruned, merged, or orphaned branches) --- # Clean Worktrees Skill ## Purpose Nettoie les worktrees obsolètes (merged, pruned, branches orphelines). ## Workflow ### 1. Audit worktrees ```bash echo "=== Worktrees Status ===" git worktree list echo "" ``` ### 2. Prune references stale ```bash echo "=== Pruning stale references ===" git worktree prune echo "" ``` ### 3. Detect merged branches ```bash echo "=== Merged branches (sa

Installation

Installs to ~/.claude/commands/florianbruniaux-cc-sessions-clean-worktree.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/FlorianBruniaux/cc-sessions/HEAD/.claude/commands/clean-worktree.md -o ~/.claude/commands/florianbruniaux-cc-sessions-clean-worktree.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository