using-git-worktrees

Create isolated git worktrees with setup and baseline tests.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/thiansit/LuPang --skill using-git-worktrees-thiansit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/thiansit/LuPang/tree/main/.claude/skills/using-git-worktrees
Command: npx skills add https://github.com/thiansit/LuPang --skill using-git-worktrees-thiansit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a safe, repeatable way to create isolated git worktrees so developers can work on feature branches without disrupting the current workspace or accidentally committing worktree contents to the repository.

Core Features & Use Cases

  • Safe Directory Selection: Prioritizes existing .worktrees or worktrees directories, respects CLAUDE.md preferences, and prompts the user when ambiguous.
  • Safety Verification: Ensures project-local worktree directories are git-ignored and, if not, adds the ignore entry and commits the change to avoid repository contamination.
  • Automated Setup & Baseline Checks: Auto-detects project type (Node, Rust, Python, Go), runs dependency setup, and executes tests to verify a clean starting state before coding.
  • Use Case: Start a concurrent feature branch safely by creating a dedicated worktree, preparing the environment, and confirming tests pass before implementation.

Quick Start

Use the using-git-worktrees skill to create an isolated worktree for branch feature/auth in a project-local .worktrees directory and run project setup and tests.

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 parallel feature development?

To create an isolated git worktree, you can use this skill to set up a dedicated directory for your feature branch. It automatically detects your project type, runs language-specific dependency setup, and executes tests to verify a clean baseline before you start coding.

Why does my git worktree directory keep showing up in repository commits?

Your git worktree directory appears in commits because it is not listed in your .gitignore file. This skill verifies project-local worktree directories are git-ignored and automatically adds and commits the ignore entry to prevent repository contamination.

What is the safest way to set up a git worktree without disrupting my current workspace?

The safest way to set up a git worktree is to use an existing .worktrees or worktrees directory while respecting project configuration preferences. This skill prioritizes safe directory selection, isolates feature work, and prompts you when the location is ambiguous.

Can I use git worktrees to run parallel experiments across Node, Rust, Python, and Go projects?

Yes, you can use git worktrees to run parallel experiments across Node, Rust, Python, and Go projects. This skill auto-detects the project type, runs the appropriate dependency setup, and executes tests to confirm a clean starting state across all supported languages.

How do I prevent accidental commits when starting branch-based development with git worktrees?

To prevent accidental commits when starting branch-based development, use an isolated git worktree. This skill separates your feature work from the current workspace and performs safety verification to ensure worktree contents are ignored by version control.

Do I need to manually configure environment setup after creating a git worktree?

You do not need to manually configure environment setup after creating a git worktree for supported languages. This skill automates the process by detecting your project type, running language-specific dependency installations, and executing tests to confirm a clean baseline.