Using Git Worktrees
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
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
.worktreesorworktrees, then CLAUDE.md preference, then asking the user - Enforces a
git check-ignoreverification 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 -yInstalls 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- Obsidian Clipper Template Creator534
- Verification Before Completion534
- Form Cro530
- Avalonia Zafiro Development529
- Documentation Generation Doc Generate528
- Moodle External Api Development526
- Theme Factory526
- Launch Strategy522
- Arm Cortex Expert520
- Laravel Expert515
- Cc Skill Project Guidelines Example514
- Accessibility Compliance Accessibility Audit513
- Brand Guidelines512
- Dispatching Parallel Agents511
- Angular Best Practices510
- Machine Learning Ops Ml Pipeline508
- Page Cro508
- Security Scanning Security Hardening507
- Code Documentation Doc Generate502
- Paywall Upgrade Cro502
- Nextjs App Router Patterns501
- Upstash Qstash472
- Signup Flow Cro465
- Outlook Automation464
Similar to Using Git Worktrees
More Git & Releasesce-worktreeeveryinc/compound-engineering-plugin3.2K installsGit worktree setup that detects existing isolation first, then prefers native harness tools before falling back to plain git.
finishing-a-development-branchobra/superpowers241.5K installsGuided branch-completion workflow that verifies tests, then offers merge, PR, or keep options.
git-worktreesneolabhq/context-engineering-kit1.2K installsGit worktree commands and workflow patterns for parallel development across multiple branches in separate directories.
parallel-worktreesrohitg00/pro-workflow189 installsGit worktree workflow for running parallel AI coding sessions across branches without interference.
git-advanced-workflowssickn33/agentic-awesome-skills349 installsAdvanced Git techniques for rewriting history, cherry-picking, bisecting, worktrees, and recovering lost work.