create-worktrees

Automate git worktree creation and cleanup for open pull requests.

Updated Jun 12, 2026
One-click install
npx skills add https://github.com/Kushal9889/claude-plugins --skill create-worktrees-kushal9889
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-worktrees
Source: https://github.com/Kushal9889/claude-plugins/tree/main/tools/skills/awesome-claude-code/create-worktrees
Command: npx skills add https://github.com/Kushal9889/claude-plugins --skill create-worktrees-kushal9889

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation of git worktrees, allowing you to easily create and manage parallel development branches for a git repository.

Core Features & Use Cases

  • Worktree Creation: Automatically creates worktrees for each open pull request branch in a specified directory.
  • Cleanup Stale Worktrees: Optionally remove worktrees for branches that no longer exist.
  • Branch and Worktree Creation: Interactively create a new branch and a corresponding worktree.

Quick Start

To create worktrees for all open PRs, run the skill with the command 'create-worktrees create-all'.

Frequently Asked Questions about create-worktrees

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

FAQPage Schema
How do I automate git worktree creation for open pull requests?

To automate git worktree creation for open pull requests, run the create-worktrees command to automatically generate a worktree for each open PR branch in a specified directory. This skill uses git and GitHub CLI to manage repositories.

What is the best way to manage parallel development branches without switching context?

Using git worktrees is the best way to manage parallel development branches without switching context, as it allows you to have multiple branches checked out simultaneously in different directories. This skill automates that worktree setup.

Can I interactively create a new git branch and its worktree at the same time?

Yes, you can interactively create a new git branch and a corresponding worktree at the same time. This skill supports interactive branch and worktree creation to streamline your parallel development workflow setup.

Do I need GitHub CLI installed to manage git worktrees?

Yes, you need GitHub CLI installed to manage git worktrees with this skill. It requires both git and the GitHub CLI (gh) to manage repositories and handle operations like scanning open pull requests.

How do I clean up stale git worktrees for deleted branches?

To clean up stale git worktrees for deleted branches, you can use the optional cleanup feature provided by this skill. It automatically removes worktrees associated with branches that no longer exist in your repository.

Why should I use git worktrees for parallel development instead of standard branching?

You should use git worktrees for parallel development because they allow you to check out multiple branches into separate directories simultaneously, eliminating the need to stash changes or switch branches repeatedly. This skill automates that directory and branch setup.