Skip to content
Back to skills

Using Git Worktrees

ASecurity

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

  • 508 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
developmentgit

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add Dokhacgiakhoa/antigravity-ide --skill using-git-worktrees --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Using Git Worktrees?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Using Git Worktrees
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dokhacgiakhoa-using-git-worktrees/badge)](https://www.skillsdirectory.com/skills/dokhacgiakhoa-using-git-worktrees)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
version: 4.1.0-fractal
name: using-git-worktrees
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
---

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

## 🧠 Knowledge Modules (Fractal Skills)

### 1. [1. Check Existing Directories](./sub-skills/1-check-existing-directories.md)
### 2. [2. Check CLAUDE.md](./sub-skills/2-check-claudemd.md)
### 3. [3. Ask User](./sub-skills/3-ask-user.md)
### 4. [For Project-Local Directories (.worktrees or worktrees)](./sub-skills/for-project-local-directories-worktrees-or-worktrees.md)
### 5. [For Global Directory (~/.config/superpowers/worktrees)](./sub-skills/for-global-directory-configsuperpowersworktrees.md)
### 6. [1. Detect Project Name](./sub-skills/1-detect-project-name.md)
### 7. [2. Create Worktree](./sub-skills/2-create-worktree.md)
### 8. [3. Run Project Setup](./sub-skills/3-run-project-setup.md)
### 9. [4. Verify Clean Baseline](./sub-skills/4-verify-clean-baseline.md)
### 10. [5. Report Location](./sub-skills/5-report-location.md)
### 11. [Skipping ignore verification](./sub-skills/skipping-ignore-verification.md)
### 12. [Assuming directory location](./sub-skills/assuming-directory-location.md)
### 13. [Proceeding with failing tests](./sub-skills/proceeding-with-failing-tests.md)
### 14. [Hardcoding setup commands](./sub-skills/hardcoding-setup-commands.md)

Files in this skill

  • SKILL.md1.8 KB
  • sub-skills/1-check-existing-directories.md240 B
  • sub-skills/1-detect-project-name.md92 B
  • sub-skills/2-check-claudemd.md137 B
  • sub-skills/2-create-worktree.md341 B
  • sub-skills/3-ask-user.md295 B
  • sub-skills/3-run-project-setup.md359 B
  • sub-skills/4-verify-clean-baseline.md279 B
  • sub-skills/5-report-location.md571 B
  • sub-skills/assuming-directory-location.md152 B
  • sub-skills/for-global-directory-configsuperpowersworktrees.md138 B
  • sub-skills/for-project-local-directories-worktrees-or-worktrees.md551 B
  • sub-skills/hardcoding-setup-commands.md1.3 KB
  • sub-skills/proceeding-with-failing-tests.md162 B
  • sub-skills/skipping-ignore-verification.md176 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…