worktree

Manage git worktrees to create, list, delete, switch, and prune them.

3|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/martin-janci/claude-marketplace --skill worktree-martin-janci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/martin-janci/claude-marketplace/tree/main/plugins/worktree/skills/worktree
Command: npx skills add https://github.com/martin-janci/claude-marketplace --skill worktree-martin-janci

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Allows teams and solo developers to organize multiple worktrees for concurrent feature branches without cluttering the main working tree.

Core Features & Use Cases

  • Create new worktrees for feature development without checking out different branches in the main tree.
  • List, switch, and remove worktrees to manage parallel workstreams and clean repositories.
  • Prune stale worktree references and safely move worktrees to new names when refactoring branches.

Quick Start

Create and manage worktrees to enable parallel feature development without branch switching.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I manage git worktrees for parallel feature development?

You can manage git worktrees by creating, listing, and removing them to enable parallel feature development without checking out different branches in the main working tree. This keeps your repository organized across multiple workstreams.

What is the best way to work on multiple git branches without switching?

Using git worktrees is the best way to work on multiple branches without switching, as it allows you to create new working trees for feature development. This prevents cluttering your main working tree while maintaining concurrent branches.

Can I prune stale worktree references in a local git repository?

Yes, you can prune stale worktree references in a local git repository. The skill supports commands to prune worktrees, ensuring your repository remains clean and free of outdated references after branches are deleted or moved.

How do I move or rename worktrees when refactoring branches?

You can safely move worktrees to new locations or rename them when refactoring branches. This functionality is supported natively, allowing you to reorganize your working trees without breaking existing development workflows.

Does git worktree work with complex local repositories?

Yes, git worktree functionality works with local Git repositories and is fully applicable to complex repository structures. You can add, list, remove, prune, move, and rename worktrees across intricate project setups.