using-git-worktrees

Create and manage isolated git worktrees for feature development.

6|3|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/alo-exp/silver-bullet --skill using-git-worktrees-alo-exp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/alo-exp/silver-bullet/tree/main/forge/skills/using-git-worktrees
Command: npx skills add https://github.com/alo-exp/silver-bullet --skill using-git-worktrees-alo-exp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Isolate feature work by creating and managing Git worktrees so you can develop on new branches without altering the main workspace, with safety checks to prevent accidental commits of worktree contents.

Core Features & Use Cases

  • Safe directory selection and ignore verification to prevent polluting the main repository.
  • Automatic project setup and baseline verification after creating a worktree (detects package managers and builds).
  • Use Case: run parallel feature development across multiple worktrees while preserving a clean main branch.

Quick Start

Set up an isolated git worktree for a new feature branch, ensuring proper ignore rules and safe directory selection.

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 a git worktree for feature development without altering my current workspace?

To create a git worktree, you set up an isolated directory for a new feature branch, allowing you to develop safely without modifying the main workspace. The workflow includes project-name detection, worktree setup, optional dependency installation, and baseline verification.

What is the best way to manage multiple git branches in parallel without stashing changes?

Managing multiple git branches in parallel is best achieved by using isolated git worktrees. This allows you to run parallel feature development across multiple directories while preserving a clean main branch without needing to stash changes.

Does git worktree ignore verification prevent accidentally committing worktree directories?

Yes, git worktree creation enforces safe directory selection and ignore verification to prevent polluting the main repository. These safety checks ensure you do not accidentally commit worktree contents to your primary branch.

Can I use project-local or global locations for git worktree isolation?

You can use both project-local and global locations for git worktree isolation. The workflow applies safety guards to discover existing worktree directories and reads CLAUDE.md preferences if present to determine the optimal setup location.

How does git worktree setup handle dependency installation and build verification?

Git worktree setup automatically detects package managers to perform optional dependency installation after creating the worktree. It then runs baseline verification to ensure the new feature branch environment is correctly built and ready for development.

When should I not use git worktrees for isolated feature branches?

You should avoid using git worktrees if your project lacks proper ignore rules, as safe directory selection relies on ignore verification to prevent polluting the repository. Without these safety guards, worktree contents risk accidental commits.