Review pr

From ThinkR-open/golem · View interactive version

Review pr is an AI agent skill from the GitHub repository ThinkR-open/golem. Review a golem GitHub pull request for correctness, style, and compliance with contribution conventions.

How to use this skill

Skill file

Review a golem pull request. The PR number is provided as the argument (e.g. /review-pr 1234).

Step 1 — Fetch the PR

gh pr view <NUMBER> --json number,title,body,headRefName,baseRefName,author,files,additions,deletions
gh pr diff <NUMBER>

Also fetch any linked issue if one is referenced in the PR body:

gh issue view <ISSUE_NUMBER>

Step 2 — Check the PR metadata

Verify the following:

Step 3 — Review the code changes

Read the diff carefully and check:

Correctness

golem conventions

Code style

Documentation

Tests

Step 4 — Run checks locally (optional, if the branch is available)

If the branch can be checked out, run:

Rscript -e "devtools::test()"
Rscript -e "devtools::check()"

Report any failures.

Step 5 — Write the review summary

Produce a structured review with these sections:

Metadata

Code review

Verdict

One of:

If requesting changes, be specific: reference file names, line numbers from the diff, and what needs to change.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.