git-worktree-workflow

Automates Git worktree lifecycle management for isolated feature development and safe cleanup.

1|Updated Sep 12, 2025
One-click install
npx skills add https://github.com/JimmyTranDev/dotfiles --skill git-worktree-workflow-jimmytrandev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree-workflow
Source: https://github.com/JimmyTranDev/dotfiles/tree/main/src/opencode/skills/git-worktree-workflow
Command: npx skills add https://github.com/JimmyTranDev/dotfiles --skill git-worktree-workflow-jimmytrandev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Orchestrates and safeguards Git worktrees to let developers work on feature branches in isolation without polluting the main repository, simplifying multi-branch development and cleanup.

Core Features & Use Cases

  • Create new worktrees for feature branches using git worktree add to run isolated experiments
  • Work in isolated directories, commit, rebase, and synchronize with the main repo
  • Clean up abandoned or merged worktrees with safety checks and confirmations

Quick Start

Create a new worktree for a feature branch and begin working in isolation.

Frequently Asked Questions about git-worktree-workflow

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

FAQPage Schema
How do I automate Git worktree lifecycle management for isolated feature development?

Git worktree lifecycle management is automated by orchestrating creation, switching, rebasing, and pruning of isolated workspaces. This enforces lifecycle consistency across multiple branches while preventing workspace pollution in the main repository.

What's the safest way to clean up abandoned or merged Git worktrees?

Cleaning up abandoned Git worktrees is handled safely through predefined scripts with built-in safety checks and confirmations. These checks explicitly guard against deleting active worktrees and help recover from common cleanup failures.

How does using Git worktrees improve multi-branch development workflows?

Git worktrees improve multi-branch development by allowing developers to work on feature branches in completely isolated directories. This prevents context switching delays and avoids polluting the main repository with uncommitted experimental changes.

Can I rebase and synchronize feature branches within isolated Git worktrees?

Yes, you can commit, rebase, and synchronize feature branches directly within isolated Git worktree directories. This ensures changes remain fully synchronized with the main repo while maintaining strict workspace isolation.

What happens if I try to delete an active Git worktree during cleanup?

Deleting an active Git worktree is blocked by integrated safety checks that enforce lifecycle consistency. The workflow includes confirmations and predefined scripts designed to guard against accidental deletion and recover from common failures.