using-git-worktrees

Create isolated Git worktrees for parallel branch development.

1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/xiaoshuangLi/aibo --skill using-git-worktrees-xiaoshuangli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/xiaoshuangLi/aibo/tree/main/skills/using-git-worktrees
Command: npx skills add https://github.com/xiaoshuangLi/aibo --skill using-git-worktrees-xiaoshuangli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables safe, isolated development workflows by creating git worktrees — separate working directories that share the same repository but allow independent branching and development without affecting the main working directory.

Core Features & Use Cases

  • Smart Directory Selection: Automatically suggests appropriate directory names based on branch names.
  • Safety Verification: Validates that the target directory doesn't conflict with existing work.
  • Isolated Environment: Creates completely separate working directories with their own file states.
  • Branch Management: Handles branch creation and switching within worktrees.
  • Cleanup Support: Provides guidance for proper worktree removal and cleanup.
  • Use Case: Manage multiple features or experiments in parallel without polluting the main workspace.

Quick Start

Create a new worktree for a feature branch and start development in its dedicated directory.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I work on multiple git branches at the same time without stashing?

Git worktrees create isolated working directories from a shared repository, allowing you to develop multiple branches in parallel without stashing or switching contexts in your main workspace.

What is the safest way to set up parallel git worktrees for feature development?

Safe git worktree setup uses smart directory selection based on branch names and validates target directories to prevent naming collisions, ensuring isolated feature development without accidental deletions.

How do I clean up and remove a git worktree after finishing a feature branch?

Proper git worktree cleanup involves dedicated removal guidance that safely deletes the isolated working directory and manages branch state without polluting the main repository workspace.

Can I run independent experiments in separate directories using a single git repository?

Yes, git worktrees provide completely separate working directories with independent file states from a single repository, enabling safe parallel experiments without affecting the main branch.

Why do I need directory collision checks when creating git worktrees?

Directory collision checks prevent git worktrees from conflicting with existing working directories, ensuring safe branch management and avoiding accidental overwrites during isolated development setup.