worktree

Create, list, and clean up git worktrees for parallel development.

Updated Dec 28, 2025
One-click install
npx skills add https://github.com/josh-gree/my-claude-skills --skill worktree-josh-gree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/josh-gree/my-claude-skills/tree/main/skills/worktree
Command: npx skills add https://github.com/josh-gree/my-claude-skills --skill worktree-josh-gree

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill manages git worktrees to enable parallel development. It creates isolated working directories for tickets/branches, lists active worktrees, and cleans up after merging.

Core Features & Use Cases

  • Create a worktree for a given branch or new branch from origin/main
  • List worktrees to see paths, commits, and branches
  • Clean up a specific worktree or all merged worktrees
  • Use cases: starting work on a ticket, keeping the main repo clean while multiple tickets are in flight

Quick Start

From your main repository, run /worktree create <branch-name> to create a new worktree for that branch. List with /worktree list, and clean with /worktree clean <worktree-path-or-branch> when done.