worktree

Create isolated git worktrees for feature development before branching.

6|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/rtfpessoa/code-factory --skill worktree-rtfpessoa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/rtfpessoa/code-factory/tree/main/git/skills/worktree
Command: npx skills add https://github.com/rtfpessoa/code-factory --skill worktree-rtfpessoa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows you to start new feature development in an isolated directory, preventing interference with your main codebase until the feature is ready.

Core Features & Use Cases

  • Isolated Development: Create a clean, separate environment for each new feature.
  • Pre-Branching Workflow: Set up your workspace before creating a formal Git branch.
  • Use Case: Before starting work on a complex user authentication module, use this Skill to create an isolated worktree so your main branch remains clean and stable.

Quick Start

Use the worktree skill to create an isolated workspace for feature development.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I isolate feature development from my main codebase before branching?

Git worktree isolation creates a separate directory for new feature development before formal branching, preventing interference with your main codebase until the feature is ready to merge.

What is the difference between a git worktree and a regular branch?

A git worktree provides an isolated directory path for development, whereas a regular branch switches your current working directory. Worktrees allow simultaneous access to multiple branches without switching contexts.

Can I specify a custom name for my isolated git worktree path?

Yes, the git worktree skill supports user-defined slugs for naming worktrees. It manages worktree location, base branch determination, and offers options for handling pre-existing worktree paths.

What happens if I already have numerous git worktrees created?

The worktree skill provides warnings for numerous existing worktrees. It identifies pre-existing worktree paths and offers options for handling them during new worktree creation.

Does git worktree isolation require any additional dependencies?

No additional dependencies are required. The worktree skill operates independently to create isolated development environments using native git worktree functionality for feature isolation.

How do I set up an isolated git worktree for feature development step by step?

Use the worktree skill to determine your base branch, define a slug for the worktree name, specify the location, and create the isolated workspace prior to branching for feature development.