using-git-worktrees

Create isolated git worktrees with automatic directory selection and safety checks.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/TwuanMinn/fadelab --skill using-git-worktrees-twuanminn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/TwuanMinn/fadelab/tree/main/.agent/skills/skills/using-git-worktrees
Command: npx skills add https://github.com/TwuanMinn/fadelab --skill using-git-worktrees-twuanminn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use when starting feature work that needs isolation from the current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

Core Features & Use Cases

  • Isolate feature development using project-local or global worktree directories
  • Auto-detect and apply user preferences (CLAUDE.md) for worktree locations
  • Safety verification to ensure worktree directories are ignored by git and not accidentally committed
  • Auto-detect project setup and run relevant install/build steps, then verify a clean baseline

Quick Start

Create an isolated git worktree for a new feature branch, with automatic directory selection and safety verification.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I isolate feature development using git worktrees?

To isolate feature development using git worktrees, you can create an isolated branch in a project-local directory. This Skill automatically resolves the directory path, applies user preferences, and ensures the worktree is ignored by git for safety.

What is the safest way to set up a git worktree directory?

The safest way to set up a git worktree directory is to ensure it is properly ignored by git. This Skill includes built-in safety verification to prevent the worktree directory from being accidentally committed to your repository.

How do I configure custom worktree locations using CLAUDE.md?

You can configure custom worktree locations by defining your preferences in a CLAUDE.md file. The Skill auto-detects and applies these preferences to determine whether to use a project-local or global worktree directory.

Can I automatically install dependencies when creating a git worktree?

Yes, you can automatically install dependencies when creating a git worktree. The Skill auto-detects the project setup, runs relevant installation steps, and executes post-creation verification to ensure a clean baseline.

When should I use git worktrees instead of switching branches?

You should use git worktrees instead of switching branches when you need to isolate feature work from your current workspace. This allows you to run implementation plans and tests in parallel without disrupting your primary working directory.