worktree
Installation
SKILL.md
Repository context — gather first
Collect these with individual Bash calls, one command per call, never combined into a single invocation:
- Current branch —
git branch --show-current - Worktree inventory —
git worktree list | head -30 - Git dir —
git rev-parse --git-dir - Git common dir (differs from the git dir when in a linked worktree) —
git rev-parse --git-common-dir
The pipe is the bound and belongs in the command. A read-time cap ("read only the first 30 entries") bounds nothing: the Bash tool returns the command's complete output into context before there is anything to decide about. These are ordinary body Bash calls, not pre-compute — the shape that #1619 is about is the harness composing the whole pre-compute block into one shell invocation.