create-worktree

Create an isolated git worktree for a branch and install dependencies.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/fairy-pitta/claude-dotfiles --skill create-worktree-fairy-pitta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-worktree
Source: https://github.com/fairy-pitta/claude-dotfiles/tree/main/skills/create-worktree
Command: npx skills add https://github.com/fairy-pitta/claude-dotfiles --skill create-worktree-fairy-pitta

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows you to create isolated work environments for specific branches, preventing conflicts and simplifying parallel development.

Core Features & Use Cases

  • Branch Isolation: Creates a separate directory for a git branch, keeping your main working directory clean.
  • Dependency Management: Automatically installs project dependencies within the new worktree.
  • Use Case: You need to work on a new feature branch while keeping your main branch stable. This skill helps you set up a dedicated workspace for the feature branch quickly.

Quick Start

Use the create-worktree skill to create a worktree for the branch named 'feature/new-login'.

Frequently Asked Questions about create-worktree

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

FAQPage Schema
What is a git worktree and when do I need isolated worktrees for parallel development?

A git worktree creates an isolated directory for a specific branch, needed when running parallel development without interference. It keeps your main working directory clean while fetching the latest remote state and setting up a dedicated workspace.

How do I create a git worktree for a new feature branch?

To create a git worktree, specify a branch name like 'feature/new-login' to generate a separate directory. This fetches the latest remote state and sets up the environment, preventing conflicts and simplifying your parallel development workflow.

Can I automatically install project dependencies when setting up a git worktree?

Yes, automated dependency management installs project dependencies within the new git worktree. When you create the isolated environment for a specific branch, the setup process handles dependency installation automatically for that dedicated workspace.

What is the best way to work on a new feature branch while keeping my main branch stable?

Using a git worktree is the best way to work on a feature branch while keeping your main branch stable. It creates a separate directory for the feature branch, isolating the environment and preventing conflicts in your main working directory.

Does creating a git worktree fetch the latest remote state automatically?

Yes, creating a git worktree fetches the latest remote state automatically. This ensures the isolated directory for your specified branch reflects the most current upstream changes before you begin your parallel development work.