Worktree Default

Install (or remove) the "worktrees by default" hook set in a repo - a SessionStart nudge that fast-forwards the pinned root and tells the agent to call EnterWorktree, plus PreToolUse guards that deny file writes and `git checkout`/`git switch` in the shared root checkout. Use when the user says "/worktree-default", "worktrees by default", "install the worktree hooks", "add the worktree guard to this repo", "make this repo use worktrees", "port the worktree hooks", or asks why writes to a repo root are being blocked.

seanx10m 3409bf6 6 files · 13.3 KB Updated

File contents

seanx10m/skills/tree/main/engineering/worktree-default commit 3409bf68f1

Frequently asked questions

npx skillmds@latest add seanx10m/worktree-default