worktree

Create isolated Git worktrees with safety checks and directory selection.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/atmigtnca/sidep-ops --skill worktree-atmigtnca
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/atmigtnca/sidep-ops/tree/main/skills/worktree
Command: npx skills add https://github.com/atmigtnca/sidep-ops --skill worktree-atmigtnca

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use when starting feature work that needs isolation from the current workspace or before implementing plans; this skill creates and manages Git worktrees with smart directory selection and safety verification to prevent accidental commits to the main branch.

Core Features & Use Cases

  • Directory selection with a priority flow: reuse existing worktrees when present, respect CLAUDE.md preferences, or prompt the user for a location.
  • Safety verification: ensure project-local worktrees are ignored by gitignore to avoid committing worktree contents.
  • Creation and setup: detect the project name, create the appropriate worktree, auto-run basic project setup when a supported tool is detected, and verify a clean baseline before starting work.
  • Use cases include parallel feature development on multiple branches and safe experimentation without touching the main workspace.

Quick Start

Create a new isolated worktree for your feature branch using the preferred local or global location and start development.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I create an isolated Git worktree for feature development?

Creating an isolated Git worktree involves directory discovery, respecting CLAUDE.md preferences, branch creation, and verifying a clean baseline before you start your feature work.

How does Git worktree directory selection work when starting new feature work?

Directory selection for Git worktrees prioritizes reusing existing worktrees, then checks CLAUDE.md preferences, and finally prompts you to choose between project-local and global directories.

Why do I need gitignore verification for project-local Git worktrees?

You need gitignore verification for project-local Git worktrees to prevent accidental commits, ensuring the worktree directory is safely ignored by Git before starting feature work.

Can I use Git worktrees for parallel feature development on multiple branches?

Using Git worktrees for parallel feature development allows you to isolate work across multiple branches safely, enabling experimentation without affecting the main workspace.

Does setting up Git worktrees require manual project configuration?

Setting up Git worktrees requires no manual project configuration because the skill auto-runs basic project setup commands upon detecting a supported tool in your environment.

What is the best way to prevent accidental commits to the main branch during feature work?

Preventing accidental commits to the main branch is best achieved by using isolated Git worktrees with safety checks, ensuring your feature work is separated from the main workspace.