22-git-worktrees

Create and manage Git worktrees for isolated Claude Code sessions.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/rhpds/claude-code-courseware --skill 22-git-worktrees
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 22-git-worktrees
Source: https://github.com/rhpds/claude-code-courseware/tree/main/lola/ccc/skills/22-git-worktrees
Command: npx skills add https://github.com/rhpds/claude-code-courseware --skill 22-git-worktrees

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers avoid conflicts between parallel AI coding sessions by teaching them how to isolate work using Git worktrees.

Core Features & Use Cases

  • Worktree Management: Learn how to create, configure, verify, and clean up isolated Git worktrees for separate Claude Code sessions.
  • Claude Code Integration: Configure worktree workflows, including.worktreeinclude files, base branch settings, and subagent isolation patterns.
  • Use Case: Run multiple feature implementations or bug fixes simultaneously with separate Claude Code sessions while keeping changes isolated and preventing accidental interference.

Quick Start

Use the git worktrees skill to learn how to create an isolated Claude Code session for parallel development work.

Frequently Asked Questions about 22-git-worktrees

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

FAQPage Schema
How do I run parallel Claude Code sessions without file conflicts?

Git worktrees isolate parallel Claude Code sessions by creating separate working directories for each task, preventing accidental interference between concurrent feature implementations or bug fixes.

What is the best way to manage isolated git worktrees for AI subagents?

Managing isolated git worktrees for AI subagents involves creating separate branches in distinct directories, using .worktreeinclude files and base branch settings to keep Claude Code sessions completely isolated.

How do I set up git worktrees for concurrent feature development?

Set up git worktrees for concurrent feature development by creating new worktrees linked to different branches, allowing multiple Claude Code instances to work on separate features simultaneously without overlapping changes.

Do I need to configure base branch settings for Claude Code worktree isolation?

Configuring base branch settings is necessary for Claude Code worktree isolation to ensure each parallel session operates from the correct branch and maintains proper session isolation during cleanup.

Why does using git worktrees prevent interference between parallel AI coding sessions?

Git worktrees prevent interference between parallel AI coding sessions by providing each Claude Code instance with its own physical directory and branch context, eliminating file-level conflicts during concurrent development.

How do I clean up git worktrees after completing parallel development tasks?

Clean up git worktrees after parallel development by removing the isolated working directories and deleting the associated branches, ensuring no residual files remain from the Claude Code sessions.