using-git-worktrees

Create and manage isolated git worktrees for feature development.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/Sungmaster/Sung --skill using-git-worktrees-sungmaster
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/Sungmaster/Sung/tree/main/.claude/plugins/superpowers/skills/using-git-worktrees
Command: npx skills add https://github.com/Sungmaster/Sung --skill using-git-worktrees-sungmaster

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents workspace pollution and accidental commits by ensuring that new feature development occurs in an isolated git worktree rather than the primary branch directory.

Core Features & Use Cases

  • Automated Isolation: Detects existing workspaces and automatically creates new ones using native tools or git worktrees.
  • Safety Guardrails: Verifies that worktree directories are properly ignored by git to prevent accidental tracking of build artifacts.
  • Use Case: When starting a new feature, use this skill to create a clean, isolated environment that allows you to switch branches or run tests without disrupting your current progress.

Quick Start

Use the using-git-worktrees skill to set up an isolated workspace for the new feature branch.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I isolate feature branches in git to avoid workspace pollution?

Git worktrees isolate feature branches by creating separate working directories linked to the same repository. This skill automates that creation process, preventing workspace pollution and accidental commits to your primary branch directory during feature development.

What is the best way to run parallel feature tasks without disrupting current progress?

Git worktrees are the best way to run parallel tasks because they allow independent branch checkouts in separate directories. This skill automates worktree management, letting you switch branches or run tests without disrupting your current progress.

Do I need native git support to use automated worktree isolation?

Yes, you need native git support to use automated worktree isolation. This skill relies on native git tools to detect existing workspaces and automatically create new isolated worktrees for maintaining workspace cleanliness during feature development.

How does git worktree management handle build artifacts and directory ignoring?

Git worktree management includes safety guardrails that verify worktree directories are properly ignored by git. This prevents the accidental tracking of build artifacts and ensures your feature development environment remains clean.

When should I not use git worktrees for branch isolation?

You should not use git worktrees if your project lacks local directory ignore policies for worktree paths. Without proper gitignore configurations, automated branch isolation may result in accidentally tracking build artifacts in your version control system.