git-worktree

Add, list, remove, and prune Git worktrees for parallel development.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines parallel feature development by providing a robust system for managing Git worktrees, allowing developers to work on multiple features simultaneously without disrupting their main codebase.

Core Features & Use Cases

  • Parallel Development: Work on multiple features or bug fixes concurrently in isolated environments.
  • Clean Main Branch: Keep your primary branch free from ongoing experimental work.
  • Efficient Context Switching: Quickly move between different development tasks.
  • Use Case: Imagine you are working on a new feature, but a critical bug is reported. You can use this skill to quickly create a new worktree for the bugfix, resolve it, and then seamlessly return to your feature development without losing your progress or stashing changes.

Quick Start

Use the git-worktree skill to add a new worktree named 'feature-x' for a new 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 feature development?

Managing git worktrees for parallel feature development involves creating isolated environments to work on multiple branches simultaneously. This approach allows you to maintain a clean main branch while efficiently switching contexts between different tasks without stashing changes.

What is the best way to switch contexts when a critical bug is reported mid-feature?

The best way to switch contexts for a critical bug is using a git worktree to create an isolated environment for the bugfix. This allows you to resolve the issue and seamlessly return to your feature development without losing progress or stashing changes.

Can I keep my primary branch clean while working on experimental features?

Yes, you can keep your primary branch clean by using git worktrees to isolate experimental features. This ensures ongoing development happens in separate directories, preventing uncommitted changes from disrupting your main codebase during parallel development.

How do I add, list, and remove git worktrees step by step?

To add, list, and remove git worktrees, use a dedicated worktree management workflow. You can add a new worktree for a specific branch, list existing worktrees to track active environments, and remove or prune them when finishing a branch to ensure seamless cleanup.

Does worktree branch finishing integrate with cleanup workflows?

Yes, worktree branch finishing integrates directly with cleanup workflows. This integration ensures that when a feature is complete, removing and pruning the associated worktree happens seamlessly, keeping your development environment organized and free of obsolete branches.