worktree

Orchestrate git worktrees for parallel development and isolated workspaces.

20|6|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/adrielp/ai-engineering-harness --skill worktree-adrielp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/adrielp/ai-engineering-harness/tree/main/gemini/skills/worktree
Command: npx skills add https://github.com/adrielp/ai-engineering-harness --skill worktree-adrielp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing multiple branches and experiments in a single repository is error-prone and hard to reproduce. This Skill orchestrates git worktrees to provide isolated, parallel workspaces for tickets or features, reducing context switching and merge conflicts.

Core Features & Use Cases

  • Create and manage parallel worktrees for tickets or features with a predictable branch naming convention.
  • List, inspect status, and monitor multiple worktrees across a repository to stay in sync.
  • Safely remove or prune stale worktrees, with guidance on merged vs. unmerged branches.

Quick Start

Use the worktree skill to quickly create and manage isolated git worktrees for ticket-based work.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I manage parallel git branches without switching workspaces constantly?

Git worktrees provide isolated workspaces for parallel development, letting you check out multiple branches simultaneously in separate directories. This reduces context switching and merge conflicts when managing multiple tickets or features across a single repository.

What is the best way to create isolated workspaces for ticket-based feature development?

Creating isolated workspaces with git worktrees enables parallel development for tickets or features using predictable branch naming conventions and path structures. This approach safely separates in-progress work without duplicating the entire repository.

How do I clean up stale worktrees and prune merged branches in my repository?

You can safely remove or prune stale git worktrees across a repository using orchestration commands that inspect branch status before deletion. This process provides guidance on handling merged versus unmerged branches to prevent accidental data loss.

Can I monitor the status of multiple git worktrees across a single repository?

Yes, you can list and inspect the status of multiple git worktrees across a repository to stay in sync. This monitoring capability tracks isolated workspaces and ensures your parallel development branches remain aligned and conflict-free.

Does git worktree automation work for experiments without disrupting my main branch?

Git worktree automation supports parallel experiments by creating isolated workspaces that leave your main branch untouched. Safety checks prevent conflicts during branch creation and cleanup, ensuring experiments remain reproducible and error-free.

Why should I use git worktrees instead of cloning a repository multiple times?

Git worktrees share a single repository history while providing separate working directories for parallel development, unlike full clones. This approach saves disk space, maintains consistent branch naming conventions, and simplifies stale workspace cleanup.