using-git-worktrees

Create isolated Git worktrees for feature development and validate ignore rules.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/KYRIE66nb/codex-omx-public-config --skill using-git-worktrees-kyrie66nb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/KYRIE66nb/codex-omx-public-config/tree/main/home/.codex/skills/using-git-worktrees
Command: npx skills add https://github.com/KYRIE66nb/codex-omx-public-config --skill using-git-worktrees-kyrie66nb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git worktrees help developers isolate feature work from the main workspace while preserving repository state, avoiding disruptive branch switching.

Core Features & Use Cases

  • Isolated workspaces: Create per-feature worktrees that share the same repository.
  • Safe setup: Verifies ignore rules and avoids accidentally committing worktree files.
  • Flexible locations: Supports project-local or global worktree storage based on preferences.

Quick Start

Create an isolated git worktree for the current repository and set up its project environment.

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 for feature development without disrupting my main workspace?

Create isolated git worktrees using this skill to safely isolate feature development from the main repository. It automates environment setup for quick, safe feature work while preserving your current repository state and avoiding disruptive branch switching.

What is the best way to manage multiple git branches locally without switching contexts constantly?

Git worktrees provide isolated workspaces for per-feature development that share the same repository. This skill applies to local multi-branch workflows, allowing you to work on multiple branches simultaneously without disruptive context switching.

Does this git worktree automation check gitignore status to prevent accidental commits?

Yes, this skill verifies ignore rules and checks gitignore status to avoid accidentally committing worktree files. It validates existing worktree directories and applies safe setup checks to ensure your repository state remains clean.

Can I use a global location for git worktrees instead of project-local directories?

Yes, this skill supports flexible locations for git worktree storage. You can use either project-local worktrees or a global location based on CLAUDE.md hints, allowing you to organize isolated feature work according to your preferences.

What are the limitations of using git worktrees for local multi-branch workflows?

Git worktrees isolate feature work but require validation of existing directories and gitignore checks. This skill handles those safety precautions automatically, though worktrees are specifically designed for local multi-branch workflows rather than remote collaboration scenarios.