worktree

Create isolated git worktrees for parallel feature development in monorepos.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/haidonglethqb/CloudSchool --skill worktree-haidonglethqb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/haidonglethqb/CloudSchool/tree/main/.claude/skills/worktree
Command: npx skills add https://github.com/haidonglethqb/CloudSchool --skill worktree-haidonglethqb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Resolve concurrent feature work in monorepos by isolating changes in dedicated git worktrees.

Core Features & Use Cases

  • Auto-detects repository type (monorepo vs standalone) and places new worktrees in a safe, organized location.
  • Creates dedicated worktrees for feature branches, checks base branches, and manages conflicts with existing worktrees.
  • Copies environment templates and supports overriding the worktree root to fit complex project layouts.

Quick Start

Use the worktree CLI to create a new worktree for your feature by specifying the project (if in a mono-repo) and a feature name.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I isolate parallel feature development in a git monorepo?

Git worktrees allow you to isolate parallel feature development by creating dedicated working directories for each branch. This mechanism prevents changes from polluting the main tree and enables safe, independent work within monorepos or standalone repositories.

How do I create a new git worktree for a standalone repository?

To create a new git worktree, you can use automation scripts that infer the base branch and generate a deterministic branch name. The system handles input validation and places the new worktree in a safe, organized location for your feature work.

Does git worktree automation support automatic base-branch inference for monorepos?

Yes, git worktree automation supports automatic base-branch inference and repo type detection for monorepos. It validates project matching and checks for conflicts with existing worktrees to ensure safe branch creation.

Can I copy environment templates when creating a new git worktree?

Yes, you can copy environment templates when creating a new git worktree. This feature ensures your isolated development environment has the necessary configuration files ready immediately after branch creation.

What happens if there are naming conflicts when creating git worktrees?

When creating git worktrees, robust input validation checks for naming conflicts and project matching errors. The system provides clear error reporting and prevents worktree creation if conflicts with existing worktrees are detected.

Can I override the default worktree root directory in a monorepo?

Yes, you can override the default worktree root directory to fit complex project layouts. This optional feature allows you to specify a custom organized location for your isolated git worktrees during creation.