sp-worktree

Creates Git worktrees to isolate development and preserve the active branch.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/leessju/claude-skills --skill sp-worktree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sp-worktree
Source: https://github.com/leessju/claude-skills/tree/main/sp-worktree
Command: npx skills add https://github.com/leessju/claude-skills --skill sp-worktree

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a Git worktree-based isolated development environment, allowing you to work on a detached copy without contaminating the current branch. It defines a safe directory selection order, validates .gitignore usage, auto-detects project settings, and performs a clean baseline check to ensure reliability.

Core Features & Use Cases

  • Safe worktree creation that preserves the active branch by operating in an isolated copy.
  • Automated environment setup including dependency installation and project-specific configuration detection.
  • Baseline verification and decision prompts to decide whether to merge or discard worktrees after testing.

Quick Start

Initialize a new isolated worktree in your project and let the system automatically detect the project setup, create the worktree, install dependencies, and verify a clean baseline.

Frequently Asked Questions about sp-worktree

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

FAQPage Schema
How do I create an isolated development workspace without contaminating my current Git branch?

Git worktrees create an isolated development workspace by checking out a detached copy, allowing you to test changes without contaminating the active branch in your main directory.

What is the best way to automate development environment setup across different projects?

Automating development environment setup uses Git worktrees to auto-detect project settings, select safe directories, and install dependencies, ensuring a reliable and consistent isolated workspace baseline.

How does a Git worktree baseline verification workflow ensure safe project branching?

Baseline verification ensures safe project branching by validating .gitignore rules and performing clean checks before proceeding, prompting you to decide whether to merge or discard worktrees after testing.

When do I need to use Git worktrees for my development environment?

You need Git worktrees when your project requires safe branching, directory selection isolation, and automated environment setup across different dependencies without affecting your current working directory state.

Can I auto-detect project settings and install dependencies inside a new Git worktree?

Yes, Git worktree automation auto-detects project settings and installs dependencies during workspace creation, applying safety checks and baseline verification to ensure a clean and reliable environment.