using-git-worktrees

Create isolated Git worktrees for feature development with automated setup.

60|4|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/dsifry/goodtogo --skill using-git-worktrees-dsifry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/dsifry/goodtogo/tree/main/.claude/plugins/superpowers/skills/using-git-worktrees
Command: npx skills add https://github.com/dsifry/goodtogo --skill using-git-worktrees-dsifry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams start feature work in isolation by creating Git worktrees and choosing directories safely, avoiding disruption to the main workspace.

Core Features & Use Cases

  • Directory selection priority: preference order is .worktrees, then worktrees, then CLAUDE.md; if none is found, the skill will prompt for a location.
  • Safety verification: verifies whether the worktree directory is ignored in .gitignore and updates it if necessary to prevent accidental commits of worktree contents.
  • Automated workspace setup: creates the worktree for the target branch, changes into it, and runs project setup steps (npm install, cargo build, pip install, etc.) as detected by the project files.
  • Use case: start a new feature branch in isolation to implement changes without touching the main branch, and verify a clean baseline before integration.

Quick Start

To begin, ask the skill to create an isolated worktree for your feature branch and follow the prompts; after creation, rely on the detected project files to run the appropriate setup commands.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I create an isolated git worktree for feature development?

The skill selects a directory by checking for a '.worktrees' folder first, then a 'worktrees' folder, then 'CLAUDE.md'. If none is found, it prompts you to specify a location for the feature branch worktree.

How do I keep git worktree contents out of my main repository commits?

After creating the worktree, the skill changes into the directory and automatically runs detected project setup commands like 'npm install', 'cargo build', or 'pip install' based on your project files to establish a clean baseline.

Can I use git worktrees with npm, cargo, or poetry projects?

Git worktrees provide isolated directories for feature branches, allowing simultaneous work on multiple branches without stashing changes, keeping your main workspace clean and undisturbed.

What is the best way to set up a clean baseline before starting feature work?

If no '.worktrees' or 'worktrees' directory exists and no location is specified in 'CLAUDE.md', the skill prompts you to choose a directory path before creating the isolated feature branch workspace.