using-git-worktrees

Create isolated Git worktrees with directory selection and safety verification.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a systematic and safe way to create isolated Git worktrees for feature development, preventing conflicts and ensuring a clean starting point.

Core Features & Use Cases

  • Isolated Workspaces: Work on multiple branches simultaneously without context switching.
  • Smart Directory Selection: Automatically finds or prompts for the best location to create worktrees.
  • Safety Verification: Ensures project-local directories are ignored by Git before creation.
  • Automated Setup: Detects and runs project-specific installation commands (Node.js, Rust, Python, Go).
  • Baseline Testing: Verifies the new worktree is clean by running project tests.
  • Use Case: Before starting a new feature like "user authentication," you can use this Skill to create a dedicated, isolated worktree, install dependencies, and confirm the baseline is stable, all before writing any code.

Quick Start

Use the using-git-worktrees skill to create a new worktree for the 'feature/new-api' 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 isolate feature development work with Git worktrees?

Git worktrees isolate feature development by creating separate working directories linked to the same repository. This Skill automatically creates worktrees, intelligently selecting directories and verifying safety by ensuring locations are ignored by Git before creation.

What is the best way to work on multiple Git branches simultaneously without context switching?

Working on multiple Git branches simultaneously requires isolated workspaces to prevent context switching. This Skill creates dedicated worktrees for different branches, allowing you to maintain separate directory states for each feature branch in parallel.

How do I automate project setup when creating a new Git worktree?

Automating project setup for a new Git worktree involves detecting the project environment and running installation commands. This Skill automatically detects and executes setup commands for Node.js, Rust, Python, and Go projects immediately after worktree creation.

Can I verify a clean baseline by running tests in a new Git worktree?

Verifying a clean baseline in a new Git worktree requires running the project test suite immediately after setup. This Skill executes baseline test verification automatically once dependencies are installed, confirming the worktree is stable before you start coding.

Does Git worktree creation handle directory safety checks for project-local locations?

Git worktree creation handles directory safety by verifying project-local locations are properly ignored before use. This Skill ensures directories are added to Git ignore rules before creation, preventing accidental commits of worktree paths into your main repository.