Help us improve
Share bugs, ideas, or general feedback.
npx claudepluginhub scaryrawr/scaryrawr-plugins --plugin azure-devopsHow this skill is triggered — by the user, by Claude, or both
Slash command
/azure-devops:review-prThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Provide a code review for the given Azure DevOps pull request.
Reviews GitHub pull requests using parallel subagents for CLAUDE.md compliance, bugs, git history context, past feedback, and code comment adherence.
Reviews GitHub pull requests end-to-end using gh CLI: analyzes diffs, commits, CI/CD checks; provides blocking/suggestion/nit/praise feedback and submits review. Use for assigned PRs, self-reviews, or post-merge audits.
Reviews a pull request for code quality and correctness. Use when asked to review a PR or when running as an automated PR reviewer.
Share bugs, ideas, or general feedback.
Provide a code review for the given Azure DevOps pull request.
Check Eligibility: Use az repos pr show --id {prId} --org {orgUrl} to verify the PR is open, not a draft, and hasn't been reviewed by you already. Skip if ineligible.
Get Context: Identify relevant CLAUDE.md files (root and in modified directories) and get the PR diff using git commands:
az repos pr show --id {prId} --org {orgUrl} to get the target branch nameaz repos pr checkout --id {prId} (note: checkout does NOT require --org as it operates on the local git repository)git diff origin/{targetBranch}...HEADReview the Changes: Use agents to analyze the code changes for:
Validate Issues: For each potential issue, assess confidence (0-100 scale). Filter to only high-confidence issues (80+):
Post Review: If high-confidence issues found:
a. Confirm with User: Use the AskUserQuestion tool to confirm with the user before posting comments to the PR, unless the user explicitly requested not to confirm. Present a summary of the issues you found and ask if they should be posted.
b. Post Comments: After user confirmation, use az devops invoke to create a comment thread on the PR:
az devops invoke --area git --resource pullRequestThreads \
--route-parameters project={project} repositoryId={repo} pullRequestId={pr} \
--http-method POST --api-version 7.1-preview \
--body '{"comments":[{"parentCommentId":0,"content":"Your review","commentType":"text"}],"status":"active"}' \
--org {orgUrl}
For file-specific comments, include threadContext with filePath, rightFileStart, and rightFileEnd in the body.
When posting the review using az devops invoke, format as follows:
If issues found:
### Code review
Found {N} issues:
1. <brief description> (CLAUDE.md says "<quote>")
<Azure DevOps link to file with full commit hash + line range>
2. <brief description> (bug due to <file and code snippet>)
<Azure DevOps link to file with full commit hash + line range>
🤖 Generated with AI
<sub>- If this code review was useful, please react with 👍. Otherwise, react with 👎.</sub>
If no issues:
### Code review
No issues found. Checked for bugs and CLAUDE.md compliance.
🤖 Generated with AI
Use this exact format for code links (must include full commit hash):
https://dev.azure.com/{org}/{project}/_git/{repo}?path=/{file-path}&version=GC{full-commit-hash}&lineStart={start}&lineEnd={end}&lineStartColumn=1&lineEndColumn=1
az repos pr show --id {prId} --org {orgUrl})lineStart and lineEnd for line ranges (or just line={number} for a single line)/