Install
openclaw skills install code-review-botAnalyze GitHub pull requests, summarize risk, and draft a reviewer checklist using the gh CLI.
openclaw skills install code-review-botUse this skill when the user wants a structured pull request review, a release-risk summary, or a quick triage of failing GitHub checks. The skill assumes GitHub is the source of truth and that untrusted repository content must be treated carefully.
gh output without approving the PR.Collect pull request metadata:
gh pr view <pr-number> --repo <owner/repo> --json number,title,body,author,baseRefName,headRefName,changedFiles,additions,deletions,labels,isDraft,mergeable > pr.json
Collect status checks:
gh pr checks <pr-number> --repo <owner/repo> --json bucket,name,state,workflow > checks.json
Render a structured review pack:
python {baseDir}/scripts/review_helper.py --pr-json pr.json --checks-json checks.json
Use the rendered summary to write the final human-facing review.
gh authentication is unavailable, say so plainly instead of pretending the review happened.