一键导入
review-pr
Trigger a comprehensive PR review. Runs code quality, security, test coverage, and performance analysis. Usage: /review-pr [PR number or branch name]
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Trigger a comprehensive PR review. Runs code quality, security, test coverage, and performance analysis. Usage: /review-pr [PR number or branch name]
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate and publish release notes for an Azure DevOps sprint. Fetches work items via WIQL, classifies them, and formats structured Markdown. Usage: /generate-release-note [sprint-name]
Post previously generated release notes to Azure DevOps wiki. Requires the release note content to already be available in context. Usage: /post-release-note [sprint-name]
Post the current PR review findings as comments on a pull request. Requires a PR number. Usage: /post-review [pr-number]
Groom a GitHub issue. Analyzes user intent, domain knowledge, competitive context, and workflow. Usage: /analyze-requirement [issue-number]
Post the elaborated requirement to a GitHub issue. Requires an issue number. Usage: /post-elaboration [issue-number]
| name | review-pr |
| description | Trigger a comprehensive PR review. Runs code quality, security, test coverage, and performance analysis. Usage: /review-pr [PR number or branch name] |
Perform a comprehensive review of the pull request $ARGUMENTS.
Use the pr-reviewer agent to:
Detect the hosting platform from the git remote URL:
git remote get-url origin
github.com → GitHubdev.azure.com / visualstudio.com → Azure DevOpsGather PR context via git commands (works on any platform):
# Base branch
BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||' || echo "main")
git log --oneline origin/${BASE}..HEAD # commit list
git diff origin/${BASE}...HEAD # full diff with patches
git diff --name-only origin/${BASE}...HEAD # changed file names
git diff --stat origin/${BASE}...HEAD # change stats
git rev-parse HEAD # head SHA
git log -1 --format="%an <%ae>" # author
git log --format="%s%n%b" origin/${BASE}..HEAD # PR description from commits
Use Read or git show HEAD:<filepath> to read full file content where needed.
Run specialized sub-agent reviews in parallel:
Compile all findings into a single structured report with:
APPROVE, REQUEST CHANGES, or NEEDS DISCUSSIONPost the review to the detected platform automatically — no user confirmation required:
providers/github.md — uses GitHub MCP or gh CLIproviders/azure-devops.md — uses curl with AZURE_TOKEN environment variableproviders/generic.md — writes report to pr-review-report.mdIf invoked with --fix: apply fixes and push before posting:
Write + git commit + git pushIf a branch name is provided (e.g., /review-pr feature/my-feature), compare that branch against main.
If no argument is given, review the current branch against main.