worktree

Automate Git worktree creation, listing, and environment setup.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the management of Git worktrees to enable parallel branch development and streamlined environments.

Core Features & Use Cases

  • Create and manage multiple worktrees for feature branches, hotfixes, or experiments.
  • Automatically copy environment files and install dependencies on worktree creation.
  • Use cases include parallel feature development in monorepos and quick experimentation with isolated worktrees.

Quick Start

Use the worktree workflow to create and manage parallel development worktrees: git gtr new feature/my-feature -e git gtr list git gtr go feature/my-feature

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I automate Git worktree creation with environment setup?▼

Git worktree automation creates isolated branches with automatic environment file copying and dependency installation. Use `git gtr new feature/branch-name -e` to generate a worktree, copy env files, and install dependencies in one command, eliminating manual setup for parallel development.

Can I manage multiple Git worktrees in parallel for feature development?▼

Yes. Worktree management enables parallel feature branches, hotfixes, and experiments by creating isolated working directories from a single repository. Switch between worktrees using `git gtr go branch-name` and list active worktrees with `git gtr list`.

What's the best way to set up worktrees for monorepo development?▼

Worktree automation streamlines monorepo workflows by creating isolated environments per feature branch with synchronized dependencies and env files. This eliminates context-switching overhead and reduces environment drift across parallel development tracks.

Does worktree automation work with pnpm dependency installation?▼

Yes. Worktree automation includes post-create hooks and automatic dependency installation, supporting pnpm and other package managers. Dependencies install automatically when a new worktree is created with the `-e` flag.

How do I clean up and remove worktrees from my repository?▼

Worktree lifecycle commands include `git gtr rm branch-name` to remove a worktree and `git gtr clean` to prune stale worktree references. These unified commands streamline worktree housekeeping alongside creation and navigation.