Radberi-UsingGitWorktrees

Create isolated Git worktrees with priority-based directory selection and safety checks.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/Shade666/huml-dotnet --skill radberi-usinggitworktrees
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Radberi-UsingGitWorktrees
Source: https://github.com/Shade666/huml-dotnet/tree/main/.claude/skills/Radberi-UsingGitWorktrees
Command: npx skills add https://github.com/Shade666/huml-dotnet --skill radberi-usinggitworktrees

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve?

Starting feature work often risks contaminating the main workspace. Radberi-UsingGitWorktrees creates isolated git worktrees with smart directory selection and safety verification to keep work in a dedicated space.

## Core Features & Use Cases

  • Isolated workspaces: create per-feature worktrees that share the same repository but keep changes separate.
  • Safe directory selection: prioritizes existing hidden worktree dirs, CLAUDE.md preferences, or prompts for a location.
  • Safety checks: verifies ignore rules before creating project-local worktrees to prevent accidental commits.
  • Auto-setup: runs project-specific setup commands after creating the worktree to prepare the environment.

### Quick Start

Tell me to set up an isolated Git worktree for your current project, and I will pick a safe directory, verify ignores, and create the new worktree.

Frequently Asked Questions about Radberi-UsingGitWorktrees

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

FAQPage Schema
How do I create an isolated git worktree for feature work without altering the main workspace?

Creating isolated git worktrees establishes a separate workspace sharing the same repository but keeping changes isolated. This ensures feature work, experiments, or refactors start from a clean baseline without contaminating the main project directory.

What is the safest way to select a directory for a new git worktree?

Safe directory selection for git worktrees prioritizes existing hidden worktree directories, checks CLAUDE.md preferences, or prompts for a location. This priority-based approach prevents accidental commits and ensures the worktree is properly ignored.

Why do I need to verify ignore rules before creating project-local git worktrees?

Verifying ignore rules before creating project-local git worktrees prevents accidental commits of worktree directories to the main repository. Safety checks validate that the isolation directory is properly ignored, protecting the baseline repository state.

Can I automate project setup commands after creating a git worktree?

Automating project setup commands after creating a git worktree prepares the environment automatically. The auto-setup feature runs project-specific initialization commands, ensuring the isolated workspace has the correct dependencies and configuration ready for feature work.

Does using git worktrees work across different project directories and branches?

Git worktrees work effectively across project directories and different branches by establishing isolated workspaces from the repository. This allows simultaneous feature development on multiple branches without altering the main workspace or switching contexts constantly.