using-git-worktrees

Create isolated git worktrees with safety checks and automated test runs.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Michae2xl/claude-skills-michael --skill using-git-worktrees-michae2xl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/Michae2xl/claude-skills-michael/tree/main/skills/using-git-worktrees
Command: npx skills add https://github.com/Michae2xl/claude-skills-michael --skill using-git-worktrees-michae2xl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill sets up isolated git worktrees for feature development, ensuring clean environments and preventing workspace pollution.

Core Features & Use Cases

  • Isolated Workspaces: Creates isolated git worktrees sharing the same repository, allowing parallel branch development.
  • Smart Directory Selection: Automatically selects or prompts for a directory based on project preferences and availability.
  • Safety Verification: Verifies directories are ignored before creating worktrees to prevent unintended commits.
  • Automatic Setup: Automatically runs necessary setup scripts for Node.js, Rust, Python, and Go projects.
  • Quick Start: Quickly create a worktree and run tests, all in one command.

Quick Start

Set up an isolated workspace for the 'feature/auth' branch with tests: using-git-worktrees --branch feature/auth.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I set up isolated git worktrees for parallel feature development?

Git worktrees provide isolated workspaces sharing the same repository for parallel branch development. This prevents workspace pollution by keeping feature branches in separate directories while maintaining a single repository connection.

How do I configure git worktrees for Node.js, Rust, Python, and Go projects?

Configuring git worktrees for Node.js, Rust, Python, and Go projects is handled automatically. The setup process detects the project type and runs the necessary setup scripts to ensure the isolated environment is ready for development.

Can I automatically run tests after creating a git worktree?

Yes, tests can run automatically after creating a git worktree. The quick start command creates the isolated workspace and executes test runs immediately, ensuring the new environment is properly configured before development begins.

How do I prevent unintended commits when creating worktrees in my repository?

To prevent unintended commits when creating worktrees, safety verification checks are performed to ensure the target directories are ignored. This systematic process guarantees worktree directories do not pollute the repository status.

What is the best way to manage multiple feature branches without workspace pollution?

The best way to manage multiple feature branches without workspace pollution is using isolated git worktrees. This approach shares the same repository while providing separate directories, keeping clean environments for each parallel branch.