Worktree Lifecycle Management

Automate git worktree creation, reuse, and cleanup for issue-based projects.

Updated May 10, 2026
One-click install
npx skills add https://github.com/AshleyHollis/agentic-identity-lab --skill worktree-lifecycle-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Worktree Lifecycle Management
Source: https://github.com/AshleyHollis/agentic-identity-lab/tree/main/.copilot/skills/worktree-lifecycle
Command: npx skills add https://github.com/AshleyHollis/agentic-identity-lab --skill worktree-lifecycle-management

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manages creation, reuse, and cleanup of git worktrees, enhancing workflow efficiency when worktree mode is active.

Core Features & Use Cases

  • Creating Worktrees: Establishes a dedicated git worktree for each issue, simplifying tracking and collaboration.
  • Reusing Worktrees: Utilizes existing worktrees for shared issues to avoid redundancy and reduce setup time.
  • Cleanup: Automates the removal of worktrees once issues are resolved, maintaining a clean repository structure.
  • Use Case: When coordinating issue-based work on a large project with multiple agents, use this Skill to ensure a consistent, organized approach to handling worktree setup and teardown.

Quick Start

Use the 'worktree-lifecycle' skill to manage worktrees for issue #42 in the 'squad' repository.

Frequently Asked Questions about Worktree Lifecycle Management

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

FAQPage Schema
How do I automate git worktree creation for issue tracking?

Automating git worktree creation for issue tracking involves establishing a dedicated worktree for each issue to simplify branch organization and tracking. This Skill manages worktree paths and links dependencies automatically to support parallel development.

What is the best way to clean up git worktrees after resolving an issue?

The best way to clean up git worktrees after resolving an issue is to automate their removal. This ensures proper cleanup of worktree paths, maintaining a clean repository structure without manual intervention.

How does git worktree reuse work for shared issues?

Git worktree reuse for shared issues works by utilizing existing worktrees to avoid redundancy and reduce setup time. This allows multiple agents to coordinate issue-based work efficiently without creating duplicate paths.

Can I use this worktree lifecycle management for parallel development across multiple agents?

Yes, you can use this worktree lifecycle management for parallel development across multiple agents. It ensures a consistent, organized approach to handling worktree setup and teardown on large projects with enabled worktree mode.

Do I need enabled worktree mode to manage git worktrees for issue-based work?

Yes, you need enabled worktree mode in your git repositories to manage issue-based work effectively. This Skill is specifically designed to operate within projects where worktree mode is already active.