
Using Git Worktrees
Creates isolated Git workspaces so you can work on multiple branches without constant switching or stashing. It follows a smart priority system: checks for existing worktree directories, consults CLAUDE.md for preferences, then asks if needed. The real value is in the safety checks. It verifies project-local directories are gitignored before creating anything, auto-runs your project setup (npm install, cargo build, whatever), and confirms tests pass before you start coding. This prevents the classic mistake of accidentally committing worktree contents or building on a broken baseline. Pairs with brainstorming for implementation phases and has a matching cleanup skill for when you're done.
- skills.sh installs
- 535
- GitHub stars
- 43.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add sickn33/antigravity-awesome-skills --skill using-git-worktrees --agent claude-codeInstalls into .claude/skills of the current project.
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)
Sponsors
Details
- Repository
- github.com/sickn33/antigravity-awesome-skills
- Category
- Git & Pull Requests
- First seen
- Jun 3, 2026
More from sickn33/antigravity-awesome-skills
All 708- 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
- Cc Skill Frontend Patterns495
- Upstash Qstash472
- Signup Flow Cro465