worktree-discipline

Installation
SKILL.md

Worktree Discipline

Announce at start: "Using the worktree-discipline skill to isolate this change."

Preconditions

  • You are about to change something: documentation or code. Writing an SRS section is a change exactly like writing code, and no change happens outside a worktree.
  • The base branch is the branch the primary, non-worktree checkout has checked out. It moves only by signed squash merges (merge-change).
  • One change gets one change worktree on one change branch off the base branch. That is the only worktree merge-change sees.

Steps

  1. Already isolated? If git rev-parse --git-dir differs from --git-common-dir (and you are not in a submodule), you are in a worktree. Do not nest another, except as a task worktree under the carve-out below.
Installs
36
GitHub Stars
1
First Seen
Jul 21, 2026