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-code

Installs 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
1rshankras avatarrelease-reviewrshankras/claude-code-apple-skillsSenior developer-level release review for macOS/iOS apps. Identifies security, privacy, UX, and distribution issues with actionable fixes. Use when preparing an529skills.sh installs
2wanshuiyin avatarauto-review-loop-llmwanshuiyin/auto-claude-code-research-in-sleepAutonomous research review loop using any OpenAI-compatible LLM API. Configure via llm-chat MCP server or environment variables. Trigger with "auto review loop 525skills.sh installs
3evoscientist avatarpaper-reviewevoscientist/evoskillsGuides self-review of YOUR OWN academic paper before submission with adversarial stress-testing. Core method: 5-aspect checklist (contribution sufficiency, writ521skills.sh installs
4wanshuiyin avatarauto-review-loop-minimaxwanshuiyin/auto-claude-code-research-in-sleepAutonomous multi-round research review loop using MiniMax API. Use when you want to use MiniMax instead of Codex MCP for external review. Trigger with "auto rev519skills.sh installs
5garrytan avatarplan-design-reviewgarrytan/gstackDesigner's eye plan review — interactive, like CEO and Eng review. (gstack)512skills.sh installs
6hookdeck avatargithub-webhookshookdeck/webhook-skillsReceive and verify GitHub webhooks. Use when setting up GitHub webhook handlers, debugging signature verification, or handling repository events like push, pull507skills.sh installs