using-git-worktrees

Create isolated Git worktrees for safe feature development.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/Xinm123/MyRecall --skill using-git-worktrees-xinm123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/Xinm123/MyRecall/tree/main/openrecall/.trae/skills/using-git-worktrees
Command: npx skills add https://github.com/Xinm123/MyRecall --skill using-git-worktrees-xinm123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Set up isolated git worktrees to safely develop features without mutating the main workspace.

Core Features & Use Cases

  • Create and manage project-local or global worktrees to safely develop features without mutating the main branch.
  • Automatically detect and verify ignored worktrees to prevent accidental commits.
  • Follow a priority: existing worktrees, CLAUDE.md preference, or user prompt to determine location.

Quick Start

Use the skill to initialize an isolated worktree for a new feature and run project setup automatically based on the detected project files.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I isolate feature development using git worktrees without mutating my main workspace?

Git worktrees isolate feature development by creating separate working directories linked to your repository, allowing you to safely develop features without mutating the main workspace or switching branches.

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

Automating project setup in a new git worktree involves detecting project files to perform automatic configuration. This ensures the isolated environment matches your main workspace setup based on the detected project files.

Can I use CLAUDE.md preferences to determine worktree location for feature isolation?

Yes, you can use CLAUDE.md preferences to determine worktree location. The setup follows a strict priority order: existing directories first, then CLAUDE.md preferences, and finally user prompts.

How do I prevent accidental commits of worktree directories in my git repository?

To prevent accidental commits of worktree directories, enforce safety by checking gitignore configurations. You must verify ignored worktrees to ensure they are properly excluded from your main project tracking.

Does setting up isolated git worktrees require validating a clean test baseline first?

Yes, setting up isolated git worktrees enforces safety by validating a clean test baseline first. This ensures your feature isolation starts from a stable, verified state before development begins.