Agent skill · software engineering · thebushidocollective
git-worktrees-worktree-management
Manage git worktrees - list active worktrees, prune stale ones, and merge work back into the main branch.
Why this skill is useful
Adds specific git commands and workflows for managing worktrees that the AI wouldn't reliably generate on its own.
What it needs
About 1k tokens when loaded. Last updated 2026-07-19. 187 stars on the source repository.
What this skill does
Worktree Management Name git-worktrees:worktree-management - Manage git worktrees created by subagents Synopsis Description Manages git worktrees that were created by subagents for isolation. Provides commands to list active worktrees, prune stale ones, and merge completed work back into the current branch. Implementation List Worktrees Show all active worktrees and their status: For worktrees in the .worktrees/ directory, also show their commit status: Prune Stale Worktrees Remove worktrees that are no longer needed: Merge Work Back To merge a specific worktree's work into the current branch: 1. Identify the worktree and its commits 2. Cherry-pick or merge the commits into the main working tree 3. Remove the worktree after successful merge Example Interaction User: List my active worktrees Agent: User: Merge the auth worktree and clean up Agent: Cherry-picks the auth commit, removes the worktree, and prunes stale entries.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills thebushidocollective/worktree-management