← ClaudeAtlas

review-prlisted

Review a GitHub pull request using the Orchestray reviewer agent
palginpav/orchestray · ★ 0 · Code & Development · score 71
Install: claude install-skill palginpav/orchestray
# PR Review You are receiving this because the user invoked `/orchestray:review-pr`. Review a GitHub pull request using the Orchestray reviewer agent. ## Arguments $ARGUMENTS ## Protocol Follow these steps in order: 1. **Parse arguments**: - Check if `--post-comments` flag is anywhere in `$ARGUMENTS`. If present, set `POST_COMMENTS=true` and strip the flag before further parsing. - Read `.orchestray/config.json` if it exists. If `post_pr_comments` is `true`, set `POST_COMMENTS=true`. - If the remaining argument is empty: run `gh pr view --json number` to auto-detect the current branch's open PR. If none found, show usage ("Usage: `/orchestray:review-pr <number>`, `/orchestray:review-pr <GitHub PR URL>`, or `/orchestray:review-pr` on a branch with an open PR") and stop. - If the argument starts with `https://`: extract the PR number from the URL path (the segment after `/pull/`). - If the argument is a bare number or `#<number>`: strip the leading `#` and use as the PR number directly. - Store the resolved PR number as `PR_NUMBER`. 2. **Check gh CLI availability**: - Run `gh --version` via Bash. - If not available: report "GitHub CLI (gh) is not installed. Install it from https://cli.github.com/ to use PR review." and stop. 3. **Fetch PR metadata**: - Run: `gh pr view <PR_NUMBER> --json number,title,body,baseRefName,headRefName,author,state,labels,reviewDecision` - If the command fails (PR not found, auth issue, no repo context): report th