一键导入
pbi-dispatcher-ado
Dispatch work items to ADO Agency for ADO-hosted repos. Uses the Agency REST API to create coding agent jobs that produce draft PRs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Dispatch work items to ADO Agency for ADO-hosted repos. Uses the Agency REST API to create coding agent jobs that produce draft PRs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Generate the weekly Android Broker on-call (OCE) WoW + 60-day trend telemetry report as a polished self-contained HTML file. Use this skill for the weekly OCE rotation when asked to "produce the OCE report", "weekly on-call report", "WoW telemetry report", "weekly broker health report", or "generate this week's on-call summary". Pulls from `android_spans` materialized views, attributes regressions/improvements to PRs in `broker/` and `common/`, and writes to `$env:USERPROFILE\android-oce-reports\oncall-wow-report-YYYY-MM-DD.html` (outside the workspace so reports are never committed).
Generate S360 weekly reports for the Android Auth team. Fetches active action items from S360 MCP server, creates ADO work items (PBIs) for untracked items, and produces a polished Outlook-compatible HTML email report. Triggers include "S360 report", "generate S360 report", "weekly S360", "S360 status", "what are our S360 items", or any request to review, report on, or triage S360 action items for the Android Auth team.
Generate a version-over-version release-health report for the Android Broker and/or the Authenticator app as one polished self-contained HTML file. Use this skill when monitoring a rollout — triggers include "monitor this release", "release health report", "broker rollout health", "authenticator rollout", "is this release safe to widen", "what's changing this release and why", "crash regression", "stability report", or "compare a new version vs a previous version". Accepts a Broker version and/or an Authenticator version being rolled out, plus a previous/baseline version per app (or an all-versions baseline), runs Kusto queries for each app to quantify what changed and why, adds an Authenticator crash/stability layer from App Center (crashes per 1k active devices), and writes the HTML to the android-release-reports folder under the user's home directory (outside the workspace so reports are never committed).
Investigate Aria health-metric alerts (threshold-based IcMs of the form "Aria detected an incident in <project> for <metric>"). Use this skill when an IcM was triggered by Aria's threshold monitor on android_spans / android_metrics — NOT for customer-reported authentication failures. Triggers include "investigate Aria alert", "Aria detected an incident", "health metric incident", "telemetry threshold breach", or any IcM where the title starts with "Aria detected".
Analyze Android authentication telemetry using Azure Data Explorer (Kusto). Use this skill for querying android_spans, eSTS correlation, latency investigation, error analysis, and telemetry troubleshooting. Triggers include "query Kusto", "analyze telemetry", "check android_spans", "eSTS correlation", "latency investigation", "error patterns", or any request involving telemetry data analysis.
Systematically explore unfamiliar codebases to find implementations, patterns, and architecture. Use this skill when asked to find code, locate implementations, understand how features work, trace call flows, or explore project structure. Triggers include "where is X implemented", "find the code for Y", "how does Z work in this repo", "trace the flow of", "show me the implementation of", or any request requiring codebase exploration with evidence-based findings.
基于 SOC 职业分类
| name | pbi-dispatcher-ado |
| description | Dispatch work items to ADO Agency for ADO-hosted repos. Uses the Agency REST API to create coding agent jobs that produce draft PRs. |
Dispatch work items to ADO Agency for ADO-hosted repos. Agency generates a solution
as a draft pull request in Azure DevOps.
This skill is for ADO repos only. For GitHub repos, use pbi-dispatcher-github.
Read .github/orchestrator-config.json for:
modules — module-to-repo mapping (each module has a repo key)repositories — repo details: slug (org/project/repo), baseBranch, hostado.org — ADO organization nameado.project — ADO project nameTo resolve a module to dispatch details:
modules.<module>.repo → get the repo keyrepositories.<repo> → get slug, baseBranch, hostaz) authenticated — needed to acquire the Agency API tokencopilot-agent-readyRead PBI details from ADO (via MCP) or from the chat context. Need:
For each work item, check if dependencies (other AB# IDs) have merged PRs. Skip blocked items.
Use Azure CLI to get a bearer token for the Agency API:
$token = az account get-access-token --resource "api://81bbac67-d541-4a6d-a48b-b1c0f9a57888" --query accessToken -o tsv
If this fails:
az account show — user may not be authenticatedaz loginaz is not installed, tell the user Agency dispatch requires Azure CLIFor each ready work item, call the Agency REST API:
$body = @{
organization = "<org-from-config>"
project = "<project-from-repo-slug>"
repository = "<repo-name-from-slug>"
targetBranch = "<baseBranch-from-config>"
prompt = @"
<Full PBI description — Objective, Context, Technical Requirements,
Acceptance Criteria. Include 'Fixes AB#<ID>'.>
"@
options = @{
pullRequest = @{
create = $true
publish = $true
}
}
} | ConvertTo-Json -Depth 4
$response = Invoke-RestMethod `
-Uri "https://copilotswe.app.prod.gitops.startclean.microsoft.com/api/agency/jobs" `
-Method Post `
-Headers @{ Authorization = "Bearer $token"; "Content-Type" = "application/json" } `
-Body $body
Write-Host "Agency job created: $($response | ConvertTo-Json)"
Parsing the repo slug for Agency API parameters:
org/project/repo (from config)organization = first segment (e.g., msazure)project = second segment (e.g., One)repository = third segment (e.g., AD-MFA-phonefactor-phoneApp-android)IMPORTANT for prompt content:
Fixes AB#<ID> so the PR links to the ADO work itemMark the ADO work item as Active, add tag agent-dispatched.
## Dispatch Summary
| AB# | Repo | Method | Status |
|-----|------|--------|--------|
| AB#12345 | org/project/repo | ADO Agency | ✅ Dispatched |
| AB#12346 | org/project/repo | ADO Agency | ⏸ Blocked (waiting on AB#12345) |
### Next Step
> Say **"status"** to check agent PR progress.
> Agency will create a draft PR in ADO when implementation is ready.
az account get-access-token --resource "api://81bbac67-d541-4a6d-a48b-b1c0f9a57888"
If this returns an error:
The user's account may not have Agency enabled for the target repo/org. Tell the user to check their Agency access at their org's Agency administration page.
Check the request body — ensure org, project, and repository match exactly what's in ADO. The repository name must match the ADO repo name, not a slug or URL.