create-worktree

Create and manage isolated Git worktrees for pull request checkouts.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/Thanhhuong0209/DLT-Normalization --skill create-worktree-thanhhuong0209
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-worktree
Source: https://github.com/Thanhhuong0209/DLT-Normalization/tree/main/.claude/skills/create-worktree
Command: npx skills add https://github.com/Thanhhuong0209/DLT-Normalization --skill create-worktree-thanhhuong0209

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you manage your development workflow by creating isolated environments for working on specific pull requests or branches, preventing conflicts and keeping your main codebase clean.

Core Features & Use Cases

  • Isolated Development: Create separate worktrees for different tasks.
  • PR Integration: Easily check out and manage GitHub pull requests within their own worktrees.
  • Branch Management: Set up worktrees for specific branches for focused development.
  • Use Case: When reviewing a colleague's pull request, you can create a dedicated worktree to checkout and test the changes without affecting your current work.

Quick Start

Create a git worktree named 'feature-x' for the current branch.

Frequently Asked Questions about create-worktree

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

FAQPage Schema
How do I checkout a GitHub pull request in an isolated environment?

To checkout a GitHub pull request in an isolated environment, you can create a dedicated git worktree. This sets up a separate directory to test changes without affecting your current working branch.

What is the best way to isolate feature branches for code review?

Isolating feature branches for code review is best achieved by using git worktrees. This approach creates separate directories for each task, preventing conflicts and keeping your main codebase entirely clean.

How do I create a git worktree for a specific development task?

You create a git worktree for a development task by automating the setup of a new worktree directory. This handles branch switching and ensures a clean, separate environment for focused feature development.

Do I need the GitHub CLI to manage worktrees for pull requests?

Yes, you need the GitHub CLI (gh) installed to manage pull requests within worktrees. It provides the necessary integration to easily check out and manage GitHub pull requests in isolated directories.

Why use a git worktree instead of stashing changes to switch branches?

Use a git worktree instead of stashing changes to maintain a clean main codebase while working on multiple branches simultaneously. Worktrees provide isolated directories for separate tasks, preventing conflicts during development.

Can I set up a worktree for the current branch without causing repository conflicts?

Yes, you can set up a worktree for the current branch without conflicts. The process automates directory setup and branch switching, ensuring your main repository remains unaffected by isolated feature work.