using-git-worktrees

Create isolated Git worktrees with automatic directory selection and safety checks.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/haulcommand-max/haul-command --skill using-git-worktrees-haulcommand-max
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/haulcommand-max/haul-command/tree/main/vendor/superpowers/skills/using-git-worktrees
Command: npx skills add https://github.com/haulcommand-max/haul-command --skill using-git-worktrees-haulcommand-max

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use when starting feature work that needs isolation from the current workspace or before implementing planned changes; it creates isolated git worktrees with smart directory selection and safety verification to prevent accidental commits from worktrees.

Core Features & Use Cases

  • Safe isolation of feature work by creating Git worktrees linked to the repository.
  • Automated directory selection with priority rules and CLAUDE.md preferences.
  • Safety verification including gitignore checks and post-creation setup guidance.

Quick Start

Ask me to create an isolated git worktree for your feature branch.

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?

To create an isolated git worktree, the system automates directory selection based on priority rules and CLAUDE.md preferences, then links the new feature branch to your repository with safety checks to prevent accidental commits.

How does git worktree isolation prevent accidental commits?

Git worktree isolation prevents accidental commits by verifying gitignore configurations during creation, ensuring worktree directories are properly excluded from your main repository's tracking scope and maintaining a safe boundary between workspaces.

Can I automate directory selection for multiple git worktrees?

Yes, automated directory selection uses priority rules and CLAUDE.md preferences to discover appropriate paths for git worktrees, prompting for user input only when needed to resolve ambiguous directory placement decisions.

What safety checks are performed when setting up git worktrees?

Safety checks during git worktree setup include gitignore verification to prevent accidental commits, post-creation validation, and automated project setup guidance including test execution to ensure the isolated environment is fully functional.

When should I use git worktrees instead of branching in my main directory?

Use git worktrees when starting feature work that needs isolation from your current workspace or before implementing planned changes across multiple branches, ensuring safe separation without manual directory management or stashing.

Does git worktree setup work without manual gitignore configuration?

Git worktree setup includes automatic ignore verification during creation, but you should verify your gitignore rules are properly configured beforehand to ensure worktree directories are excluded from accidental commits in the main repository.