git-worktree-create

Create an isolated git worktree with a dedicated branch and base metadata.

1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/takuto277/levelup-study --skill git-worktree-create
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree-create
Source: https://github.com/takuto277/levelup-study/tree/main/.cursor/skills/git-worktree-create
Command: npx skills add https://github.com/takuto277/levelup-study --skill git-worktree-create

SYSTEM DOCUMENTATION & REQUIREMENTS

## What problem does it solve? Creates an isolated git worktree and dedicated branch workspace to enable parallel coding tasks without altering the current checkout.

## Core Features & Use Cases

  • Isolated base-branch resolution and branch naming for clean handoffs.
  • Collision checks and safe workspace provisioning to support multiple agents in the same repository.
  • Clear handoff metadata (Worktree, Branch, Base) guiding subsequent steps.
  • Reuses existing branches/worktrees when safe and appropriate to minimize overhead.

### Quick Start Create a new isolated git worktree below the current repository using the standard naming rules and base-branch resolution.

Frequently Asked Questions about git-worktree-create

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

FAQPage Schema
How do I create an isolated git workspace for parallel coding tasks?

Git worktrees provide isolated branch workspaces within the same repository, enabling parallel coding tasks without altering the current checkout. They allow multiple agents to collaborate safely by maintaining separate working directories.

How do I manage multiple git branches without switching the current work tree?

Git worktree add provisions a dedicated branch workspace without switching the current checkout, resolving the base branch from origin/HEAD with fallbacks to origin/main, origin/master, or origin/develop. This enforces no-switch of the current work tree while ensuring safe handoffs.

Can multiple agents collaborate in the same git repository using worktrees?

Yes, multiple agents can collaborate in the same repository using worktrees, which provide collision checks and safe workspace provisioning. This ensures safe handoffs between parallel tasks while maintaining isolated branch workspaces.

What is the best way to resolve base branches when adding a git worktree?

Base-branch resolution for git worktrees checks origin/HEAD with fallbacks to origin/main, origin/master, and origin/develop. This standardized resolution ensures accurate base identification for creating dedicated branch workspaces.

How do I avoid branch naming collisions when creating parallel workspaces?

Standardized branch naming and path rules with collision checks prevent naming conflicts when creating parallel workspaces. The system reuses existing branches and worktrees when safe, minimizing overhead while ensuring safe workspace provisioning.

What metadata is produced when adding a git worktree for task isolation?

Creating a git worktree produces clear handoff metadata including Worktree, Branch, and Base information. This metadata guides subsequent steps and ensures clean handoffs between multiple agents collaborating in the same repository.