using-git-worktrees

Create isolated Git worktrees for parallel branch development.

2|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/robertpelloni/workspace --skill using-git-worktrees-robertpelloni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/robertpelloni/workspace/tree/main/AI_COORDINATION/skills/superpowers-skills-main/skills/collaboration/using-git-worktrees
Command: npx skills add https://github.com/robertpelloni/workspace --skill using-git-worktrees-robertpelloni

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill simplifies managing multiple Git branches concurrently without constantly switching or stashing changes. It allows you to work on different features or fixes in parallel, reducing context switching overhead.

Core Features & Use Cases

  • Parallel Development: Create isolated working directories for different branches.
  • Conflict Avoidance: Work on separate features without interfering with each other's changes.
  • Use Case: You're working on a new feature but a critical bug fix comes in. Use this skill to quickly create a worktree for the bug fix branch, implement the fix, and switch back to your feature without disrupting your current work.

Quick Start

Create a new git worktree for the 'bugfix/critical-issue' branch.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I work on multiple Git branches at the same time without switching?

Git worktrees create isolated working directories for different branches, letting you develop in parallel. Each worktree is a separate checkout of your repository, so you can work on a feature branch and a bug fix branch simultaneously without stashing or switching back and forth.

What's the best way to isolate feature development across separate project directories?

Use git worktree add -b to create an isolated worktree for each feature or fix. This establishes a new working directory linked to your repository, keeping your changes separate and preventing conflicts between concurrent development streams.

Can I create a Git worktree and automatically set up dependencies?

Yes. This skill auto-detects your project's setup tooling from project files, installs dependencies, and runs tests after creating the worktree, so your new branch is ready to develop on immediately without manual configuration.

How do I avoid conflicts when working on multiple features at once?

Git worktrees eliminate the need to stash or discard changes when switching between branches. Each worktree maintains its own working state, so your feature work remains untouched while you fix a critical bug in a separate directory.

What happens if my project has directory policies or .gitignore rules?

The skill verifies your directory policy and .gitignore configuration before creating a worktree, then resolves preferences from CLAUDE.md or prompts you when no prior configuration exists, ensuring the worktree respects your project's constraints.

Related Skills