worktree

Create, list, merge, and clean up Git worktrees for parallel sessions.

49|12|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/DavidROliverBA/ArchitectKB --skill worktree-davidroliverba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/DavidROliverBA/ArchitectKB/tree/main/.claude/skills/worktree
Command: npx skills add https://github.com/DavidROliverBA/ArchitectKB --skill worktree-davidroliverba

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the management of Git worktrees, enabling parallel agent sessions and efficient subagent dispatch without interfering with the main codebase.

Core Features & Use Cases

  • Parallel Workspaces: Create isolated Git worktrees for concurrent tasks or agent sessions.
  • Streamlined Merging: Easily merge changes from worktrees back into the main branch and clean up.
  • Subagent Dispatch: Facilitates directing subagents to work within specific worktree environments.
  • Use Case: You need to simultaneously review two different feature branches. Create two worktrees, one for each feature, allowing separate agent sessions to work on them in parallel before merging.

Quick Start

Create a new git worktree for an architecture review task by running the command: /worktree create architecture-review

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 agent sessions?

You can manage git worktrees for parallel agent sessions by creating isolated workspaces, allowing concurrent tasks to operate without interfering with the main codebase.

What is the best way to run multiple git branches at the same time?

The best way to run multiple git branches simultaneously is to create separate git worktrees for each branch, enabling separate agent sessions to work in parallel before merging.

How do I create and clean up isolated git workspaces for subagent dispatch?

You create and clean up isolated git workspaces by running specific commands to generate worktrees for subagent dispatch, then merging changes back and cleaning up the directories.

Do I need specific slug rules for branch and directory naming in git worktrees?

Yes, you need specific slug rules for branch and directory naming because the worktree management operates on the vault root and requires strict naming conventions to function correctly.

How do I merge changes from a git worktree back into the main branch?

To merge changes from a git worktree back into the main branch, you use the streamlined merging feature which integrates changes and handles the cleanup of the isolated workspace.