create-worktree

Create a Git worktree for a branch and copy environment configuration files.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Async-IO/pierre_mcp_server --skill create-worktree-async-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-worktree
Source: https://github.com/Async-IO/pierre_mcp_server/tree/main/.claude/skills/create-worktree
Command: npx skills add https://github.com/Async-IO/pierre_mcp_server --skill create-worktree-async-io

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of setting up new development environments by automating the creation of Git worktrees and ensuring necessary environment configurations are copied over.

Core Features & Use Cases

  • Automated Worktree Creation: Quickly set up isolated development environments for new features or bug fixes.
  • Environment File Copying: Automatically copies .envrc and .mcp.json to the new worktree.
  • Direnv Integration: Ensures the new environment is properly activated with direnv allow.
  • Use Case: When starting a new feature, you can use this skill to create a dedicated worktree and branch, ensuring your development environment is ready to go without manual setup.

Quick Start

Use the create-worktree skill to set up a new worktree for the branch named feature/user-profile.

Frequently Asked Questions about create-worktree

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

FAQPage Schema
How do I create a git worktree with an isolated development environment?

To create a git worktree, this skill automates the setup by creating a new worktree for a specified branch, copying essential environment files like .envrc, and running direnv allow to activate the isolated development environment.

What is the best way to set up isolated feature branch environments without manual configuration?

Setting up isolated environments is best handled by creating a git worktree for your feature branch and automatically copying .envrc and .mcp.json files, which ensures the development configuration is ready immediately without manual setup.

Do I need direnv installed to use automated worktree creation?

Yes, you need direnv installed and configured, along with Git, because the worktree creation process relies on direnv to activate the environment and copy configuration files like .envrc into the new worktree.

Can I copy .mcp.json files when creating a new git worktree?

Yes, you can copy .mcp.json files because the automated worktree creation process explicitly copies both .mcp.json and .envrc files from your existing project into the new isolated worktree directory.

Why use git worktrees for bug fixes instead of switching branches in a single directory?

Git worktrees provide isolated directories for bug fixes, allowing you to maintain a dedicated environment per branch. This avoids switching contexts manually and keeps your feature development environment separate from your bug fix environment.

What limitations should I expect when setting up worktrees with direnv?

The setup requires both Git and direnv to be pre-installed and configured on your system. It only copies .envrc and .mcp.json files, so other custom environment configurations will need to be handled manually.