create-worktree

Create Git worktrees and install Python or Node.js dependencies.

3|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/giladresisi/ai-dev-env --skill create-worktree-giladresisi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-worktree
Source: https://github.com/giladresisi/ai-dev-env/tree/main/skills/create-worktree
Command: npx skills add https://github.com/giladresisi/ai-dev-env --skill create-worktree-giladresisi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of creating isolated development environments using Git worktrees, ensuring clean feature branches and automatic setup of project dependencies.

Core Features & Use Cases

  • Git Worktree Creation: Creates a new Git worktree for a specified branch, keeping your main repository clean.
  • Environment Setup: Automatically copies .env files and installs necessary Python and npm dependencies within the new worktree.
  • Use Case: When starting a new feature, use this Skill to quickly set up a dedicated worktree, complete with all required environment variables and dependencies, allowing you to focus on coding without manual setup.

Quick Start

Use the create-worktree skill to set up a new worktree for the 'new-feature' branch based on the 'main' branch.

Frequently Asked Questions about create-worktree

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

FAQPage Schema
How do I set up a git worktree for a new feature branch?

Git worktree creation isolates feature development by checking out a specified branch in a separate directory, keeping your main repository clean while automatically copying environment files and installing dependencies for immediate productivity.

How does git worktree dependency management work for Python and Node.js?

Git worktree dependency management works by automatically running package installers within the new worktree directory. The Skill supports Python environments using uv or pip, and Node.js environments using npm, ensuring all project dependencies are configured for parallel feature isolation.

Can I use create-worktree to copy .env files into isolated development environments?

Yes, you can use this Skill to copy .env files into isolated development environments. It automatically transfers your existing environment variables into the new git worktree, ensuring the isolated feature branch has the necessary configuration without manual file copying.

Does git worktree feature isolation support both npm and Python package management across different operating systems?

Yes, git worktree feature isolation supports both npm and Python package management, including uv and pip, across different operating systems. This ensures reproducible development environments regardless of your platform when creating parallel feature branches.

What is the best way to isolate features with git worktrees while keeping my main repository clean?

The best way to isolate features with git worktrees is automating the environment setup process. This Skill creates the worktree, copies your .env files, and installs Python and npm dependencies, yielding a reproducible development environment that keeps the main repository untouched.