git-worktree

Enforce Git worktree naming, numbering, deletion, and permission conventions.

4|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/ghbvf/gocell --skill git-worktree-ghbvf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/ghbvf/gocell/tree/main/.gemini/skills/git-worktree
Command: npx skills add https://github.com/ghbvf/gocell --skill git-worktree-ghbvf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git Worktree conventions streamline safe and consistent worktree usage across teams, ensuring predictable naming, permissions compatibility, and safe deletion.

Core Features & Use Cases

  • Enforced naming and baseline branch rules for worktrees to prevent collisions and confusion.
  • Safe deletion and lifecycle management for Per-PR worktrees and temporary worktrees.
  • Use Case: when teams create multiple per-feature worktrees, apply the conventions to avoid orphaned worktrees and ensure auditability.

Quick Start

Apply the Git Worktree conventions before creating or deleting worktrees to ensure safe operations.

Frequently Asked Questions about git-worktree

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

FAQPage Schema
What are Git worktree conventions and when do I need them?

Git worktree conventions are standardized rules for creating, naming, numbering, and deleting worktrees. You need them when managing multiple per-feature branches to prevent naming collisions, avoid orphaned worktrees, and maintain a clean repository state across your team.

How do I safely create and name Git worktrees for feature branches?

To safely create Git worktrees, apply enforced naming and baseline branch rules that prevent collisions and confusion. This standardization ensures predictable permissions compatibility and auditability when teams generate multiple per-feature worktree instances simultaneously.

What is the best way to manage Git worktree deletion and lifecycle?

The best way to manage worktree deletion is applying safe lifecycle conventions for Per-PR and temporary worktrees. This approach enforces deletion safety and permission compatibility, preventing orphaned worktrees and maintaining a clean repository state.

Why do per-PR worktrees cause repository collisions and how to prevent them?

Per-PR worktrees cause collisions due to inconsistent naming and unsafe deletion practices. Prevent them by enforcing standardized worktree conventions for creation, numbering, and deletion safety to ensure predictable permissions compatibility and maintain a clean repository state.

Do I need specific Git configurations to use worktree conventions?

You need a standard Git environment to apply worktree conventions. The conventions standardize safe worktree usage across teams by enforcing rules for creation, numbering, deletion safety, and permission compatibility without requiring specialized dependencies.