worktree

Manage Git worktrees for parallel branching and master protection.

41|7|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/DGouron/review-flow --skill worktree-dgouron
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/DGouron/review-flow/tree/main/.claude/skills/worktree
Command: npx skills add https://github.com/DGouron/review-flow --skill worktree-dgouron

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git worktree management eliminates friction when working on multiple branches by enabling parallel worktrees and preventing accidental pushes to master.

Core Features & Use Cases

  • Create, list, remove, and synchronize worktrees in a single workflow.
  • Enforce a safe master policy by requiring PRs to merge into master and never pushing directly to master.
  • Seamlessly switch contexts between worktrees for development, review, and debugging.

Quick Start

Start a Claude session inside a worktree directory and run the worktree commands to create and manage parallel worktrees.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I manage Git worktrees across multiple Claude Code sessions?

To manage Git worktrees across multiple Claude Code sessions, you can use this Skill to create, list, remove, and synchronize isolated worktrees. It enables parallel branching and enforces strict master protection rules to prevent accidental direct pushes.

What is the best way to prevent accidental pushes to master when branching?

The best way to prevent accidental pushes to master is to enforce a safe master policy through Git worktree management. This Skill requires pull requests to merge into master and blocks direct pushes, ensuring branch isolation and security across development sessions.

How do I switch contexts between isolated worktrees for development and review?

To switch contexts between isolated worktrees for development and review, use the connect and navigation commands provided by this Skill. These commands allow you to seamlessly move between parallel worktree directories within your Git workflow.

Can I synchronize parallel worktrees in a multi-branch development workflow?

Yes, you can synchronize parallel worktrees in a multi-branch development workflow. The Skill provides a sync command that updates and aligns your isolated worktrees, ensuring your branches stay consistent during parallel development.

When do I need to use Git worktree management for my branching workflow?

You need Git worktree management when working on multiple branches simultaneously and requiring isolated environments. It eliminates the friction of switching contexts by enabling parallel worktrees and preventing accidental pushes to master during development, review, and debugging.