Skip to content
Skill

using-git-worktrees

by obra

AI Summary

Helps developers create isolated git worktrees for parallel feature development without disrupting their current workspace. Essential for teams managing multiple branches simultaneously.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "using-git-worktrees" skill in my project.

Please run this command in my terminal:
# Install skill into your project
mkdir -p .claude/skills/using-git-worktrees && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/using-git-worktrees/SKILL.md "https://raw.githubusercontent.com/obra/superpowers/main/skills/using-git-worktrees/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

Overview

Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching. Core principle: Systematic directory selection + safety verification = reliable isolation. Announce at start: "I'm using the using-git-worktrees skill to set up an isolated workspace."

Examples - use project-appropriate command

npm test cargo test pytest go test ./... ` If tests fail: Report failures, ask whether to proceed or investigate. If tests pass: Report ready.

Directory Selection Process

Follow this priority order:

Check in priority order

ls -d .worktrees 2>/dev/null # Preferred (hidden) ls -d worktrees 2>/dev/null # Alternative ` If found: Use that directory. If both exist, .worktrees wins.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 13d ago
Active
Adoption1K+ stars on GitHub
162.8k ★ · Popular
DocsREADME + description
Well-documented

GitHub Signals

Stars162.8k
Forks14.2k
Issues306
Updated13d ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code