worktree-setup-hook

Installation
SKILL.md

Worktree Setup Hook

Provides a post-checkout git hook template that automatically configures new git worktrees by detecting new worktree creation and running setup tasks.

Overview

The hook detects when a new worktree is created (not a regular checkout) and automatically:

  • Copies environment files (.env, .env.local, etc.)
  • Detects the project's package manager and installs dependencies
  • Runs setup scripts if available

Quick Start

Install the hook template:

cp .cursor/skills/worktree-setup-hook/assets/hook-templates/post-checkout .git/hooks/post-checkout
chmod +x .git/hooks/post-checkout
Installs
6
GitHub Stars
7
First Seen
Jan 30, 2026
worktree-setup-hook — lambda-curry/devagent