worktree

Create isolated Git worktrees for new development tasks.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/rarebit-one/ground-control-api --skill worktree-rarebit-one
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/rarebit-one/ground-control-api/tree/main/.claude/skills/worktree
Command: npx skills add https://github.com/rarebit-one/ground-control-api --skill worktree-rarebit-one

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures you start new development tasks in a clean, isolated environment, preventing accidental commits to the wrong branch and preserving your existing work.

Core Features & Use Cases

  • Automatic Worktree Creation: Detects uncommitted changes and automatically sets up a new Git worktree to isolate your work.
  • Branch Isolation: Ensures new work is based on the latest default branch, preventing merge conflicts.
  • Use Case: Before starting a new feature, you can run this skill to automatically create a fresh worktree, ensuring your current branch remains untouched and your new work is isolated and up-to-date.

Quick Start

Run /worktree to set up a clean Git worktree for your current task.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I isolate uncommitted Git changes into a separate worktree?

To isolate uncommitted changes, the Skill detects them and automatically provisions a new worktree in the `.worktrees/` directory, preserving your current branch while setting up a clean environment.

How do I create a Git worktree based on the latest default branch?

Creating a Git worktree based on the latest default branch is handled automatically; the Skill always fetches the latest default branch state before creation, ensuring your new development tasks start up-to-date.

What is a Git worktree used for in a development workflow?

A Git worktree is used to isolate new development tasks in a clean environment, preventing accidental commits to the wrong branch and preserving existing work without interrupting your current workflow.

Can I specify a custom name when creating a new Git worktree?

Yes, you can specify a custom name when creating a Git worktree. The Skill supports named worktrees and also provides automatic naming based on context to organize your isolated development environments.

Does Git worktree isolation prevent merge conflicts when starting new features?

Yes, Git worktree isolation prevents merge conflicts by ensuring new work is based on the latest default branch. The Skill fetches updates before creating the worktree, keeping your new feature up-to-date.