fix(skills): pr-review must run from main worktree, no workarounds

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 13:02:02 +01:00
co-authored by Claude Opus 4.6
parent b6c4ecb302
commit fcd2fd3cf7
+5 -3
View File
@@ -16,15 +16,17 @@ on the branch type. All reviewers must approve for a clean review.
## Workflow
### 0. Branch guard — MUST be on `main`
### 0. Branch guard — MUST be run by a Claude instance in the `main` worktree
```bash
git branch --show-current
```
If the current branch is **not `main`**, stop immediately and tell the user:
"PR reviews must be run from the `main` worktree. Switch to `main` first."
Do NOT proceed with the review from a team branch.
"PR reviews must be run by a Claude instance in the `main` worktree."
Do NOT proceed with the review. Do NOT work around this by reading files
from another worktree — the review agent itself must be running in main.
Stop and wait for the user to invoke `/pr-review` from main.
### 1. Determine the branch to review