Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix(skills): inline REPO definition to prevent API 404 churn (#1632)

worktrunk-bot54ec04c73d37
diff --git a/.claude/skills/review-reviewers/SKILL.md b/.claude/skills/review-reviewers/SKILL.md
index c2dbc0b04..3b3fa4d2b 100644
--- a/.claude/skills/review-reviewers/SKILL.md
+++ b/.claude/skills/review-reviewers/SKILL.md
@@ -124,13 +124,14 @@ one. This avoids notification spam from hourly runs.
```bash
# Find existing bot comment on the tracking issue
+REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
BOT_LOGIN=$(gh api user --jq '.login')
EXISTING_COMMENT=$(gh api "repos/$REPO/issues/$TRACKING_NUMBER/comments" \
--jq "[.[] | select(.user.login == \"$BOT_LOGIN\")] | last | .id // empty")
```
If `EXISTING_COMMENT` is non-empty, update it via
-`gh api repos/$REPO/issues/comments/$EXISTING_COMMENT -X PATCH -F body=@/tmp/findings.md`.
+`REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner') && gh api repos/$REPO/issues/comments/$EXISTING_COMMENT -X PATCH -F body=@/tmp/findings.md`.
Otherwise create a new comment.
Format each finding in the comment body as: