Investigates .NET CI failures using the hlx CLI tool via bash. Use for checking Helix job status, searching build logs, downloading test results, and AzDO build timeline analysis when MCP tools aren't loaded.
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.
None: SKILL.md is the whole skill.
Investigate Helix and Azure DevOps CI failures with hlx when you want shell pipelines, --json, and jq without loading the MCP toolset into context.
Use this skill when:
hlx describe as the fastest first step to understand which MCP-equivalent investigation commands exist before drilling into help or schemas.hlx is installed or available via dotnet run.--json, and optionally jq.Prefer the MCP tools or the ci-analysis / helix-investigation skills (in the dotnet-helix plugin) when those tools are already loaded in context. The CLI is the context-efficient fallback.
dotnet tool install -g lewing.helix.mcp
Local repo fallback:
dotnet run --project src/HelixTool -- <command>
Examples in this skill use hlx; replace it with the local dotnet run form if needed.
The list examples below use hlx v0.11.0 envelopes. Older versions use different JSON shapes; check hlx --version and update with dotnet tool update -g lewing.helix.mcp if needed. Check the command's --schema when using another version.
hlx supports anonymous access for public data and explicit auth for private Helix/AzDO.
HELIX_ACCESS_TOKEN=... or run hlx login; hlx logout removes the stored token.AZDO_TOKEN → Azure CLI / az login → az account get-access-token → anonymous for public projects such as dnceng-public/public.hlx auth-status
hlx azdo auth-status --json
hlx describe
hlx describe azdo search-log
hlx azdo search-log --schema
hlx azdo search-log --help
hlx describe — routing: which command handles what?hlx describe <command> — usage: parameters, defaults, and --schema hints.hlx <command> --schema — full JSON output shape (when you need exact nesting).<command> --help — all flags and arguments.hlx llms-txt still exists for compact CLI notes, but describe is now the recommended discovery path for agents. There is no hlx ci-guide CLI command yet; use helix_ci_guide(repo) / ci://profiles when MCP is available.
hlx azdo builds --pr-number 118282 --top 5 --json
Get build IDs before drilling into timeline, logs, or test runs.
hlx azdo timeline 12345678 --filter failed --json
Use this to surface failed jobs/tasks and the log.id values needed for targeted log reads.
hlx azdo search-log 12345678 --pattern error --max-matches 20 --json
When --log-id is omitted, hlx searches ranked build logs across the build.
hlx azdo log 12345678 42 --tail-lines 300
Run this after timeline or search-log identifies a promising log.id.
hlx status 02d8bd09-9400-4e86-8d2b-7a6ca21c5009 all --json
hlx work-item 02d8bd09-9400-4e86-8d2b-7a6ca21c5009 "System.Net.Tests" --json
hlx files 02d8bd09-9400-4e86-8d2b-7a6ca21c5009 "System.Net.Tests"
Use this when the failure signal lives in Helix work items rather than AzDO orchestration.
hlx azdo test-runs 12345678 --all --json
hlx azdo test-results 12345678 987654 --all --outcomes Failed --json
These commands return list envelopes, not arrays. Check the producer exit status and completeness before consuming .results (see below). test-results defaults to failed outcomes; --outcomes Failed makes that selection explicit. A complete empty selection means no failed results in that run, not that the whole build passed.
If the work item uploaded test results to Helix instead, use:
hlx parse-uploaded-trx 02d8bd09-9400-4e86-8d2b-7a6ca21c5009 "System.Net.Tests"
hlx auth-status
hlx azdo auth-status --json
Do this early when a public build works for others but fails locally.
Examples below assume jq is available; if it is not, plain CLI output is still useful.
# Failed work items (.failed[].Name, .failed[].failureCategory, .failed[].ConsoleLogUrl)
hlx status "$JOB" all --json \
| jq -r '.failed[] | [.Name, .failureCategory, .ConsoleLogUrl] | @tsv'
# Recent builds (.[] .id, .definition.name, .sourceBranch, .triggerInfo["pr.number"])
hlx azdo builds --pr-number 118282 --top 20 --json \
| jq -r '.[] | select(.result == "failed") | [.id, .definition.name, .sourceBranch, (.triggerInfo // {} | .["pr.number"] // "-")] | @tsv'
# Failed timeline records (.records[].type, .records[].name, .records[].log.id)
hlx azdo timeline "$BUILD" --filter failed --json \
| jq -r '.records[] | select(.log != null) | [.type, .name, (.log.id | tostring)] | @tsv'
# Ranked AzDO log hits (.steps[].logId, .steps[].stepName, .steps[].stepResult, .steps[].matchCount)
hlx azdo search-log "$BUILD" --pattern error --max-matches 20 --json \
| jq -r '.steps[] | [.logId, .stepName, .stepResult, (.matchCount | tostring)] | @tsv'
# Failed tests (.results[].id, .testCaseTitle, .outcome, .automatedTestName)
# Run in Bash; capture the producer status before invoking jq.
(
if results=$(hlx azdo test-results "$BUILD" "$RUN" --all --outcomes Failed --json); then
printf '%s\n' "$results" | jq -r '
if .ok == true and .complete == true and .truncated == false
and (.results | type) == "array"
then .results[] | [.id, .testCaseTitle, .outcome, .automatedTestName] | @tsv
else error("Test-result acquisition failed or is incomplete")
end'
else
status=$?
printf '%s\n' "$results" >&2
exit "$status"
fi
)
hlx azdo builds --json returns a bare array. hlx search-log (Helix) is text output only in the CLI; use MCP helix_search for structured matches.
In v0.11.0, hlx azdo changes, test-runs, test-results, artifacts, and test-attachments with --json return {ok, results, returned, total, offset, limit, complete, truncated, next, cache, note} (note may be omitted). Read rows from .results[], not .[]. This does not change the builds bare array, timeline's .records[], or search-log's .steps[].
Treat a collection as usable and complete only when the producer exits 0, .ok == true, .complete == true, and .truncated == false. Use the capture-and-guard pattern above for these list commands, adapting the row projection. Do not turn an error, missing .results, or an incomplete empty page into "no failures". Acquisition failures return {ok:false, error:{...}} and exit 1. A successful acquisition containing failed tests is not an acquisition failure.
Prefer --all for the complete requested list. It cannot be combined with --offset, --limit, or the compatibility alias --top. For intentional bounded inspection, use e.g. hlx azdo artifacts "$BUILD" --limit 1 --json: truncated output exits 2. --allow-truncated changes that exit to 0 but the collection is still partial and must fail the completeness guard. .next contains {offset, limit} for the next page, not a URL; keep the same command, resource, and filters when continuing. A final page does not by itself prove earlier pages were collected. Do not use returned == total as a substitute for the completeness checks.
hlx uses a shared SQLite-backed cache across CLI and stdio MCP usage. Use hlx cache status to inspect the current auth context and hlx cache clear to wipe all contexts. Full TTL and sizing details live in hlx llms-txt.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
helix, azure-devops, ci-failure-investigation, hlx-cli, dotnet-ci
2 skills in this plugin
/dotnet-dnceng:helix-clifrom dotnet-dnceng
npx claudepluginhub dotnet/arcade-skills --plugin dotnet-dncengOther plugins' skills for the same job