using-git-worktrees

Create isolated Git worktrees with dependency setup and safety verification.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/kgadek/kgadek-claude-plugin --skill using-git-worktrees-kgadek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/kgadek/kgadek-claude-plugin/tree/main/ai-spec/2026-01-21-sdd-inspirations/references/obra-superpowers/skills/using-git-worktrees
Command: npx skills add https://github.com/kgadek/kgadek-claude-plugin --skill using-git-worktrees-kgadek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git worktrees enable you to start feature work in isolation from your current workspace, avoiding context switches and accidental changes to the main branch.

Core Features & Use Cases

  • Automatic local/global worktree location selection with safety verification
  • Project-aware setup that auto-installs or builds dependencies for common stacks
  • Enforced ignore checks and clean baselines before starting new work
  • Suitable for parallel feature development and exploratory experiments

Quick Start

Ask Claude to set up an isolated git worktree for your new feature branch with automatic location choice and safety checks.

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 need to set up a separate directory with safety verification and smart location selection. This process automatically detects the project name, creates the worktree, and preserves your main workspace for parallel feature work.

What is a git worktree and when do I need it for feature work?

A git worktree is an isolated feature workspace that allows parallel branch development without context switching. You need a git worktree when starting feature work in isolation to avoid accidental changes to the main branch while exploring experiments.

Can I auto-install dependencies when setting up a new git worktree?

Yes, project-aware worktree setup can auto-install or build dependencies for common stacks. When creating the worktree, the system applies safety verification and automatically handles dependency installation for your specific software development environment.

Does git worktree setup verify a clean baseline before starting new work?

Git worktree setup enforces ignore checks and verifies a clean baseline before starting new work. The safety verification process checks your project state, creates the worktree, and reports readiness so your isolated feature branch starts without issues.

What's the best way to choose between local and global git worktree locations?

Choosing between local and global git worktree locations depends on your software development workflow. Automatic location selection evaluates project-local and global directories, applying smart selection logic to determine the optimal isolated workspace for your feature branch.

Why does git worktree creation require safety checks and ignore verification?

Git worktree creation requires safety checks to enforce clean baselines and prevent data loss. Ignore verification ensures your main workspace is preserved, detecting the project name and verifying readiness before starting isolated feature work in the new directory.