using-git-worktrees

Create isolated git worktrees for feature branches with setup checks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams start feature work in isolated git worktrees to avoid polluting the main workspace, ensuring clean, repeatable baselines.

Core Features & Use Cases

  • Auto-detects project name and preferred worktree location (local or global).
  • Verifies the worktree directory is ignored by gitignore to prevent accidental commits.
  • Automatically creates a new worktree, checks out a feature branch, and runs project setup commands when a baseline exists.

Quick Start

Create an isolated git worktree for your feature branch and initialize the workspace with automatic setup 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 feature development?

Git worktrees prevent accidental commits to main branches by verifying the new worktree directory is ignored by gitignore, enforcing safe defaults, and isolating feature work from the primary workspace baseline.

How do I ensure my git worktree directory is ignored by gitignore?

The skill automatically verifies that the selected worktree directory is properly ignored by your gitignore rules before creating the workspace, preventing accidental commits of worktree artifacts to your main repository.

Can I run project setup and testing automatically when a git worktree is ready?

Yes, the skill runs project setup commands and optional testing automatically when the worktree is ready and a baseline exists, streaming a clear readiness report to confirm the isolated feature workspace is prepared.

Does git worktree branch management support both project-local and global worktree locations?

Git worktree branch management supports both project-local and global worktree locations by auto-detecting your preferred setup, allowing flexible isolation of feature work without disrupting the primary workspace directory.

What are the limitations of using git worktrees for isolated feature work?

Git worktrees require verifying ignore rules to prevent accidental commits, and while they support project-local or global locations, setup commands only run automatically when an existing project baseline is successfully detected.