using-git-worktrees

Create isolated git worktrees with gitignore safety checks and auto-detected setup.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/jaydubya818/New_baseline --skill using-git-worktrees-jaydubya818
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/jaydubya818/New_baseline/tree/main/skills/superpowers/using-git-worktrees
Command: npx skills add https://github.com/jaydubya818/New_baseline --skill using-git-worktrees-jaydubya818

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates isolated git workspaces that share the repository, allowing parallel feature work without disrupting the current workspace.

Core Features & Use Cases

  • Directory priority and selection: Prefers hidden .worktrees, then worktrees, then CLAUDE.md guidance, else asks the user where to create a new worktree.
  • Safety verification: Verifies the worktree path is ignored by gitignore rules before creation, and follows Jesse's rule to fix issues if not ignored; supports global worktree location with no ignore checks.
  • Auto-detection and setup: Detects project language/tooling (Node, Rust, Python, Go) and runs appropriate setup steps automatically.
  • End-to-end workflow support: Provides end-to-end flow from project-name detection to clean baseline verification before implementation.

Quick Start

Use the using-git-worktrees skill to set up an isolated workspace for your current project.

Frequently Asked Questions about using-git-worktrees

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create isolated git worktrees for feature development without disturbing my main workspace?

Git worktrees create isolated workspaces sharing the repository, allowing parallel feature work without disrupting the current directory. The skill prioritizes hidden .worktrees directories, then standard worktrees, then CLAUDE.md guidance, or prompts the user for a new location.

What's the best way to manage git branch isolation across multiple projects or languages?

Git branch isolation across multiple projects is managed by auto-detecting project language and tooling like Node, Rust, Python, or Go, then running appropriate setup steps automatically to provide a reproducible baseline before implementation begins.

Why does my git worktree path need to be ignored by gitignore rules?

Git worktree paths need gitignore verification to prevent the new worktree directory from being accidentally tracked by the main repository. The skill verifies the path is ignored and applies Jesse's rule to fix issues if it is not ignored.

Can I use a global worktree location that skips gitignore safety checks?

Global worktree locations are supported and bypass the standard gitignore safety verification checks. This allows you to create isolated git worktrees outside the repository directory structure entirely, preserving your current state without requiring local ignore rules.

Does setting up git worktrees require manual configuration for each project?

Setting up git worktrees does not require manual configuration for each project. The skill automatically determines project location, reads CLAUDE.md preferences, detects project tooling, and provides an end-to-end workflow from project-name detection to clean baseline verification.