using-git-worktrees

Create isolated git worktrees for feature branches with safety validations.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/OnClickListener2048/confluence-mcp --skill using-git-worktrees-onclicklistener2048
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/OnClickListener2048/confluence-mcp/tree/main/.claude/skills/using-git-worktrees
Command: npx skills add https://github.com/OnClickListener2048/confluence-mcp --skill using-git-worktrees-onclicklistener2048

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It enables developers to create isolated git worktrees to work on new features without disturbing the main working tree, facilitating safe experimentation and clean separation of work.

Core Features & Use Cases

  • Directory-first isolation: Prefer local hidden directories (.worktrees) or the global config path for project isolation.
  • Safety validations: Verify ignored files and ensure clean baselines before creating a new worktree to prevent leakage of worktree content.
  • Deterministic setup: Automatically detect project name, determine the correct location, and apply per-project setup steps.
  • Use Case: When implementing a feature across multiple branches, create a dedicated worktree to test changes in isolation while preserving the main branch.

Quick Start

Create a new isolated worktree for a feature and switch into it to begin development.

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, use a workflow that automatically detects your project name, applies directory preferences for local hidden folders, and switches you into a new branch to begin development safely.

What is the best way to prevent worktree content leakage when branching?

The best way to prevent worktree content leakage is to enforce safety validations that verify ignored files and ensure a clean baseline before creating a new git worktree for your project.

Can I run feature branches in git without touching the main working directory?

Yes, you can run feature branches in git without touching the main working directory by creating dedicated worktrees that provide clean separation and safe experimentation across multiple branches.

How does directory selection work for project isolation in git worktrees?

Directory selection for git worktrees works by preferring local hidden directories, such as a .worktrees folder, or falling back to a global config path to ensure deterministic project isolation.

Why do I need to apply per-project setup steps after creating a git worktree?

Per-project setup steps are required after creating a git worktree to ensure a repeatable, secure workflow that properly configures the isolated environment for your specific development requirements.