worktrees

Create, list, remove, and audit Git worktrees via Bash automation.

28|3|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/mifunedev/openharness --skill worktrees-mifunedev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktrees
Source: https://github.com/mifunedev/openharness/tree/main/.claude/skills/worktrees
Command: npx skills add https://github.com/mifunedev/openharness --skill worktrees-mifunedev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing Git worktrees across multiple branches and projects is error-prone and manual, leading to drift and wasted time.

Core Features & Use Cases

  • Create and manage isolated worktrees for feature development and experiment isolation.
  • List all worktrees with branch references, ages, and PR status to track progress.
  • Remove, prune, and audit stale worktrees to keep the repository clean and safe.
  • Project cloning workflows surface for independent repos under .worktrees/project/.

Quick Start

Create a new worktree for a feature by following the guided commands described in the DETECT BASE and CREATE sections.

Frequently Asked Questions about worktrees

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

FAQPage Schema
How do I manage Git worktrees across multiple branches without manual errors?

Git worktree management is streamlined by automating the creation, isolation, and removal of worktrees across branches. This prevents configuration drift and reduces wasted time in software engineering workflows.

What's the best way to clean up stale Git worktrees in my repository?

Stale Git worktrees are removed through built-in prune and audit commands. This removes orphaned branches and keeps the repository clean and safe from accumulating unused isolated development environments.

Can I track Pull Request status when listing all active Git worktrees?

Listing Git worktrees includes branch references, ages, and PR-status integration. This surfaces progress tracking directly within the worktree overview to monitor active feature development.

How do I create an isolated Git worktree for a new feature branch?

Creating an isolated Git worktree follows guided commands that detect the base branch and handle new or existing branches. This sets up an isolated environment for feature development and experiments.

Does Git worktree management support cloning independent projects?

Project cloning workflows are supported for independent repositories under the .worktrees/project/ directory. This allows managing isolated repos alongside standard branch worktrees.

Why should I use Git worktrees instead of cloning a repository for every branch?

Git worktrees provide branch isolation without duplicating the entire project clone. This saves disk space and allows simultaneous branch work while maintaining a single shared commit history.