Skip to content

Set up isolated git worktrees with directory selection, ignore-safety checks, and baseline test verification.

CCM score
52 of 100
skills.sh installs
535
GitHub stars
50.5K
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating worktrees for parallel branch work, including directory selection, path creation, and project setup steps
  • Selects the directory by priority: existing .worktrees or worktrees, then CLAUDE.md preference, then asking the user
  • Enforces a git check-ignore verification before any project-local worktree is created, and blocks work on failing baseline tests
  • Designed for workflows that hand off to finishing-a-development-branch and executing-plans or subagent-driven-development

Install

$ npx -y skills add sickn33/agentic-awesome-skills --skill using-git-worktrees -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Using Git Worktrees

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."

Directory Selection Process

Follow this priority order:

1. Check Existing Directories

# 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.

2. Check CLAUDE.md

grep -i "worktree.*director" CLAUDE.md 2>/dev/null

If preference specified: Use it without asking.

3. Ask User

If no directory exists and no CLAUDE.md preference:

No worktree directory found. Where should I create worktrees?

1. .worktrees/ (project-local, hidden)
2. ~/.config/superpowers/worktrees/<project-name>/ (global location)

Which would you prefer?

Safety Verification

For Project-Local Directories (.worktrees or worktrees)

Details

Repository
github.com/sickn33/agentic-awesome-skills
Categories
Git & Releases, Agent Workflow & Planning
First seen
Jun 3, 2026

More from sickn33/agentic-awesome-skills

All 682

Similar to Using Git Worktrees

More Git & Releases