merge-reviewlisted
Install: claude install-skill wrfcoin/agent-orchestration
# PR Review
Review open PRs against their linked GitHub issues. Post structured findings before
any merge decision.
## Workflow
### 1. Gather PR details
```bash
gh pr view <num> --repo wrfcoin/<repo> \
--json url,state,mergeStateStatus,files,commits,statusCheckRollup,body,reviews
gh pr diff <num> --repo wrfcoin/<repo>
gh issue view <issue-num> --repo wrfcoin/<repo> --json title,body
```
### 2. Notify the issue
```bash
gh issue comment <issue-num> --repo wrfcoin/<repo> --body \
"Merge-manager reviewing PR #<pr-num> for this issue. Will post findings shortly."
```
### 3. Codex review wait-gate (MANDATORY for enabled repos)
Codex-enabled repos: **core4, infra, frontend, backend**. (mobile,
storage-providers, defi-protocols, security-testing, smart-contracts
do NOT have codex auto-review configured — skip the gate there.)
For any PR in an enabled repo:
```bash
REPO=<repo>; PR=<num>
# Codex triggers on "ready for review" state �� if the PR is draft, flip
# it first (`gh pr ready $PR --repo wrfcoin/$REPO`). Then wait up to 120s
# for a review to land against the current HEAD.
HEAD_SHA=$(gh api repos/wrfcoin/$REPO/pulls/$PR --jq '.head.sha')
deadline=$((SECONDS + 120))
while [[ $SECONDS -lt $deadline ]]; do
latest=$(gh api repos/wrfcoin/$REPO/pulls/$PR/reviews \
--jq '[.[] | select(.user.login | contains("codex"))][-1] // {}')
latest_commit=$(echo "$latest" | jq -r '.commit_id // ""')
if [[ "$latest_commit" == "$HEAD_SHA" ]]; then
echo "codex reviewed HE