using-git-worktrees

Create isolated Git worktrees with directory checks and baseline validation.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/Rysnz/OpenHarness --skill using-git-worktrees-rysnz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/Rysnz/OpenHarness/tree/main/src/crates/core/builtin_skills/using-git-worktrees
Command: npx skills add https://github.com/Rysnz/OpenHarness --skill using-git-worktrees-rysnz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git worktrees enable isolated workspaces for feature development without impacting the main workspace. This skill ensures safe creation, selection of a suitable directory, and compliance checks before adding new worktrees.

Core Features & Use Cases

  • Directory selection with priority: existing local worktrees, CLAUDE.md preference, or user prompt.
  • Safety verification: ignore checks to prevent accidental commits of worktrees into repos, with automated fixes and baseline validation.
  • Auto-setup and project-aware branching: detects project name and creates worktrees with appropriate branches, followed by project setup.

Quick Start

Create an isolated git worktree for the current project and set up a safe default 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 create isolated Git worktrees without affecting my main workspace?

Git worktrees provide isolated workspaces for feature development without impacting the main workspace. They are needed when you want to isolate feature work from your current project workspace safely and repeatably.

How do I set up a Git worktree for a new feature branch?

Setting up a Git worktree involves detecting the project name, creating the worktree with an appropriate branch, and running project setup and baseline testing. Directory selection prioritizes existing local worktrees or CLAUDE.md preferences.

How does directory selection work when creating Git worktrees?

Directory selection for Git worktrees follows a priority order: it checks for existing local worktrees, then looks for a CLAUDE.md preference, and finally prompts the user for a location if needed.

How do I prevent accidental commits of Git worktrees into my repository?

To prevent accidental commits of Git worktrees, the creation process enforces directory ignore checks. It provides automated fixes and baseline validation to ensure worktrees are properly ignored by your repository.

Can I use configurable local or global locations for Git worktrees?

Yes, Git worktrees can be created with configurable local or global locations. The process applies across projects requiring safe, repeatable branch workspaces, allowing flexible directory placement.