git-worktree

Create, switch, and clean Git worktrees with automated environment handling.

Updated Sep 16, 2025
One-click install
npx skills add https://github.com/mukles/platejs-markdown-converter --skill git-worktree-mukles
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/mukles/platejs-markdown-converter/tree/main/.agents/skills/git-worktree
Command: npx skills add https://github.com/mukles/platejs-markdown-converter --skill git-worktree-mukles

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, mise, direnv, and includes scripts (resource) components.

What problem does it solve?

Eliminates friction in creating, switching, and cleaning Git worktrees by providing a single manager script.

Core Features & Use Cases

  • Create worktrees from main branch with predictable naming and automatic environment handling
  • List, switch between, and clean up worktrees with interactive confirmations
  • Automatic .gitignore management and safe dev-tool trust prompts (mise/direnv) across worktrees
  • Use in code reviews or parallel feature development while preserving isolation

Quick Start

Create a new worktree for a feature branch using the worktree-manager script.

Frequently Asked Questions about git-worktree

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

FAQPage Schema
How do I manage Git worktrees for parallel feature development without manual setup?▼

You can manage Git worktrees for parallel development by using a unified script that automates creation, switching, and cleanup with predictable naming and automatic environment handling.

Does this Git worktree manager support environment copy and dev-tool trust for mise and direnv?▼

Yes, this Git worktree manager supports environment-copy behavior and optional trust integration with Mise and Direnv, automatically handling dev-tool trust prompts and .gitignore management across worktrees.

What is the best way to clean up and switch between multiple Git worktrees safely?▼

The best way to clean up and switch between Git worktrees safely is using a manager script that provides interactive confirmations and safety checks before removing or changing active worktrees.

How do I create a new Git worktree from the main branch with automatic environment handling?▼

To create a Git worktree from the main branch, run the worktree-manager script which handles predictable branch naming and automatically configures the environment for the new working directory.

Can I use Git worktrees for code review workflows while preserving branch isolation?▼

Yes, you can use Git worktrees for code review workflows because they preserve isolation, allowing you to review branches in separate directories without disrupting your current feature development environment.