git-worktree

Create, list, switch, and clean up Git worktrees for isolated development.

49|4|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/gvkhosla/compound-engineering-pi --skill git-worktree-gvkhosla
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/gvkhosla/compound-engineering-pi/tree/main/plugins/compound-engineering/skills/git-worktree
Command: npx skills add https://github.com/gvkhosla/compound-engineering-pi --skill git-worktree-gvkhosla

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the management of Git worktrees, enabling developers to isolate parallel development tasks, code reviews, and feature work without the overhead of complex Git commands or context switching.

Core Features & Use Cases

  • Simplified Worktree Management: Create, list, switch, and clean up Git worktrees using a single, interactive script.
  • Isolated Development: Work on multiple features or review PRs in separate, clean environments.
  • Use Case: When reviewing a pull request, if you're not on the correct branch, this skill can create an isolated worktree for the PR, ensuring your main development environment remains untouched.

Quick Start

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

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 without switching branches?

Create isolated Git worktrees for parallel development using a single interactive script to manage separate working directories. This simplifies handling multiple features or pull requests simultaneously without complex branch switching or disrupting your main environment.

How do I create an isolated Git environment for reviewing a pull request?

Create an isolated Git worktree specifically for the pull request to review code changes safely. This keeps your main development workspace completely untouched while providing a clean environment for assessment.

Can I automate Git worktree creation for feature development workflows?

You can automate Git worktree creation for feature development workflows using script integration. The skill supports automated workflows by handling environment files and .gitignore configurations automatically during worktree setup and cleanup.

What is the best way to clean up Git worktrees after finishing a feature?

The best way to clean up Git worktrees after finishing a feature is using a unified cleanup script. It removes the isolated working directory and automatically manages associated environment files and .gitignore entries to maintain repository hygiene.

Does Git worktree management handle environment files and .gitignore automatically?

Git worktree management handles environment files and .gitignore configurations automatically during creation and cleanup. This ensures each isolated working directory maintains the correct configuration without manual file copying or rule adjustments.

Why use a Git worktree instead of cloning a repository for code review?

Use a Git worktree instead of cloning a repository for code review to save disk space and share a single Git history. Worktrees provide an isolated environment for reviewing PRs without the overhead of managing multiple full repository copies.