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
## Summary
- Rewrites `using-git-worktrees` and `finishing-a-development-branch`
with environment detection (`GIT_DIR != GIT_COMMON`), consent gate
before creating worktrees, native-tool preference (defers to
`EnterWorktree`-style harness commands), and provenance-based cleanup
that only removes worktrees this skill created
- Consolidates the `code-reviewer` named agent into the
`requesting-code-review` skill template — the persona/checklist was
duplicated and the two files could drift
- Drops the leaked "review every 3 tasks" cadence (it was meant for
`executing-plans`, not `subagent-driven-development`) and removes
vestigial `## Integration` sections from four skills
## Breaking change
Removes the `core-engineering:code-reviewer` named agent. Callers should
dispatch `Task(general-purpose)` with the template at
`skills/requesting-code-review/code-reviewer.md` instead.
**If `ORIG_GIT_DIR == ORIG_GIT_COMMON`:** The original workspace was the main checkout, not a linked worktree. No worktree to clean up. Done.
204
+
205
+
**If `$WORKTREE_PATH` is under `.worktrees/`, `worktrees/`, or `~/.config/skills/worktrees/`:** This skill created the worktree — we own cleanup.
206
+
146
207
```bash
147
-
git worktree remove <worktree-path>
208
+
# CWD is already $MAIN_ROOT from Step 5
209
+
git worktree remove "$WORKTREE_PATH"
210
+
git worktree prune # Self-healing: clean up any stale registrations
148
211
```
149
212
150
-
**For Option 3:**Keep worktree.
213
+
**Otherwise:**The host environment (harness) owns this workspace. Do NOT remove it. If your platform provides a workspace-exit tool, use it. Otherwise, leave the workspace in place.
Copy file name to clipboardExpand all lines: core-engineering/skills/requesting-code-review/SKILL.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Use when completing tasks, implementing major features, or before m
5
5
6
6
# Requesting Code Review
7
7
8
-
Dispatch core-engineering:code-reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.
8
+
Dispatch a codereviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.
9
9
10
10
**Core principle:** Review early, review often.
11
11
@@ -29,16 +29,15 @@ BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
29
29
HEAD_SHA=$(git rev-parse HEAD)
30
30
```
31
31
32
-
**2. Dispatch code-reviewer subagent:**
32
+
**2. Dispatch codereviewer subagent:**
33
33
34
-
Use Task tool with core-engineering:code-reviewer, fill template at `code-reviewer.md`
34
+
Use Task tool with `general-purpose` type, fill template at `code-reviewer.md`
35
35
36
36
**Placeholders:**
37
-
-`{WHAT_WAS_IMPLEMENTED}` - What you just built
37
+
-`{DESCRIPTION}` - Brief summary of what you built
38
38
-`{PLAN_OR_REQUIREMENTS}` - What it should do
39
39
-`{BASE_SHA}` - Starting commit
40
40
-`{HEAD_SHA}` - Ending commit
41
-
-`{DESCRIPTION}` - Brief summary
42
41
43
42
**3. Act on feedback:**
44
43
- Fix Critical issues immediately
@@ -56,12 +55,11 @@ You: Let me request code review before proceeding.
0 commit comments