Skip to content

chore: adopt canonical .claude/worktrees/ convention#136

Merged
mikestankavich merged 1 commit into
mainfrom
chore/adopt-worktree-convention
May 30, 2026
Merged

chore: adopt canonical .claude/worktrees/ convention#136
mikestankavich merged 1 commit into
mainfrom
chore/adopt-worktree-convention

Conversation

@mikestankavich

Copy link
Copy Markdown
Contributor

Aligns trakrf/infra with the worktree-location convention converged on by docs (PR trakrf/docs#201) and platform (PR #445). Per-repo CLAUDE.md is the source of truth (no standalone ADR).

Convention

Worktrees live in .claude/worktrees/<name>/ (repo-relative), one per branch, created via the native EnterWorktree tool. No .worktrees/ dir, no .claude/worktrees -> ../.worktrees symlink (fresh-clone footgun).

Changes

  • CLAUDE.md — add a ## Worktrees section declaring .claude/worktrees/ canonical. This repo blanket-ignores .claude/, so the .gitignore no longer references worktrees at all → this CLAUDE.md line is the sole in-repo signal of the convention (and the highest-priority hint the superpowers using-git-worktrees skill fallback reads).
  • .gitignore — drop the now-vestigial .worktrees/ line (.claude/worktrees/ is already covered by the existing .claude/ ignore).

Already-correct (no change needed)

  • .claude/worktrees/ already ignored (blanket .claude/), like platform — no narrow line needed.
  • .claude/worktrees is a real dir, not a symlink — nothing to un-bridge.
  • This session already uses the native EnterWorktree tool.

Out-of-band cleanup (not in this diff)

  • Removed the stale empty root .worktrees/feature/ leftover (Apr 10, gitignored/untracked, not a registered worktree).

Brings docs/platform/infra all onto one path. Convention is LOCATION-locked; platform is separately researching upstream superpowers skill refinements (none needed for 5.1.0, which defers to the native tool).

🤖 Generated with Claude Code

Align infra with the worktree-location convention converged on by docs +
platform (docs PR trakrf/docs#201, platform PR #445): worktrees live in
`.claude/worktrees/<name>/`, created via the native EnterWorktree tool, no
`.worktrees/` dir and no symlink bridge.

- CLAUDE.md: add a `## Worktrees` section declaring `.claude/worktrees/`
  canonical. Since this repo blanket-ignores `.claude/`, the gitignore no
  longer references worktrees at all, so this CLAUDE.md line is the sole
  in-repo signal of the convention (it's the highest-priority hint the
  superpowers using-git-worktrees skill's fallback reads).
- .gitignore: drop the now-vestigial `.worktrees/` line — `.claude/worktrees/`
  is already covered by the existing `.claude/` ignore.

(Separately removing the stale empty root `.worktrees/feature/` leftover dir,
which is gitignored/untracked so not part of this commit.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mikestankavich mikestankavich merged commit ac4ec20 into main May 30, 2026
20 checks passed
@mikestankavich mikestankavich deleted the chore/adopt-worktree-convention branch May 30, 2026 16:03
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.

1 participant