using-git-worktrees

Create isolated Git worktrees for feature branches with safety checks.

1|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/ditchallaway/Robotic-Property-Photographer --skill using-git-worktrees-ditchallaway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/ditchallaway/Robotic-Property-Photographer/tree/main/.agents/skills/using-git-worktrees
Command: npx skills add https://github.com/ditchallaway/Robotic-Property-Photographer --skill using-git-worktrees-ditchallaway

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Isolating feature work and preventing workspace contamination by creating dedicated Git worktrees with safety checks and automatic setup.

Core Features & Use Cases

  • Automatic workspace isolation by creating and selecting project-local or global worktree locations with a safe priority order.
  • Safety verification to ensure the worktree path is ignored by git and that the baseline is clean before usage.
  • Automatic scaffolding of development environments by auto-detecting project type (Node.js, Rust, Python, Go) and running appropriate setup steps.
  • Use Case: When starting multiple feature branches simultaneously, quickly establish isolated worktrees for each branch without changing the main working directory.

Quick Start

Create an isolated Git worktree for a feature branch in the current project.

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?

The worktree automation isolates feature work by creating a dedicated directory while keeping your main workspace clean. It automatically selects a safe location, verifies the gitignore settings, and scaffolds the environment to prevent branch contamination.

How does Git worktree isolation prevent workspace pollution?

Git worktree isolation prevents workspace pollution by moving feature branches into separate directories. The automation enforces directory priority checks and gitignore verification so concurrent feature work never contaminates the main working directory.

Can I automatically set up a development environment inside a new Git worktree?

Yes, you can automatically set up a development environment inside a new Git worktree. The automation detects project types like Node.js, Rust, Python, and Go, running the appropriate setup steps immediately after creating the worktree.

What safety checks are required before using a new Git worktree?

Required safety checks before using a Git worktree include verifying the worktree path is ignored by git and ensuring the baseline is clean. The automation also applies directory priority checks and CLAUDE.md preferences for safe selection.

Do I need to manually configure gitignore for Git worktrees?

You do not need to manually configure gitignore for Git worktrees. The safety verification workflow automatically checks that the worktree path is properly ignored by git before allowing usage, ensuring no untracked files appear in the main workspace.