using-git-worktrees

Create isolated git worktrees for feature branches with directory verification.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Isolates feature work by creating isolated git worktrees so developers can work on new branches without contaminating the main workspace.

Core Features & Use Cases

  • Directory selection follows a strict priority: prefer .worktrees, then worktrees, then CLAUDE.md preferences.
  • Safety verification ensures the target directory is ignored by git before creating the worktree.
  • Automatic setup detects the project name and applies project-specific tooling steps after creation.

Quick Start

Ask me to create an isolated git worktree for the current project and I will choose a safe directory, verify ignore rules, and create the worktree.

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 a new feature branch?

Git worktrees isolate feature work by creating separate working directories linked to the same repository, allowing you to start new branches and experiments without contaminating the main workspace.

How does git worktree branch isolation prevent workspace contamination?

Git worktree branch isolation creates a separate directory for your feature branch, preventing uncommitted changes or experimental tooling from affecting your main project workspace.

Can I use project-local directories for git worktrees or do I need a global setup?

You can configure isolated git worktrees using either project-local or global directories. Directory selection prioritizes .worktrees, then worktrees, then CLAUDE.md preferences.

Does git worktree setup verify directory ignore rules for safety?

Yes, safety verification checks that the target worktree directory is correctly ignored by git rules before creating the worktree, preventing accidental commits of worktree folders.

What is the best way to automate project setup after creating a git worktree?

The best way to automate setup is to let the tool detect the project name and apply project-specific tooling steps automatically after the git worktree is created.

When should I not use git worktrees for branch isolation?

You should avoid git worktrees if your project lacks proper git ignore rules for the target directory, as the safety verification step requires the directory to be ignored to prevent repository contamination.