No slash command · from halllo-skills
Read Azure DevOps pull requests and changed code via az CLI
Ships in halllo-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Run get-pr.ps1 (located alongside this skill file) to fetch everything in one call: metadata, changed files, line-level diffs, and comment threads. The result is written to a file in the current working directory for reliable reading with read_file.
scripts/get-pr.ps1 — Get PR metadata, changed files, line-level diffs, and comment threads in one run; variables left in scope for follow-up commandsRun with a PR ID:
scripts\get-pr.ps1 -PrId <id>
Or discover the PR from a work item:
scripts\get-pr.ps1 -WorkItemId <id>
The script writes the result to get-pr-<id>-output.txt in the current working directory (i.e. the workspace root) and prints PR output written to: <path>. Use read_file on that path to read the full result — this avoids terminal buffer truncation for large PRs, lets you page through the output with line ranges, and requires no permission prompt since the file lands inside the open workspace.
When you need actual source lines for context around a diff hunk, re-derive the shared variables from the PR id and then fetch file content:
$pr = az repos pr show --id <id> --output json | ConvertFrom-Json
$repoId = $pr.repository.id
$project = $pr.repository.project.name
$target = $pr.lastMergeSourceCommit.commitId
$org = (az devops configure --list 2>&1 | Select-String 'organization\s*=\s*(.+)').Matches[0].Groups[1].Value.Trim().TrimEnd('/')
$token = (az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --output json | ConvertFrom-Json).accessToken
$headers = @{ Authorization = "Bearer $token"; "Content-Type" = "application/json" }
$baseUrl = "$org/$([Uri]::EscapeDataString($project))/_apis/git/repositories/$repoId"
$encoded = [Uri]::EscapeDataString("{repo_path}")
$file = Invoke-RestMethod -Uri "$baseUrl/items?path=$encoded&versionDescriptor.version=$target&versionDescriptor.versionType=commit&includeContent=true&api-version=7.1" -Headers $headers
$lines = $file.content -split "`n"
# e.g. 5 lines of context around line 300:
$lines[294..304] | ForEach-Object -Begin {$i=295} -Process {"$i`: $_"; $i++}
project="$project" — bare project=$project splits on spaces and crashes the CLIfileDiffs only accepts baseVersionCommit/targetVersionCommit as flat strings, not descriptor objectsfileDiffs throws HTTP 500 for added or deleted files — always filter to changeType -eq 'edit' before postingfileDiffs accepts at most 10 files per request — the script batches automatically in chunks of 10; if you call it manually, chunk your fileDiffParams arrayInvoke-RestMethod for POST calls — az devops invoke --in-file requires a real file path on Windows499b84ac-1321-427f-aa17-267ca6975798 is the Azure DevOps resource for az account get-access-tokenchcp 65001 first$changedFiles if the az devops invoke output is large; the output section will show Edited (0) / Added (0) as a symptom. If this happens, re-run the scriptWrite-Host for output — it writes to PowerShell's information stream (stream 6) which is not captured by the terminal tool; use bare string expressions instead (e.g. "$($var)" not Write-Host "$($var)")$out and emit with $out -join "n"` — the terminal tool takes an output snapshot when the terminal goes idle; a script that does heavy network I/O and then prints many lines can have output arrive after the snapshot. Collecting everything first and emitting as a single string guarantees one flush at the very endWhat SKILL.md sets; muted values are Claude Code's defaults
Use this skill when: - Finding pull requests related to a work item - Reading PR metadata (status, branches, reviewers, linked work items) - Listing PR commits and changed files - Reading changed code from PR commits without local git - Building an implementation plan based on historical PRs
Other plugins' skills for the same job
npx claudepluginhub halllo/agentskills --plugin halllo-skills5 skills in this plugin
/azure-boardsWork with Azure DevOps Product Backlog Items using az boards CLI/azure-create-prPush a feature branch and create an Azure DevOps pull request via az CLI/factory-factoryDistillation spec that turns a feature-rich prototype codebase into a "product factory" agent skill. That product factory skill lets a coding agent build a production-grade product for any target market (country, region, language, regulation, segment) from one shared feature catalog, and add further markets without touching the core. Use when productizing a prototype for several markets./playwright-cliAutomate browser interactions, test web pages and work with Playwright tests.