.opencode/commands/review.md
Review code changes. Determine what to review based on the arguments below, then follow the architect agent's review workflow.
Arguments: $ARGUMENTS
How to determine what to review:
If arguments contain a PR number (e.g., 1234) or URL (e.g., https://github.com/.../pull/1234), review that PR:
gh pr view <number> for the description and metadatagh pr diff <number> for the changesgh pr checks <number> for CI statusgh apiIf no PR is specified, review the current branch vs origin/main:
git diff origin/main...HEAD for the changesgit log --oneline origin/main..HEAD for commit contextPerform a balanced review covering all analysis areas. Focus on CRITICAL and HIGH issues first. If there are no significant issues, say so briefly rather than inventing low-value findings.
Any additional instructions from the arguments above (e.g., "focus on memory safety") should narrow the review scope accordingly.