herdr-worktree
Installation
SKILL.md
Herdr Worktree
When to use
- You are inside a Herdr pane (
HERDR_ENV=1is present in the environment) and you need a worktree to work on a branch in isolation. - If
HERDR_ENVis not set or theherdrbinary is not onPATH, this skill does not apply — create the worktree however the task requires (e.g.git worktree add) and say so.
Usage
From anywhere inside the repo (main checkout or an existing worktree):
bash <skill-dir>/scripts/create.sh <branch> [--base <ref>] [--focus]
<branch>— the branch to check out; created fromHEAD(or--base <ref>) if it doesn't exist locally. Slashes are fine (e.g. a LineargitBranchName).--base <ref>— base ref for a new branch, e.g.origin/main.--focus— switch the Herdr UI to the new worktree workspace (default: don't steal focus).