using-git-worktrees

Create isolated Git worktrees for feature development with setup detection.

1|1|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/orbtyapp/orbty-eazy --skill using-git-worktrees-orbtyapp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/orbtyapp/orbty-eazy/tree/main/skills/using-git-worktrees
Command: npx skills add https://github.com/orbtyapp/orbty-eazy --skill using-git-worktrees-orbtyapp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a safe, repeatable method to create isolated Git worktrees for feature development, preventing workspace contamination and accidental commits to the wrong branch.

Core Features & Use Cases

  • Directory priority: prefer existing project-local worktrees, then CLAUDE.md hints, then user prompts.
  • Safety-verification: ensure the chosen worktree path is ignored by git, preventing accidental commits.
  • Auto-setup: detect project type and run minimal setup commands if relevant; supports local or global worktrees.

Quick Start

Use the using-git-worktrees skill to set up an isolated workspace for the current feature branch.

Frequently Asked Questions about using-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 feature development?

The Skill creates an isolated Git worktree by running `git worktree add` to establish a separate working directory for feature development, preventing workspace contamination and accidental commits to the wrong branch.

Why do I need to isolate Git branches into separate worktrees?

Isolating Git branches into separate worktrees prevents workspace contamination and accidental commits to the wrong branch, providing a safe, repeatable method to manage feature development without disrupting your main workspace.

Can I use a global location for Git worktrees instead of the project directory?

Yes, you can use a global location for Git worktrees. The setup follows a defined directory preference order, checking for existing project-local paths first, then CLAUDE.md hints, before falling back to user-specified global locations.

How do I ensure my Git worktree is ignored to prevent accidental commits?

You can ensure your Git worktree is ignored by verifying the chosen worktree path with the `git check-ignore` command, which confirms the directory is properly excluded from Git tracking and prevents accidental commits.

Does Git worktree setup automatically run project installation commands like npm install?

Yes, Git worktree setup auto-detects the project type and runs minimal setup commands if relevant, automatically executing preparations like `npm install`, `cargo build`, or `pip install` to establish the baseline environment in the new worktree.