using-git-worktrees

Create isolated Git worktrees and bootstrap project environments automatically.

3|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/mor-duongmh/morkit-plugin --skill using-git-worktrees-mor-duongmh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-git-worktrees
Source: https://github.com/mor-duongmh/morkit-plugin/tree/main/plugins/morkit/skills/using-git-worktrees
Command: npx skills add https://github.com/mor-duongmh/morkit-plugin --skill using-git-worktrees-mor-duongmh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Starting feature work in isolation to avoid disrupting the current workspace and to prepare clean baselines for implementation plans.

Core Features & Use Cases

  • Smart directory selection and safety verification for safe worktree creation
  • Support for both local (.worktrees or worktrees) and global worktree locations
  • Automatic project bootstrap based on common project files (package.json, Cargo.toml, requirements.txt, go.mod) and test baseline verification

Quick Start

Create a new isolated worktree for your feature branch and bootstrap the project setup.

Frequently Asked Questions about using-git-worktrees

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

FAQPage Schema
How do I create an isolated git worktree for feature development without disrupting my main workspace?

To create an isolated git worktree, you can automate selecting a local or global directory, validating ignore rules, and bootstrapping the project setup. This safely prototypes features without contaminating your main workspace.

Can I automatically bootstrap project dependencies when creating a git worktree?

Yes, automatic project bootstrap is supported based on detecting common project files like package.json, Cargo.toml, requirements.txt, or go.mod, ensuring a clean baseline and verifying test environments after worktree creation.

Does git worktree automation work with Rust and Python projects?

Yes, the worktree automation detects project files like Cargo.toml and requirements.txt to bootstrap the environment. It also supports package.json and go.mod for Node.js and Go projects.

What is the best way to manage multiple git branches across different projects simultaneously?

Automated git worktrees manage multi-branch development by selecting local or global worktree locations, auto-detecting setup steps, and validating ignore rules to ensure a clean baseline across projects.

Why do I need to validate ignore rules before creating a git worktree?

Validating ignore rules during git worktree creation ensures a clean baseline by preventing ignored files from contaminating the isolated workspace, which safeguards the prototype environment from unwanted artifacts.