git-worktree

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

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/TrendpilotAI/invesco-demo --skill git-worktree-trendpilotai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/TrendpilotAI/invesco-demo/tree/main/skills/compound-engineering/skills/git-worktree
Command: npx skills add https://github.com/TrendpilotAI/invesco-demo --skill git-worktree-trendpilotai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines Git worktree management, enabling developers to work on multiple features or branches in isolation without the overhead of context switching or complex manual Git commands.

Core Features & Use Cases

  • Isolated Development: Create separate, clean environments for features, bug fixes, or code reviews.
  • Simplified Workflow: Automates the creation, listing, switching, and cleanup of Git worktrees.
  • Use Case: When reviewing a Pull Request, you can instantly create an isolated worktree for that specific branch, ensuring your main development branch remains clean and unaffected by your review process.

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

Managing Git worktrees for parallel development involves creating isolated directories linked to the same repository. This Skill automates that creation, listing, switching, and cleanup to enable concurrent feature work without manual context switching.

What is a Git worktree and when do I need it for code review?

A Git worktree is an isolated working directory allowing you to check out multiple branches simultaneously. You need it for code review to instantly create a clean environment for a specific pull request branch without affecting your main development branch.

How do I set up an isolated Git worktree for a new feature branch?

To set up an isolated Git worktree, use this Skill to specify the target branch name. It handles the creation process and supports automated environment file copying and .gitignore updates for seamless integration into your workflow.

Can I automate environment file copying when creating Git worktrees?

Yes, you can automate environment file copying when creating Git worktrees. This Skill explicitly supports automated environment file copying and updates .gitignore files to ensure seamless integration across your isolated parallel development setups.

What is the best way to handle Git worktree cleanup after finishing a feature?

The best way to handle Git worktree cleanup is through automated management scripts. This Skill streamlines the cleanup process alongside creation and switching, ensuring isolated development environments are removed efficiently after feature completion.