بنقرة واحدة
review-pr
Review a pull request diff and write structured feedback to review.json for the workflow to publish.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review a pull request diff and write structured feedback to review.json for the workflow to publish.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | review-pr |
| description | Review a pull request diff and write structured feedback to review.json for the workflow to publish. |
Review the current pull request and write the output to review.json.
pr_diff.txt.pr_description.txt.pr_comments.txt.pr_incremental_diff.txt, containing changes
since the most recent Oz review.pr_incremental_diff.txt exists, use it to prioritize newly introduced or materially changed
concerns, while using pr_diff.txt for valid current inline comment locations.Before writing your review, read pr_comments.txt and pr_incremental_diff.txt when it exists. Use
these comments to:
The pr_comments.txt file will only exist if there were existing comments on the PR.
Binary files (images, compiled assets, etc.) appear in the diff as:
diff --git a/path/to/file b/path/to/file
Binary files /dev/null and b/path/to/file differ
They have no line annotations. Comments on binary files must:
path and body. Do not include line, start_line, or side.The diff file uses these prefixes for text files:
[OLD:n] for deleted lines on the old side. Use "LEFT".[NEW:n] for added lines on the new side. Use "RIGHT".[OLD:n,NEW:m] for unchanged context. Use "RIGHT" with line m.Every comment body must start with one of these labels:
🚨 [CRITICAL] for bugs, security issues, crashes, or data loss.⚠️ [IMPORTANT] for logic problems, edge cases, or missing error handling.💡 [SUGGESTION] for worthwhile improvements or better patterns.🧹 [NIT] for cleanup only when the comment includes a suggestion block.Write comments with these constraints:
When proposing a code change, use:
<replacement code here>
Rules:
start_line to the first line and line to the last line.Create review.json with this shape:
{
"summary": "## Overview\n...\n\n## Concerns\n- ...\n\n## Verdict\nFound: 1 critical, 2 important, 3 suggestions\n\n**Request changes**",
"comments": [
{
"path": "path/to/file",
"line": 42,
"side": "RIGHT",
"start_line": 40,
"body": "⚠️ [IMPORTANT] Short explanation\n\n```suggestion\nreplacement\n```"
},
{
"path": "assets/logo.png",
"body": "💡 [SUGGESTION] Consider compressing this image to reduce bundle size."
}
]
}
Field rules:
path must be relative to the repository root.line is required and must target the correct side. side must be "LEFT" or
"RIGHT". start_line is optional and only for multi-line ranges.line, start_line, and side must be omitted. Only path and body are
allowed.The summary must include:
Found: X critical, Y important, Z suggestions.Approve, Approve with nits, or Request changes.Before finishing:
review.json with jq.gh pr review, gh pr comment, gh api, or any other command that posts to GitHub.Your only output is the final review.json.