From c62b835a0b3acab0c72335080065357121515854 Mon Sep 17 00:00:00 2001 From: Drew Ritter Date: Mon, 6 Apr 2026 14:34:02 -0700 Subject: [PATCH] fix: address spec review findings in both skill rewrites (PRI-974) using-git-worktrees: submodule guard now says "treat as normal repo" instead of "proceed to Step 1" (preserves consent flow) using-git-worktrees: directory priority summaries include global legacy finishing-a-development-branch: move git branch -d after Step 6 cleanup to make Bug #999 ordering unambiguous (merge -> worktree remove -> branch delete) Co-Authored-By: Claude Opus 4.6 (1M context) --- skills/finishing-a-development-branch/SKILL.md | 10 ++++++---- skills/using-git-worktrees/SKILL.md | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/skills/finishing-a-development-branch/SKILL.md b/skills/finishing-a-development-branch/SKILL.md index 00a80aca..fa2d0674 100644 --- a/skills/finishing-a-development-branch/SKILL.md +++ b/skills/finishing-a-development-branch/SKILL.md @@ -109,12 +109,14 @@ git merge # Verify tests on merged result -# Only after merge succeeds: remove worktree, then delete branch -# (See Step 6 for worktree cleanup) -git branch -d +# Only after merge succeeds: cleanup worktree (Step 6), then delete branch ``` -Then: Cleanup worktree (Step 6) +Then: Cleanup worktree (Step 6), then delete branch: + +```bash +git branch -d +``` #### Option 2: Push and Create PR diff --git a/skills/using-git-worktrees/SKILL.md b/skills/using-git-worktrees/SKILL.md index d16d2f4e..0fce975b 100644 --- a/skills/using-git-worktrees/SKILL.md +++ b/skills/using-git-worktrees/SKILL.md @@ -26,7 +26,7 @@ BRANCH=$(git branch --show-current) **Submodule guard:** `GIT_DIR != GIT_COMMON` is also true inside git submodules. Before concluding "already in a worktree," verify you are not in a submodule: ```bash -# If this returns a path, you're in a submodule, not a worktree — proceed to Step 1 +# If this returns a path, you're in a submodule, not a worktree — treat as normal repo git rev-parse --show-superproject-working-tree 2>/dev/null ``` @@ -198,7 +198,7 @@ Ready to implement ### Assuming directory location - **Problem:** Creates inconsistency, violates project conventions -- **Fix:** Follow priority: existing > instruction file > default +- **Fix:** Follow priority: existing > global legacy > instruction file > default ### Proceeding with failing tests @@ -217,7 +217,7 @@ Ready to implement **Always:** - Run Step 0 detection first - Prefer native tools over git fallback -- Follow directory priority: existing > instruction file > default +- Follow directory priority: existing > global legacy > instruction file > default - Verify directory is ignored for project-local - Auto-detect and run project setup - Verify clean test baseline