git-worktree

Create, list, switch, and clean up isolated Git worktrees with confirmations.

9|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/sylvanding/omelette --skill git-worktree-sylvanding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/sylvanding/omelette/tree/main/.claude/skills/git-worktree
Command: npx skills add https://github.com/sylvanding/omelette --skill git-worktree-sylvanding

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, and includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the friction of managing parallel Git development workflows, removing the risk of conflicting changes, messy stashing, and constant branch switching when working on multiple features, bug fixes, or code reviews at the same time.

Core Features & Use Cases

  • Automated Worktree Operations: Create, list, switch between, and clean up Git worktrees with interactive confirmations to prevent accidental changes or data loss.
  • Seamless Environment Consistency: Automatically copies .env and other environment files from the main repository to new worktrees, and ensures the .worktrees directory is added to .gitignore to avoid accidental commits.
  • Use Case: If you need to review a teammate's pull request for a new feature while simultaneously working on an urgent bug fix, use this Skill to create two isolated worktrees so changes for each task remain completely separate.

Quick Start

Ask the AI to create a new isolated Git worktree for your feature branch named "payment-integration" to start working on it without impacting your main development environment.

Frequently Asked Questions about git-worktree

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

FAQPage Schema
How do I manage parallel development without switching branches or stashing code?

Git worktrees enable parallel development by creating isolated working directories for different branches. This allows you to work on multiple features or bug fixes simultaneously without disruptive stashing or branch switching.

Can I copy environment files to a new git worktree automatically?

Yes, this git worktree workflow automatically copies .env and other environment files from the main repository to new worktrees. It also maintains .gitignore to prevent accidental commits of worktree directories.

What is the best way to review a pull request in an isolated environment?

Creating an isolated git worktree is the best way to review pull requests. This Skill automates worktree creation for isolated testing, keeping pull request changes completely separate from your main development environment.

How do I safely clean up git worktrees without losing uncommitted changes?

This Skill automates git worktree cleanup operations with interactive confirmations. These safe cleanup prompts prevent accidental data loss by verifying your actions before removing any isolated worktree environments.

Does this git workflow require any specific version control tools besides git?

No, this parallel development workflow only requires the standard git version control system. It relies on scripts to automate worktree operations, environment file synchronization, and .gitignore maintenance without other dependencies.