using-git-worktrees

Create isolated Git worktrees for concurrent feature development.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/ultramaxoAI/UltramaxoAI --skill using-git-worktrees-ultramaxoai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/ultramaxoAI/UltramaxoAI/tree/main/.agent/skills/using-git-worktrees
Command: npx skills add https://github.com/ultramaxoAI/UltramaxoAI --skill using-git-worktrees-ultramaxoai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams create isolated Git worktrees, enabling concurrent feature work without disrupting the main workspace, and ensures safety via proper directory selection and verification.

Core Features & Use Cases

  • Create isolated workspaces sharing the same repo to work on multiple branches.
  • Safety verification: ensures ignored directories and avoids accidental commits; directory selection priority (existing, CLAUDE.md, prompt).
  • Run appropriate project setup: autodetect dependencies and run setups for Node.js, Rust, Python, Go etc.
  • Provide an example workflow in common usage: "Setting up a feature work environment" scenario.

Quick Start

Ask me to set up an isolated git worktree for your current project and I will pick a suitable directory, verify ignore rules, create a new worktree branch, and prepare the environment.

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 isolated Git worktrees for concurrent feature branches?

To create isolated Git worktrees, this skill automatically selects a suitable directory, verifies gitignore rules, constructs the worktree path, and prepares the environment for safe concurrent branch development.

How does Git worktree directory selection and safety verification work?

Git worktree directory selection prioritizes existing directories, CLAUDE.md preferences, or user prompts, then verifies safety by checking gitignore rules to ensure ignored directories and prevent accidental commits.

Can I automatically set up project dependencies like Node.js or Python in a new Git worktree?

Yes, this skill automatically detects project dependencies for Node.js, Rust, Python, and Go, running the appropriate setup scripts to ensure your new Git worktree has a clean baseline and ready-to-work environment.

What is the best way to run multiple Git branches without affecting the main workspace?

Using Git worktrees is the best way to isolate branch development. This skill shares the same repository while dynamically constructing paths and preparing environments to keep your main workspace unaffected.

Why should I check gitignore rules before adding a new Git worktree directory?

Checking gitignore rules before adding a Git worktree directory prevents accidental commits of worktree files and ensures ignored directories remain isolated, maintaining repository safety.

Does using-git-worktrees support both project-local and global worktree directories?

Yes, using-git-worktrees supports both project-local and global worktree directories, steering directory choices dynamically based on existing configurations, CLAUDE.md preferences, or user prompts.