worktree

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

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/ghpworkuse-web/train --skill worktree-ghpworkuse-web
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/ghpworkuse-web/train/tree/main/AutoGPT/.claude/skills/worktree
Command: npx skills add https://github.com/ghpworkuse-web/train --skill worktree-ghpworkuse-web

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Worktree Skill helps teams set up isolated git worktrees to develop features in parallel without disrupting main branches.

Core Features & Use Cases

  • Derive worktree paths from the git root and automatically assign a unique name or reuse the next available AutoGPT<N>.
  • Copy shared environment files into the new worktree, install dependencies, and optionally generate environment-specific artifacts.
  • Use cases include starting a new feature branch, testing changes in isolation, or maintaining separate environments for parallel development.

Quick Start

Provide an optional name to create and configure a new isolated worktree for a branch.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I create an isolated git worktree for parallel feature development?

To create an isolated git worktree, the Skill derives a path from your git root, assigns a unique name, copies shared environment files, and installs dependencies. This enables parallel feature development without disrupting your main branch.

What is the best way to test git changes in isolation across multiple projects?

Testing git changes in isolation is achieved by creating a dedicated worktree for your branch. The Skill automatically configures the separate environment, copies necessary files, and installs dependencies so you can safely test changes across multiple projects.

How do I set up a new git worktree environment with existing dependencies?

Setting up a new git worktree environment involves copying shared environment files into the new directory and running dependency installation. The Skill coordinates this configuration automatically when generating the isolated worktree path.

Can I reuse an existing environment configuration when creating a git worktree?

Yes, you can reuse environment configurations when creating a git worktree. The Skill copies shared environment files into the new isolated worktree directory, ensuring the new branch has access to the same dependencies and configurations.

How do I clean up isolated git worktrees after finishing a feature branch?

To clean up isolated git worktrees after finishing a feature branch, the Skill can run cleanup operations to remove the generated directories. This ensures your local repository remains organized after parallel development or PR preparation is complete.