using-git-worktrees

Create isolated git worktrees for feature development without altering the current workspace.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/FeatherHunter/StudyNotes --skill using-git-worktrees-featherhunter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/FeatherHunter/StudyNotes/tree/main/.opencode/skills/superpowers/skills/using-git-worktrees
Command: npx skills add https://github.com/FeatherHunter/StudyNotes --skill using-git-worktrees-featherhunter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Establishes isolated git worktrees to enable feature work without altering the current workspace.

Core Features & Use Cases

  • Isolated workspaces: Create and switch to dedicated worktrees for feature development safely.
  • Directory selection & safety: Prioritizes existing local worktrees, checks CLAUDE.md preferences, and confirms with the user when needed.
  • Automated setup: Auto-detects project type and runs basic setup commands to prepare the environment.

Quick Start

Set up an isolated git worktree for the current feature following the priority and safety checks.

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 without altering my current workspace?

To create an isolated git worktree, the tool prioritizes existing local worktrees, checks CLAUDE.md preferences, verifies directory safety, and runs automated setup commands to prepare the environment without altering your current workspace.

What is the best way to safely set up git worktrees for branching experiments?

The best way to set up git worktrees safely involves automatic directory selection, ignore verification, and safety checks that confirm with the user when needed, ensuring branching experiments remain completely isolated from the main workspace.

Does the git worktree setup process respect existing project configurations like CLAUDE.md?

Yes, the git worktree setup process explicitly checks CLAUDE.md preferences during directory selection and safety verification, ensuring the isolated worktree aligns with existing project configurations before proceeding with automated setup.

Can I automate environment setup when switching to a new git worktree?

Yes, you can automate environment setup when creating a git worktree because the tool auto-detects the project type and runs basic setup commands to prepare the environment before you proceed with feature work.

When do I need to use git worktrees instead of standard git branches?

You need git worktrees during feature development, branching experiments, or any scenario requiring safe isolation with automatic directory selection, allowing you to work on multiple branches simultaneously without altering your current workspace.

What safety checks are performed before creating a git worktree?

Safety checks before creating a git worktree include directory priority checks, ignore verification, CLAUDE.md preference validation, and automated setup tests, confirming with the user when needed to ensure safe isolation.