ado-pull-requests
Skill5 starsChanged 5 months agoMITView on GitHub
Use when the user asks about Azure DevOps pull requests, code reviews, PR comments, or wants to create, approve, or complete a PR. "show me my open pull requests", "list PRs waiting for my review", "approve PR #89", "add a review comment to PR #91", "create a pull request from feature/redis to main", "resolve the thread on PR #89", "show PR status and merge conflicts", "who reviewed PR #77", "complete PR #89 with squash merge", "add Alice as reviewer to PR #91"
In this repository10 other files it gives its agents.
- ado-contextSkill
- ado-pipelinesSkill
- ado-pm-reportingSkill
- ado-project-discoverySkill
- ado-repositoriesSkill
- ado-searchSkill
- ado-sprints-capacitySkill
- ado-test-plansSkill
- ado-wikiSkill
- ado-work-itemsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
Call repo_pull_request(repo, prId) — returns title, description, source/target branches, reviewers, status, merge status, and thread count.
- Distinctive: line 100
Only confirm write operations (create, approve, complete) with the user before executing.
- Distinctive: line 101
Read-only operations (list, get) can proceed without confirmation.
- Very specific: line 102
When the user says "approve PR #89 with comment", call repo_pull_request_write for the vote and repo_pull_request_thread_write for the …
- Very specific: line 112
If activeProject is set, use it automatically as the project parameter — do not ask the user to re-specify it.
- Very specific: line 114
If no context is set and a project is required, invoke Workflow E of ado-context to resolve it (list projects, ask user to pick, then …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ADO Pull Requests
List, create, review, comment on, and complete Azure DevOps pull requests. Manage review threads and track the full PR lifecycle from draft to merge.
When to use
- User wants to see open PRs (all, assigned to them, or authored by them)
- User wants to create a new PR
- User wants to approve, reject, or add reviewers to a PR
- User wants to add a review comment or reply to a thread
- User wants to resolve or reactivate a review thread
- User wants to complete (merge) or abandon a PR
MCP tools used
| Tool | Purpose |
repo_pull_request | List or get pull requests |
repo_pull_request_write | Create, update, approve, complete, or abandon a PR |
repo_pull_request_thread | List review threads and comments on a PR |
repo_pull_request_thread_write | Add, reply to, or update a review thread |
Workflow
Listing PRs
- Identify filters: project, repository, status (active/completed/abandoned), reviewer (me), or author.
- Call
repo_pull_request(project, repo, status, reviewerId). - Present the PR List table.
Getting a single PR
- Call
repo_pull_request(repo, prId)— returns title, description, source/target branches, reviewers, status, merge status, and thread count. - Optionally call
repo_pull_request_thread(prId)to show open review threads.
Creating a PR
- Extract: repo, source branch, target branch, title, description.
- Extract optional: reviewers, work item links, draft status.
- Confirm with the user (this is a write operation).
- Call
repo_pull_request_write(create, ...). - Confirm with the new PR ID and URL.
Approving / voting on a PR
- Identify PR ID and vote (approve, approve with suggestions, wait for author, reject).
- Call
repo_pull_request_write(vote, prId, vote). - Confirm the vote was recorded.
Adding a review comment
- Identify PR ID, file path and line (optional), and comment text.
- Call
repo_pull_request_thread_write(prId, comment, filePath, line). - Confirm the thread was created.
Completing a PR
- Identify PR ID and merge strategy (merge commit, squash, rebase, rebase+squash).
- Confirm with the user before proceeding — this is irreversible.
- Call
repo_pull_request_write(complete, prId, mergeStrategy, deleteSourceBranch). - Confirm with the merge commit hash.
Output Format
PR List
| PR # | Title | Author | Source → Target | Threads | Status |
| 89 | feat: add Redis cache layer | Carlos Silva | feature/redis → main | 3 open | Active |
| 91 | fix: null ref in OrderService | Alice Martin | fix/null-order → main | 0 | Draft |
| 77 | chore: update dependencies | Bob Nguyen | chore/deps → main | 0 | Completed |
Review Threads
| Thread | File | Line | Status | Comments |
| #1 | src/Cache/RedisClient.cs | 45 | Active | 2 (Bob, Alice) |
| #2 | src/Cache/RedisClient.cs | 67 | Active | 1 (Bob) |
| #3 | README.md | — | Resolved | 1 (Carlos) |
Notes
- Only confirm write operations (create, approve, complete) with the user before executing. Read-only operations (list, get) can proceed without confirmation.
- When the user says "approve PR #89 with comment", call
repo_pull_request_writefor the vote andrepo_pull_request_thread_writefor the comment — two tool calls. - Completing a PR that has conflicts will fail. Check
mergeStatusfromrepo_pull_requestfirst; ifconflicts, inform the user and suggest resolving them before completing. - Draft PRs cannot be completed until published. Call
repo_pull_request_write(publish)first if the user asks to complete a draft.
Active context
This skill respects the session context set by the ado-context skill.
- If
activeProjectis set, use it automatically as theprojectparameter — do not ask the user to re-specify it. - If no context is set and a project is required, invoke Workflow E of
ado-contextto resolve it (list projects, ask user to pick, then proceed).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

