用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/desplega-ai/agent-swarm --skill review-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | review-pr |
| description | Review a pull request (GitHub) or merge request (GitLab) and provide detailed feedback |
Review a PR (GitHub) or MR (GitLab) by analyzing changes and providing structured feedback.
Provider detection: Check the remote URL or provided URL:
gh pr commandsglab mr commandspr-number-or-url: Either a PR number (e.g., 123) or a full URL/workspace/personal/<repo-name> (clone with gh repo clone if needed)Check CI with gh pr checks <pr-number> (or glab mr view --json pipelines).
If CI checks are failing, this is an automatic REQUEST_CHANGES. Do not approve a PR with failing CI. Include the failing check names and error details in your review.
Check the "Review Guidance" section of your Repository Guidelines for repo-specific review instructions (e.g., "check README.md", "enforce camelCase in specific directories"). Apply these instructions during your review below.
Also note the repo's Merge Policy — check allowMerge and mergeChecks before approving or merging. If allowMerge is false, do NOT merge — only review and approve/request changes.
Check that the PR includes test changes. If the PR modifies code but does not add or update tests, this is an automatic REQUEST_CHANGES. Every code change must include corresponding tests.
Exceptions:
When requesting changes for missing tests, be specific about what tests are needed.
Review the diff for:
Also consider running the test suite locally and checking for TypeScript errors.
Post your review with a verdict: APPROVE, REQUEST_CHANGES, or COMMENT.
gh pr review <pr-number> --approve --body "Review message"
gh pr review <pr-number> --request-changes --body "Review message"
gh pr review <pr-number> --comment --body "Review message"
For detailed feedback on specific lines, use the GitHub API:
# Get the commit SHA
COMMIT_SHA=$(gh pr view <pr-number> --json headRefOid --jq '.headRefOid')
# Post an inline comment
gh api repos/<owner>/<repo>/pulls/<pr-number>/comments \
--method POST \
-f commit_id="$COMMIT_SHA" \
-f path="src/path/to/file.ts" \
-f line=42 \
-f side="RIGHT" \
-f body="Your inline comment here."
Parameters:
commit_id: PR head commit SHApath: Relative file pathline: Line number in the diffside: "RIGHT" for new code (additions), "LEFT" for removed codebody: Comment text (supports markdown)When the author pushes updates:
gh api repos/<owner>/<repo>/pulls/<pr-number>/comments/<comment-id>/replies \
--method POST \
-f body="Thanks, this looks good now!"