agent-worktree

Manage Git worktree workflows for parallel development and isolated task execution.

6|1|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/czyt/claude-skills --skill agent-worktree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-worktree
Source: https://github.com/czyt/claude-skills/tree/main/skills/agent-worktree
Command: npx skills add https://github.com/czyt/claude-skills --skill agent-worktree

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agent-worktree, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the management of Git worktrees, providing isolated development environments crucial for AI coding agents working on parallel tasks or complex workflows.

Core Features & Use Cases

  • Isolated Environments: Create and manage separate working directories for different branches or tasks using Git worktrees.
  • Snap Mode Workflow: Automates the create-worktree, run-agent, review, merge, and cleanup cycle for agent tasks.
  • Use Case: An AI agent needs to fix a bug on a new feature branch while keeping the main development line clean. This Skill can create an isolated worktree for the bug fix, allow the agent to work, and then merge the changes back seamlessly.

Quick Start

Use the agent-worktree skill to create a new worktree for the 'feature-x' branch and run the 'claude' agent within it.

Frequently Asked Questions about agent-worktree

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

FAQPage Schema
How do I manage Git worktrees for parallel AI agent development?

Managing Git worktrees for parallel AI agent development involves creating isolated working directories so agents can execute tasks on separate branches without affecting the main development line. This Skill automates that creation, switching, and cleanup process.

What is Git worktree snap mode for automated agent task cycles?

Git worktree snap mode automates the full agent task cycle by creating a worktree, running the agent, reviewing changes, merging the branch, and cleaning up the environment seamlessly. This workflow ensures isolated task execution and efficient branch management.

How do I isolate AI coding agent tasks from my main development branch?

Isolating AI coding agent tasks requires creating a separate Git worktree for the specific task branch. This Skill allows an agent to work within that isolated directory and then merges the changes back to the main line once the task is complete.

Can I automate branch merging and conflict resolution for AI agents?

Automating branch merging and conflict resolution for AI agents is supported through integration with Git. The Skill streamlines branch management by handling the merge process from the isolated worktree back to the main development line after task completion.

Does this Git worktree automation support switching between multiple agent tasks?

Switching between multiple agent tasks is supported by managing separate Git worktrees for different branches. The Skill handles creating and switching worktrees, enabling parallel development and isolated task execution without manual directory management.

When should I use Git worktrees instead of standard branching for AI workflows?

Git worktrees should be used instead of standard branching when AI agents need isolated working directories for parallel development. This approach keeps the main development line clean while allowing agents to run tasks and merge changes independently.