using-git-worktrees

Create isolated git worktrees for parallel feature development.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/BryceRoberts13/superpowers-for-antigravity --skill using-git-worktrees-bryceroberts13
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/BryceRoberts13/superpowers-for-antigravity/tree/main/skills/using-git-worktrees
Command: npx skills add https://github.com/BryceRoberts13/superpowers-for-antigravity --skill using-git-worktrees-bryceroberts13

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Isolates feature work by creating dedicated git worktrees so development can proceed without modifying the current workspace or risking the main branch.

Core Features & Use Cases

  • Creates project-local or global git worktrees with automatic branch linkage and safe baseline checks.
  • Enforces directory ignore safety by validating project-specific .gitignore rules before creating a worktree.
  • Guides with a deterministic workflow from project discovery to clean baselines for parallel feature development.

Quick Start

Create an isolated git worktree for the feature branch and verify ignore rules.

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

To create an isolated git worktree, use a workflow that validates directory priority checks and .gitignore rules, then links a new feature branch to a dedicated working directory without modifying your main workspace.

What is a git worktree and when do I need one for branch management?

A git worktree is an isolated directory linked to a specific branch, allowing parallel feature development. You need one when experimenting on separate branches without risking the state of your main working directory.

Does git worktree creation verify .gitignore rules before setting up the branch?

Yes, safe git worktree creation enforces directory ignore safety by validating project-specific .gitignore rules before creating the worktree, ensuring isolated feature branches do not accidentally track unwanted files.

Can I use git worktrees for parallel work in the same repository?

Yes, you can use git worktrees to enable parallel work in the same repository. This approach creates clean baselines for separate branches, allowing simultaneous feature development without affecting the main working directory.

What's the best way to manage multiple feature branches without affecting the main workspace?

The best way to manage multiple feature branches is creating project-local or global git worktrees with automatic branch linkage. This deterministic workflow isolates development and provides safe baselines for parallel feature work.

Does setting up a git worktree include project setup detection for common languages?

Yes, setting up a git worktree includes optional project setup detection for common languages, allowing you to immediately start feature development in the isolated directory with the appropriate environment configurations.