using-git-worktrees

Create and manage isolated Git worktrees with safety checks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineers isolate feature work from the main workspace by creating and managing isolated git worktrees with safety checks to prevent accidental commits to the primary repository.

Core Features & Use Cases

  • Creates project-local or global git worktrees for feature development.
  • Validates ignore rules before creating worktrees and enforces safe setup.
  • Automatically detects project structure, creates the worktree branch, and runs initial setup commands when needed.

Quick Start

Create a new isolated git worktree for your feature branch and switch into it.

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 parallel feature development?

To create an isolated Git worktree, the Skill automates branch creation and directory discovery to set up a separate working tree without altering your main workspace. It supports both project-local and global worktree locations for safe, parallel feature development.

What is the best way to manage Git worktrees for hotfixes and experiments?

Managing Git worktrees for hotfixes and experiments is handled by automating worktree creation with safety checks. The Skill validates ignore rules, optionally runs project setup commands, and performs test baseline checks to ensure a safe, isolated environment.

Can I use a global directory location for Git worktrees instead of project-local paths?

Yes, you can use global worktree locations instead of project-local paths. The Skill supports both configurations, automatically detecting project structure and applying the appropriate setup steps to enable safe, isolated branch management.

Does Git worktree automation verify ignore rules before creating a new branch?

Git worktree automation does verify ignore rules before creation. The Skill enforces safe setup by validating directory ignore configurations and running initial project setup commands only when needed to prevent accidental commits to the primary repository.

Why should I use isolated Git worktrees instead of just switching branches in my main workspace?

Isolated Git worktrees prevent accidental commits to the primary repository by maintaining a separate working directory for each branch. This allows safe, parallel feature development, hotfixes, and experiments without disrupting your main workspace state.