worktree

Manage git worktrees through creation, development, testing, review, deployment, and completion phases.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/mgerasolo/nlf-shepard --skill worktree-mgerasolo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/mgerasolo/nlf-shepard/tree/main/rollouts-active/Worktree/skeleton_files/.claude-code/skills/worktree
Command: npx skills add https://github.com/mgerasolo/nlf-shepard --skill worktree-mgerasolo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines parallel development by managing isolated git worktrees, preventing context switching issues and ensuring organized workflows.

Core Features & Use Cases

  • Isolated Development: Create separate worktrees for each task or feature, keeping your main branch clean.
  • Workflow Lifecycle Management: Progress through distinct phases (created, developing, testing, review, deploying, verification, completed) with clear commands.
  • Use Case: When working on a new feature, you can create a dedicated worktree, develop and test your changes there, and then easily create a pull request without affecting your main development branch.

Quick Start

Create a new worktree for a feature described as "implement user authentication".

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I manage git worktrees for parallel development without constant branch switching?

Git worktrees enable managing isolated working directories for each feature, preventing context switching issues. You can structure the lifecycle from creation through testing and deployment, keeping your main branch clean while developing tasks in parallel.

What is the best way to structure a git worktree lifecycle from feature creation to deployment?

A structured git worktree lifecycle progresses through distinct phases: created, developing, testing, review, deploying, verification, and completed. This organized workflow ensures clear command execution for each stage until the parallel task is finished.

Can I create a dedicated git worktree for hotfixes and quick fixes?

Yes, dedicated git worktrees support both hotfix and quick fix modes. These modes allow you to rapidly address critical issues in isolated environments without affecting your main development branch or ongoing feature workflows.

How do I list, sync, and diff changes across multiple git worktrees?

You can manage multiple git worktrees using dedicated commands for listing active worktrees, syncing changes across branches, and diffing modifications. This ensures isolated development environments remain updated and consistent.

Does this worktree workflow integrate with context management tools for code review?

Yes, the worktree workflow integrates with baton for context management. This integration helps maintain development context and manage blockers effectively across the structured lifecycle phases including review and verification.