using-git-worktrees

Create isolated Git worktrees for feature branches with setup and tests.

32|3|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/dkyazzentwatwa/SuperNavigator --skill using-git-worktrees-dkyazzentwatwa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/dkyazzentwatwa/SuperNavigator/tree/main/superpowers-main/skills/using-git-worktrees
Command: npx skills add https://github.com/dkyazzentwatwa/SuperNavigator --skill using-git-worktrees-dkyazzentwatwa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of isolated Git worktrees, preventing conflicts and ensuring a clean development environment for new features.

Core Features & Use Cases

  • Isolated Workspaces: Creates separate directories for branches using git worktree.
  • Smart Directory Selection: Prioritizes .worktrees/, then worktrees/, then CLAUDE.md preferences, or prompts the user.
  • Safety Verification: Ensures project-local directories are ignored by Git before creation.
  • Automated Setup: Runs project-specific setup commands (npm, cargo, pip, poetry, go).
  • Baseline Testing: Verifies a clean state by running project tests after setup.
  • Use Case: When starting a new feature like "user authentication," this skill sets up a dedicated, isolated directory for that work, runs npm install, and confirms all tests pass before you begin coding.

Quick Start

Use the using-git-worktrees skill to set up an isolated workspace for the 'feature/new-login' 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 create an isolated Git worktree for feature development?

To create an isolated Git worktree, this skill automates branch creation in a separate directory, preventing conflicts and ensuring a clean development environment for new features. It selects a safe directory and runs setup commands automatically.

What is the best way to automate project setup when creating a Git worktree?

Automating project setup in a Git worktree involves running project-specific commands like npm, cargo, pip, poetry, or go. This skill executes these commands automatically after creating the isolated workspace to prepare your environment.

How does Git worktree directory selection work safely?

Git worktree directory selection prioritizes `.worktrees/`, then `worktrees/`, then `CLAUDE.md` preferences, or prompts you. Safety verification ensures project-local directories are ignored by Git before creation to prevent accidental commits.

Can I verify a clean baseline with tests after setting up a Git worktree?

Yes, you can verify a clean baseline with tests after setting up a Git worktree. This skill runs project tests automatically after completing the setup commands, confirming the environment is ready before you begin coding.

Does this Git worktree automation integrate with brainstorming and branch completion skills?

Yes, this Git worktree automation integrates with brainstorming and branch completion skills. It sets up the isolated feature workspace, allowing you to seamlessly transition into development and eventual branch completion workflows.