/dotnet-dnceng:ci-analysisfrom dotnet-dnceng
Analyze CI build and test status from Azure DevOps and Helix for dotnet repository PRs. Use when checking CI status, investigating failures, determining if a PR is ready to merge, or given URLs containing dev.azure.com or helix.dot.net. Also use when asked "why is CI red", "test failures", "retry CI", "rerun tests", "is CI green", "build failed", "checks failing", or "flaky tests". DO NOT USE FOR: investigating stale codeflow PRs or dependency update health, tracing whether a commit has flowed from one repo to another, reviewing code changes for correctness or style.
Ships in dotnet-dnceng. 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.
Analyze CI build status and test failures in Azure DevOps and Helix for dotnet repositories (runtime, sdk, aspnetcore, roslyn, and more).
🚨 NEVER use
gh pr review --approveor--request-changes. Only--commentis allowed. Approval and blocking are human-only actions.
Workflow: Gather PR context (Step 0) → collect failure data → synthesize recommendations. The agent drives the investigation; tools provide the data.
Accessing services: Start with MCP tools if available. Get repo-specific CI guidance early — it provides the investigation workflow, tool selection, failure patterns, and classification algorithm for that repo. The guidance evolves with the toolset, so it always reflects current capabilities.
If MCP tools aren't loaded, the Helix CLI tool provides the same capabilities via bash with progressive discovery.
For AzDO, multiple tool sets may exist for different organizations — match the org in the build URL to the correct tools (see references/azdo-helix-reference.md). If queries return null, check the org before trying other approaches. For complex investigations, track what you've tried in SQL to avoid repeating failed approaches.
dev.azure.com, helix.dot.net, or GitHub PR links with failing checksNot for: GitHub Actions workflows, non-Helix repos, or build performance (use binlog analysis).
💡 Per-repo CI patterns differ significantly. Get repo-specific guidance early — it tells you which tools to use, what log patterns to search for, and what gotchas to expect. This is the fastest path and prevents wasted calls.
If MCP tools aren't available, the Helix CLI tool provides the same capabilities via bash. A legacy PowerShell script is also available for environments that support it.
For full parameter reference and mode details, see references/script-modes.md.
| PR Type | How to detect | Interpretation shift |
|---|---|---|
| Code PR | Human author, code changes | Failures likely relate to the changes |
| Flow/Codeflow PR | Author is dotnet-maestro[bot], "Update dependencies" | Missing packages may be behavioral, not infrastructure |
| Backport | Title mentions "backport", targets release branch | Check if test exists on target branch |
| Merge PR | Merging between branches | Conflicts cause failures, not individual changes |
| Dependency update | Bumps package versions, global.json | Build failures often trace to the dependency |
🚨 Don't re-fetch data you already have. Only make additional calls for deeper investigation (Helix log searches, binlog analysis, build progression).
Classify each failure. Determine whether it's a build error, test failure, crash, timeout, or infrastructure issue. Exit codes, log patterns, and Helix work item state all contribute — the repo-specific CI guidance includes a classification algorithm with the patterns and recommended next steps for each category. Crashes (exit code -4, 139, 134) don't always mean tests failed — check for recoverable test results before concluding.
Cross-reference with known issues. Check which failures are already matched by Build Analysis — green means all failures are accounted for, red means some are unmatched. For each unmatched failure, search for related known issues by error message, test name, or job type. The user needs a per-failure verdict, not two separate lists.
Correlate with PR changes. If the same files appear in both the PR diff and the failure messages, the failure is likely PR-related. If not, check whether the same test fails on the target branch — that distinguishes pre-existing flakes from regressions.
Verify before claiming. Don't call it "infrastructure" without a Build Analysis match or target-branch verification. Don't call it "safe to retry" unless ALL failures are accounted for.
🚨 Check build progression on multi-commit PRs. If the PR has multiple commits, query AzDO for builds on
refs/pull/{PR}/merge(sorted by queue time, top 10-20). Present a progression table showing which builds passed/failed at which SHAs — this narrows failures to the commit that introduced them. See references/build-progression-analysis.md.
For interpreting error categories, crash recovery, and canceled jobs: references/failure-interpretation.md
For generating recommendations from [CI_ANALYSIS_SUMMARY] JSON: references/recommendation-generation.md
🚨 Keep tables narrow — 4 short columns max (# | Job | Verdict | Issue). Put error descriptions, work item lists, and evidence in detail bullets below the table, not in cells. Wide tables wrap and become unreadable in terminals.
🚨 Use markdown links for PRs (
[#121195](url)), builds ([Build 1305302](url)), and jobs ([job name](azdo-job-url)). The script output and MCP tools provide URLs — thread them through.
Lead with a 1-2 sentence verdict, then the summary table, then detail bullets (one per failure), then recommended actions. For the full format example: references/recommendation-generation.md.
🚨 Every failure verdict needs evidence — no "Likely flaky" without proof. Each row in your summary table must cite a specific source: known issue number, Build Analysis match, or target-branch verification. If Build Analysis didn't match it and you haven't verified the target branch, the verdict is "Unmatched — needs investigation", not "Likely flaky." A test that looks like it could be flaky is not the same as one you've verified is flaky.
❌ Don't label failures "infrastructure" without evidence. Requires: Build Analysis match, identical failure on target branch, or confirmed outage. Exception:
tests-passed-reporter-failedis genuinely infrastructure.
❌ Don't dismiss timed-out builds. A build "failed" due to AzDO timeout can have 100% passing Helix work items. Check Helix job status before concluding failure.
❌ Missing packages on flow PRs ≠ infrastructure. Flow PRs request different packages. Check which package and why before assuming feed delay.
❌ Don't present failures and known issues as separate lists. Cross-reference them: for each
failedJobDetailsentry, state whether it matches aknownIssuesentry or is unmatched. Anunclassifiedfailure can still match a known issue by error pattern.
❌ Don't say "safe to retry" with Build Analysis red. Map each failing job to a specific known issue first.
❌ Don't execute
gh issue createwithout explicit user approval. Always present the draft command as text and ask the user to confirm before running it. This applies to KBE issues and any other GitHub issue creation.
❌ Don't use raw REST APIs when higher-level tools are available. Check your available tools for Azure DevOps and Helix operations first. REST API fallback is for when those tools are genuinely unavailable, not a first resort.
[ActiveIssue], [SkipOnHelix], [QuarantinedTest], and [ConditionalFact]/[ConditionalTheory] with skip conditionsreferences/analysis-workflow.md (opens in a new tab)references/azdo-helix-reference.md (opens in a new tab)references/azure-cli.md (opens in a new tab)references/build-progression-analysis.md (opens in a new tab)references/delegation-patterns.md (opens in a new tab)references/failure-interpretation.md (opens in a new tab)references/helix-artifacts.md (opens in a new tab)references/kbe-issue-creation.md (opens in a new tab)references/manual-investigation.md (opens in a new tab)references/recommendation-generation.md (opens in a new tab)references/script-modes.md (opens in a new tab)references/sql-tracking.md (opens in a new tab)scripts/Get-CIStatus.ps1 (opens in a new tab)scripts/Test-KnownIssuePattern.ps1 (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/flow-analysisAnalyze VMR codeflow health using maestro MCP tools and GitHub MCP tools. USE FOR: investigating stale codeflow PRs, checking if fixes have flowed through the VMR pipeline, debugging dependency update issues, checking overall flow status for a repo, diagnosing why backflow PRs are missing or blocked, subscription health, build freshness, URLs containing dotnet-maestro or "Source code updates from dotnet/dotnet". DO NOT USE FOR: CI build failures (use ci-analysis skill), code review (use code-review skill), general PR investigation without codeflow context, tracing whether a specific commit/PR has reached another repo (use flow-tracing skill). INVOKES: maestro and GitHub MCP tools, flow-health.cs script.
/flow-tracingTrace dependency flow across .NET repos through the VMR pipeline. USE FOR: checking if a PR/commit from repo A has reached repo B, finding what runtime SHA is in an SDK build, tracing dependency versions through the VMR, checking if a commit is included in an SDK build, decoding SDK version strings, "has my fix reached runtime", "did roslyn#80873 flow to runtime", "what SHA is in SDK version X", cross-repo dependency tracing, mapping SDK versions to VMR commits. DO NOT USE FOR: codeflow PR health or staleness (use flow-analysis skill), CI build failures (use ci-analysis skill). INVOKES: maestro and GitHub MCP tools, Get-SdkVersionTrace.ps1 script.
/maestro-cliQuery Maestro/BAR dependency flow data using the mstro CLI tool via bash. USE FOR: subscription health checks, build flow tracing, codeflow status, channel discovery, triggering subscription updates — when MCP tools aren't loaded or when scripting with JSON output and jq. Also use when investigating "is this subscription stale", "what's the latest build", "check backflow status". DO NOT USE FOR: tasks where maestro MCP tools are already available in context (prefer flow-analysis or flow-tracing skills when MCP server is loaded). INVOKES: bash (mstro CLI commands with --json output).
npx claudepluginhub lewing/agent-plugins --plugin dotnet-dnceng