worktree

Manage git worktree lifecycle with creation, removal, and lock operations.

14|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/WalletConnect/skills --skill worktree-walletconnect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/WalletConnect/skills/tree/main/skills/worktree
Command: npx skills add https://github.com/WalletConnect/skills --skill worktree-walletconnect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinated management of multiple Git worktrees to simplify parallel development and branch isolation.

Core Features & Use Cases

  • Create isolated worktrees for feature work, fixes, or experiments.
  • List, inspect status, and prune stale worktrees across a repository.
  • Remove, cleanup, and lock/unlock worktrees to protect important work.

Quick Start

Create and manage a dedicated worktree for a feature branch using the /worktree command.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I manage multiple Git worktrees for parallel branch development?

You can manage multiple Git worktrees by using a dedicated orchestration tool to create, list, and remove isolated working directories tied to different branches. This Skill streamlines that exact lifecycle, including pruning and locking operations.

What is the safest way to remove stale Git worktrees and prune unused branches?

The safest way to remove stale Git worktrees is through a process that includes safety checks and explicit confirmation prompts before deletion. This Skill protects the main worktree and handles pruning to clean up unused branch directories safely.

Can I lock a Git worktree to prevent accidental cleanup during branch isolation?

Yes, you can lock a Git worktree to protect important work and prevent accidental removal. This Skill provides dedicated lock and unlock subcommands, ensuring critical branch isolation environments remain secure during batch operations.

Does batch worktree cleanup work across multiple repositories and branches?

Batch worktree cleanup works across multiple branches and repositories through interactive prompts that confirm removals. This Skill handles batch operations efficiently while enforcing safety checks to protect primary worktree environments.

When do I need to use Git worktrees instead of standard branch switching?

You need to use Git worktrees instead of standard branch switching when you require isolated working directories for simultaneous feature development or experiments. Worktrees allow you to maintain multiple checked-out branches in parallel without stashing current work.