You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bd-yjh1y117. Add a shared strand_branch() helper emitting braid/<leaf>, used by
create-worktree and switch-task; update the worktree conventions and skill docs.
The beads/ prefix was a historical git namespace from before the braid migration;
remote work-type prefixes (bugfix/, feature/) are unchanged.
Copy file name to clipboardExpand all lines: .claude/rules/worktrees.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ the *shape* of the work, not on the strand boundary.
36
36
37
37
That switches the current worktree to `feature/q2-preview-command`,
38
38
fast-forward-pulls (so any sibling sub-tasks that merged in the
39
-
meantime show up), creates a fresh `beads/bd-yxqt-<slug>` topic
39
+
meantime show up), creates a fresh `braid/bd-yxqt-<slug>` topic
40
40
branch off the new tip, marks the braid strand `in_progress` (via
41
41
`braid update`), and rewrites the `CLAUDE.local.md` context block.
42
42
Omit `--from` to branch off the current HEAD.
@@ -53,7 +53,7 @@ Each sub-task lives on its own topic branch. When a sub-task closes:
53
53
54
54
```bash
55
55
git switch feature/q2-preview-command
56
-
git merge --no-ff beads/<id>-<slug>
56
+
git merge --no-ff braid/<id>-<slug>
57
57
git push origin feature/q2-preview-command
58
58
```
59
59
@@ -70,17 +70,18 @@ All worktrees live in `.worktrees/` at the project root. This directory is git-i
70
70
## Branch naming
71
71
72
72
-**GH issue triage worktree** → branch `issue-<N>` at `.worktrees/issue-<N>/`. Local branch stays bare; only the remote uses a prefix (see § Pushing for PR).
73
-
-**Braid strand investigation worktree** → branch `beads/<id>-<slug>` at `.worktrees/<id>-<slug>/`, where `<slug>` is a short kebab-case form of the strand title (3–5 words, lowercase).
74
-
-**In-place sub-task branch (via `switch-task`)** → branch `beads/<id>-<slug>`*without* a corresponding `.worktrees/` directory; the branch lives wherever the caller's worktree is checked out.
73
+
-**Braid strand investigation worktree** → branch `braid/<id>-<slug>` at `.worktrees/<id>-<slug>/`, where `<slug>` is a short kebab-case form of the strand title (3–5 words, lowercase).
74
+
-**In-place sub-task branch (via `switch-task`)** → branch `braid/<id>-<slug>`*without* a corresponding `.worktrees/` directory; the branch lives wherever the caller's worktree is checked out.
75
75
76
76
The directory mirrors the leaf of the branch name. The conventions are stable so colleagues and tooling can recognize a worktree's origin from the path alone.
77
77
78
-
> **Note on the `beads/` branch prefix.** It is a *historical* git
79
-
> namespace, kept after the braid migration because the xtask code emits
80
-
> it and tooling/muscle-memory recognize it. It does not imply beads is
81
-
> involved — the strand lives in the braid skein. Renaming the prefix to
82
-
> `braid/` is a separable future cleanup (it would touch
83
-
> `create_worktree.rs`, `switch_task.rs`, and this convention together).
78
+
> **Note on the `braid/` branch prefix.** It is a plain git namespace —
79
+
> the strand lives in the braid skein, and the branch name just mirrors
80
+
> its id. It was renamed from the historical `beads/` prefix (bd-yjh1y117)
81
+
> after the beads→braid migration; the emitter is `strand_branch()` in
82
+
> `create_worktree.rs`, shared by `create-worktree` and `switch-task`.
83
+
> Pre-rename branches/worktrees may still carry `beads/` locally; that is
84
+
> harmless.
84
85
85
86
## Fresh worktree bootstrap
86
87
@@ -170,14 +171,14 @@ which is regenerated from the skein and never hand-edited or re-imported.
170
171
171
172
## Pushing for PR
172
173
173
-
Local branch names stay bare (`issue-<N>`, `beads/<id>-<slug>`). The remote branch name uses a prefix that reflects the work type — `bugfix/`, `feature/`, etc.:
174
+
Local branch names stay bare (`issue-<N>`, `braid/<id>-<slug>`). The remote branch name uses a prefix that reflects the work type — `bugfix/`, `feature/`, etc.:
Copy file name to clipboardExpand all lines: .claude/skills/preview-render-parity/SKILL.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,10 +151,10 @@ EOF
151
151
)"
152
152
# braid prints the new strand id on stdout. Capture it as <id>.
153
153
braid update <id> --status in_progress
154
-
git switch -c beads/<id>-<short-slug>
154
+
git switch -c braid/<id>-<short-slug>
155
155
```
156
156
157
-
bd-kw93 is the q2-preview epic; every parity sub-strand is parent-child to it. (The git branch prefix stays `beads/` — a stable historical namespace.)
157
+
bd-kw93 is the q2-preview epic; every parity sub-strand is parent-child to it. (The git branch prefix is `braid/` — a plain git namespace, renamed from the historical `beads/` in bd-yjh1y117.)
0 commit comments