git-worktrees

Create isolated Git worktrees with automated setup and baseline testing.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/zach-source/claude-plugins --skill git-worktrees-zach-source
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktrees
Source: https://github.com/zach-source/claude-plugins/tree/main/plugins/git-tools/skills/git-worktrees
Command: npx skills add https://github.com/zach-source/claude-plugins --skill git-worktrees-zach-source

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and management of isolated Git worktrees, ensuring a clean and safe development environment for new features or tasks.

Core Features & Use Cases

  • Isolated Workspaces: Create separate, independent working directories for different branches or tasks without affecting your main codebase.
  • Smart Directory Selection: Automatically determines the best location for new worktrees based on project conventions and user preferences.
  • Safety Verification: Ensures .gitignore is correctly configured before creating project-local worktrees to prevent accidental commits.
  • Automated Setup: Detects and runs project-specific setup commands (e.g., npm install, cargo build) within the new worktree.
  • Baseline Testing: Verifies the integrity of the new worktree by running project tests.

Quick Start

Use the git-worktrees skill to create a new worktree for the 'feature/new-login' branch in the '.worktrees' directory.

Frequently Asked Questions about git-worktrees

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

FAQPage Schema
How do I create an isolated Git worktree for a new feature branch?

This skill creates isolated Git worktrees by automating directory selection and running project setup commands like npm install, ensuring a clean and independently configured working directory for your new feature branch.

How does Git worktree branch isolation prevent accidental commits to the main codebase?

Git worktree branch isolation prevents accidental commits by implementing safety verification checks to ensure .gitignore is correctly configured before creating project-local worktrees, keeping your main codebase unaffected by separate working directories.

Can I automate project setup and baseline testing within new Git worktrees?

Yes, you can automate project setup and baseline testing within new Git worktrees. The skill detects and executes project-specific setup commands like npm install or cargo build, then verifies worktree integrity by running project tests.

What is the best way to manage project-local and global worktree storage strategies?

The best way to manage worktree storage is using smart directory selection that automatically determines the optimal location based on project conventions and user preferences, supporting both project-local and global worktree storage configurations.

Why do I need .gitignore configured before creating project-local Git worktrees?

You need .gitignore configured before creating project-local Git worktrees to pass safety verification checks, which prevent the worktree directories from being accidentally committed and tracked within your main repository's version control.