git-worktrees

Create isolated git worktrees for parallel feature development.

4|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/rbaumier/skills --skill git-worktrees-rbaumier
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktrees
Source: https://github.com/rbaumier/skills/tree/main/git-worktrees
Command: npx skills add https://github.com/rbaumier/skills --skill git-worktrees-rbaumier

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git worktrees provide isolated workspaces to develop features in parallel without impacting the main repository, enabling safe experimentation and smoother integration.

Core Features & Use Cases

  • Isolated workspaces: create per-branch worktrees that share the same repo but have independent working directories.
  • Safe directory selection: prioritize existing hidden directories, then CLAUDE.md preferences, then user prompts.
  • Per-worktree environments: each worktree gets its own environment configurations to avoid conflicts during concurrent work.

Quick Start

Create an isolated git worktree for the current project on a new feature branch to safely develop without impacting the main workspace.

Frequently Asked Questions about git-worktrees

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

FAQPage Schema
How do I isolate feature development from my main git workspace?

Git worktrees create isolated workspaces to develop features in parallel without impacting the main repository. Each worktree shares the same repository but maintains an independent working directory for safe experimentation.

What is the best way to manage parallel feature branches without conflicts?

Using git worktrees provides per-worktree environments that avoid conflicts during concurrent work. Each worktree gets its own environment configurations, enabling deterministic parallel feature development while preserving mainline integrity.

How do I set up a git worktree with automatic directory selection?

Directory selection for git worktrees prioritizes existing hidden directories first, then checks CLAUDE.md preferences, and finally prompts the user. This deterministic selection process ensures safe and predictable worktree placement.

Can I run setup commands for different programming languages in a git worktree?

Git worktrees support optional setup commands for common languages during creation. This enables per-worktree environment configurations to be established automatically, ensuring each isolated workspace is ready for development.

Do I need to verify gitignore settings before creating a worktree?

Ignore verification is part of the worktree creation process. The system performs safety checks to ensure deterministic setup, verifying that ignore configurations are properly handled before isolating feature work.

How does automatic project name detection work when creating a git worktree?

Automatic project name detection identifies the current project context to safely create isolated git worktrees. This feature, combined with directory selection priority and safety checks, ensures deterministic setup for parallel feature work.