Skip to content

feat: add multi-repo worktree guidance (#710) - #1123

Merged
obra merged 2 commits into
fix-replace-hardcoded-usersfrom
feat-add-multi-repo-worktree
Apr 13, 2026
Merged

obra merged 2 commits into
fix-replace-hardcoded-usersfrom
feat-add-multi-repo-worktree

Conversation

@arittr

@arittr arittr commented Apr 10, 2026 •

Copy link
Copy Markdown
Collaborator

What problem are you trying to solve?

The worktree skill had no guidance for plans that span multiple repositories. Agents encountering multi-repo plans either created a worktree in only the first repo or skipped worktree creation entirely for secondary repos, leading to inconsistent isolation.

What does this PR change?

Adds a row to the Edge Cases table in using-git-worktrees/SKILL.md instructing agents to create a worktree in each repo when a plan touches multiple repos, using the same flow with matching branch names.

Is this change appropriate for the core library?

Yes — multi-repo projects are common, and the worktree skill is a core skill. This fills a gap in existing edge case documentation.

What alternatives did you consider?

  1. A separate multi-repo worktree skill — overkill for a single edge case row.
  2. Adding a full new section — the edge case table is the right place since this is a conditional behavior, not a new workflow.

Does this PR contain multiple unrelated changes?

No. Single line addition to one file.

Existing PRs

Environment tested

Harness (e.g. Claude Code, Cursor) Harness version Model Model version/ID
Claude Code latest Claude Opus 4.6 claude-opus-4-6

Evaluation

  • Tested with multi-repo implementation plans to verify agents create worktrees in each repo
  • Before: agents only created worktree in primary repo
  • After: agents create matching worktrees across all repos referenced in the plan

Rigor

  • If this is a skills change: I used superpowers:writing-skills and
    completed adversarial pressure testing (paste results below)
  • This change was tested adversarially, not just on the happy path
  • I did not modify carefully-tuned content (Red Flags table,
    rationalizations, "human partner" language) without extensive evals
    showing the change is an improvement

Human review

  • A human has reviewed the COMPLETE proposed diff before submission

@arittr

arittr commented Apr 10, 2026 •

Copy link
Copy Markdown
Collaborator Author

Comment thread skills/using-git-worktrees/SKILL.md Resolved
arittr added a commit that referenced this pull request Apr 13, 2026
Addresses review feedback on #1123. Replaces "(same Step 0→1a→1b flow,
matching branch names)" with plain-language instruction that doesn't
forward-reference section numbers that could rot under future edits.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@arittr
arittr force-pushed the fix-replace-hardcoded-users branch from c1c5547 to 1d6b04e Compare April 13, 2026 16:54
arittr added a commit that referenced this pull request Apr 13, 2026
Addresses review feedback on #1123. Replaces "(same Step 0→1a→1b flow,
matching branch names)" with plain-language instruction that doesn't
forward-reference section numbers that could rot under future edits.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@arittr
arittr force-pushed the feat-add-multi-repo-worktree branch from 275ac2f to 4b07664 Compare April 13, 2026 16:54
@arittr
arittr force-pushed the fix-replace-hardcoded-users branch from 1d6b04e to a490478 Compare April 13, 2026 18:43
arittr added a commit that referenced this pull request Apr 13, 2026
Addresses review feedback on #1123. Replaces "(same Step 0→1a→1b flow,
matching branch names)" with plain-language instruction that doesn't
forward-reference section numbers that could rot under future edits.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@arittr
arittr force-pushed the feat-add-multi-repo-worktree branch from 4b07664 to b1e9711 Compare April 13, 2026 18:44
arittr and others added 2 commits April 13, 2026 16:29
Addresses review feedback on #1123. Replaces "(same Step 0→1a→1b flow,
matching branch names)" with plain-language instruction that doesn't
forward-reference section numbers that could rot under future edits.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@arittr
arittr force-pushed the fix-replace-hardcoded-users branch from a490478 to e3dd3b4 Compare April 13, 2026 23:35
@arittr
arittr force-pushed the feat-add-multi-repo-worktree branch from b1e9711 to ddbba8e Compare April 13, 2026 23:35
@obra
obra merged commit 1879a94 into fix-replace-hardcoded-users Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants