git-worktree

Manage Git worktrees for isolated parallel development and cleanup.

1|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/hackefeller/ghostwire --skill git-worktree-hackefeller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/hackefeller/ghostwire/tree/main/.github/skills/git-worktree
Command: npx skills add https://github.com/hackefeller/ghostwire --skill git-worktree-hackefeller

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the management of Git worktrees, providing an isolated and efficient way to handle parallel development tasks, code reviews, and feature isolation without cluttering your main development branch.

Core Features & Use Cases

  • Create Worktrees: Easily create new worktrees from a specified branch, automatically copying environment files and updating .gitignore.
  • List & Switch: View all active worktrees and seamlessly switch between them.
  • Cleanup: Intelligently remove completed or unused worktrees.
  • Use Case: When reviewing a Pull Request, if you're not on the target branch, this skill can create an isolated worktree for the PR, ensuring your current work remains untouched and all necessary environment variables are copied over.

Quick Start

Use the git-worktree skill to create a new worktree for the branch named 'feature-login'.

Frequently Asked Questions about git-worktree

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

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

Git worktrees provide isolated directories for parallel development, allowing you to work on multiple branches simultaneously. This Skill automates worktree creation, listing, switching, and cleanup to streamline your feature isolation workflow.

Can I automatically copy environment files when creating a new Git worktree?

Yes, when creating a new Git worktree, this Skill automatically copies your environment files and updates the `.gitignore` configuration. This ensures your isolated development environment has all necessary variables set up immediately.

What is the best way to review a pull request without disrupting my current branch?

Creating an isolated Git worktree for the pull request branch ensures your current work remains untouched. This Skill sets up the worktree and copies over necessary environment variables for a seamless code review process.

How do I list and switch between active Git worktrees?

You can view all active Git worktrees and seamlessly switch between them using this Skill's management commands. It provides a centralized way to track and navigate your distinct development environments.

How do I clean up completed or unused Git worktrees?

This Skill intelligently removes completed or unused Git worktrees to prevent clutter in your repository. It handles the cleanup process so you can safely delete isolated development environments after merging.