worktree

Automate Git worktree creation, listing, and removal with environment setup.

173|8|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/TechDufus/oh-my-claude --skill worktree-techdufus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/TechDufus/oh-my-claude/tree/main/plugins/oh-my-claude/skills/worktree
Command: npx skills add https://github.com/TechDufus/oh-my-claude --skill worktree-techdufus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git worktree management is error-prone and manual, making parallel feature development cumbersome. This Skill automates creating, listing, and removing worktrees with environment setup and safety checks.

Core Features & Use Cases

  • Create isolated worktrees under .worktrees/ with automatic environment file copying when available.
  • List active worktrees and verify their status across multiple branches.
  • Remove worktrees safely with pre-removal checks and optional branch deletion.
  • Guidance for recovery and cleanup in case of partial failures.

Quick Start

Create a new worktree for your feature by triggering the command '/worktree create <name>'.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I automate Git worktree management for parallel feature development?

Automating Git worktree management involves creating, listing, and removing isolated worktrees under a designated directory. This process ensures parallel feature development is handled safely by copying environment files and installing dependencies automatically.

What is the best way to set up isolated Git worktrees with environment files?

Setting up isolated Git worktrees is best handled by creating them under a `.worktrees/` directory. This approach automatically copies available environment files and installs dependencies using the detected package manager during the creation process.

Can I safely remove Git worktrees and delete feature branches?

Yes, you can safely remove Git worktrees by using pre-removal checks to verify status. This process ensures safe removal and offers optional deletion of the associated feature branch to keep your repository clean.

How do I list active Git worktrees and verify their branch status?

Listing active Git worktrees allows you to verify the status of multiple branches across your project. This verification ensures your isolated feature development environments remain synchronized and properly managed.

What should I do if a Git worktree creation fails partially?

When Git worktree creation fails partially, you should follow built-in recovery and cleanup guidance. This ensures that incomplete worktrees or unresolved dependency installations are safely removed to prevent repository corruption.