perform-forge-review
Create AI-assisted code reviews on GitHub, GitLab, or Forgejo. Use when asked to review a PR/MR, analyze code changes, or provide review feedback.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create AI-assisted code reviews on GitHub, GitLab, or Forgejo. Use when asked to review a PR/MR, analyze code changes, or provide review feedback.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | perform-forge-review |
| description | Create AI-assisted code reviews on GitHub, GitLab, or Forgejo. Use when asked to review a PR/MR, analyze code changes, or provide review feedback. |
Create code reviews on GitHub, GitLab, or Forgejo with human oversight.
Use scripts/reviewtool for all operations. It requires Python 3 with no
external dependencies.
scripts/reviewtool checkout 123
This checks out the PR branch and shows the diff. For GitLab/Forgejo, set the appropriate environment variables first.
Read the files, understand the changes. Use git diff and git log as needed.
Start a review, then add comments:
scripts/reviewtool start --pr 123 --body "Assisted-by: OpenCode (Claude Sonnet 4)
AI-generated review. Comments prefixed with AI: are unedited."
scripts/reviewtool add --pr 123 \
--file src/lib.rs --line 42 --match "fn process_data" \
--body "AI: *Important*: Missing error handling"
The --match flag validates the line content to prevent misplaced comments.
scripts/reviewtool submit --pr 123
The review is created as pending/draft. The human reviews in the forge UI and submits when satisfied.
Prefixes:
AI: — unedited AI output@ai: — human question for AI to processPriority markers:
*Important*: — must resolve before merge(low) — minor nitDo not summarize the PR changes. The body should contain:
Avoid positive-only inline comments — they create noise.