skill-mass-triage
Skill5.3k starsChanged 2 months agoMITView on GitHub
[Skill] Batch-triage build failures from a JSON results file — diagnose with parallel sub-agents, bucketize by root cause, and produce a consolidated summary. Use when asked to triage a Koji results file. Triggers: batch triage, mass triage, triage results file, bucketize failures.
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/azurelinux
- A Hacker News story“Microsoft's Azure Linux”Hacker News · Jan 29, 2026 · 66 points
- @blowdart.me“github.com/microsoft/az...”Bluesky · Dec 13, 2024 · 10 likes
- A Hacker News story“Microsoft Azure Linux”Hacker News · May 19, 2026 · 4 points
- @matsuu.bsky.social“Microsoft、従来CBL-Marinerと呼んでいた自家製Linuxディストリビューションの名称をAzure Linuxに変更した模様。わいわい”Bluesky · Mar 10, 2024 · 4 likes
- project-copacetic/copacetic“[BUG] copa overwrites /usr/sbin symlink for mariner distroless/debug”GitHub · Nov 26, 2024 · 3 reactions
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub, Bluesky and Hacker News (40 times).
On GitHub · 26
- Nov 26, 2024[BUG] copa overwrites /usr/sbin symlink for mariner distroless/debug — project-copacetic/copacetic3 reactions · 1 comment
- Sep 7, 2025Release Expat 2.7.2 (ETA 2025-09-16) — libexpat/libexpat2 reactions
- May 28, 2025Add shadow-utils to our AZL3 images — dotnet/dotnet-buildtools-prereqs-docker2 reactions · 2 comments
- Mar 25, 2025Release Expat 2.7.1 (ETA 2025-03-27) — libexpat/libexpat2 reactions · 2 comments
- Sep 18, 2026Support Azure Linux 3 — microsoft/nvx1 reaction · 1 comment
21 more on GitHub
- Jun 10, 2024Add Azure Linux OS — repology/repology-updater1 reaction · 3 comments
- May 20, 2024Latest Azure Linux 3.0 drop is getting TLS error during `dotnet restore` — dotnet/dotnet-docker1 reaction · 1 comment
- Mar 19, 2024cbl-mariner images don't include useradd — microsoft/go1 reaction · 5 comments
- Sep 18, 2026feat(config): add VM SKU groups for test fan-out — microsoft/azure-linux-dev-tools0 reactions
- Jul 27, 2026Add Support For AzureLinux 4.0 — microsoft/WSL0 reactions · 6 comments
- Jul 8, 2026[New Product] Azure Linux — endoflife-date/endoflife.date0 reactions · 1 comment
- Jul 3, 2026Azure Linux 4.0 base image — alanta/azure-egress-proxy0 reactions · 2 comments
- Apr 2, 2026when running `azldev config dump` images return only an absolute path — microsoft/azure-linux-dev-tools0 reactions
- Sep 2, 2025Enable `CONFIG_INET_DIAG_DESTROY` kernel config in the Docker Desktop's linuxkit kernel — docker/roadmap0 reactions
- Aug 6, 2025[RFE] Enable CONFIG_INET_DIAG_DESTROY — flatcar/Flatcar0 reactions · 18 comments
- Jul 25, 2025Consume expanded BTF info on Azure Linux — microsoft/retina0 reactions
- May 11, 2025Update install.sh to ignore mkdir errors — microsoft/KeysInUse-OpenSSL0 reactions
- Mar 10, 2025This is an auto-generated pull request to cherry-pick commit 328a3a73fcdb595b632250fda537fa4037aa55f1 to 3.0-dev. Original PR: #12825 — Pitan1993/NiceHashBot0 reactions
- Mar 10, 2025This is an auto-generated pull request to cherry-pick commit 328a3a73fcdb595b632250fda537fa4037aa55f1 to 3.0-dev. Original PR: #12825 — nicehash/NiceHashMiner0 reactions · 2 comments
- Feb 4, 2025CVE-2024-46854 CVE-2024-43849 CVE-2024-46852 CVE-2024-46853 CVE-2024-41080 CVE-2024-46849 CVE-2024-50086 CVE-2024-47671 CVE-2022-48635 CVE-2024-43834 CVE-2024-36893 CVE-2024-46695 CVE-2024-43846 CVE-2024-50036 CVE-2024-47672 CVE-2024-44931 CVE-2024-50058 CVE-2024-46858 CVE-2024-43835 CVE-2024-36972 — solflare-wallet/utl-aggregator0 reactions
- Nov 26, 2024LiveOS ISOs cannot boot when SELinux is enabled — dracut-ng/dracut0 reactions · 10 comments
- Sep 18, 2024Extension fails on Azure Linux 3.0 as an unsupported distro — Azure/Guest-Configuration-Extension0 reactions · 1 comment
- Sep 5, 2024Request: New azurelinux tags — PowerShell/PowerShell-Docker0 reactions
- Aug 1, 2024Won't build due to error obtaining VCS status: exit status 128 (and workaround) — cblichmann/btrfscue0 reactions · 1 comment
- Mar 28, 2024FYI issue reported to CBL-mariner: tdnf cannot install ca-certificates due to certificate error — microsoft/wslg0 reactions · 3 comments
- Aug 22, 2022Add support for cgmanifest — aboutcode-org/scancode-toolkit0 reactions
On Bluesky · 11
- Dec 13, 2024github.com/microsoft/az... — @blowdart.me10 likes and reposts · 1 reply
- Mar 10, 2024Microsoft、従来CBL-Marinerと呼んでいた自家製Linuxディストリビューションの名称をAzure Linuxに変更した模様。わいわい — @matsuu.bsky.social4 likes and reposts
- May 19, 2026So Microsoft have a new server OS eh? Azure Linux https://github.com/microsoft/azurelinux — @ruari.velocipederider.com.ap.brid.gy2 likes and reposts · 2 replies
- Jun 6, 2026Microsoft circa 2000: Linux is communism Microsoft now: Has it's own Linux OS github.com/microsoft/az... — @martin-s.bsky.social1 likes and repost · 1 reply
- May 19, 2026Azure Linuxのリモートリポジトリはこちら github.com/microsoft/az... — @woodstream.jp1 likes and repost
6 more on Bluesky
- Jan 29, 2026Microsoft's Azure Linux Discussion | hackernews | Author: AbuAssar — @news.karthihegde.dev1 likes and repost
- Jan 29, 2026Microsoft's Azure Linux | Discussion — @hackernewsbot.bsky.social1 likes and repost
- Oct 8, 2025they do!! github.com/microsoft/az... — @jon.me.uk1 likes and repost
- Dec 11, 2024github.com/microsoft/az... — @mahdi.simply-vibing.com1 likes and repost
- Sep 25, 2024📦 microsoft / azurelinux ⭐ 4,196 (+18) 🗒 RPM Spec Linux OS for Azure 1P services and edge appliances — @github-trending.bsky.social1 likes and repost
- Sep 25, 2024今日のGitHubトレンド microsoft/azurelinux CBL-Marinerは、マイクロソフトのクラウドインフラおよびエッジ製品・サービス向けのLinuxディストリビューションです。… — @dailygithubtrends.bsky.social1 likes and repost
On Hacker News · 3
- Jan 29, 2026Microsoft's Azure Linux66 points · 109 comments
- May 19, 2026Microsoft Azure Linux4 points
- Sep 23, 2024Microsoft Azure Linux (cloud v3 and not Wal)2 points · 1 comment
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- base/comps/AGENTS.mdAGENTS.md
- distro/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- azldev-add-componentSkill
- azldev-build-componentSkill
- azldev-comp-tomlSkill
- azldev-imageSkill
- azldev-mockSkill
- azldev-overlay-metadataSkill
- azldev-overlaysSkill
- azldev-remove-componentSkill
- azldevSkill
- azldev-update-componentSkill
- skill-aks-healthSkill
- skill-deployment-contextSkill
- skill-fedora-mirror-injectionsSkill
- skill-koji-triageSkill
- skill-kql-queriesSkill
- skill-metricsSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Read the results file and filter buildTasks to only entries with (kojiInfo.kojiTaskStatus of "Failed" and taskStatus not …
- Distinctive: line 56
If the user/prompt has provided a Koji base URL, use that.
- Distinctive: line 59
If no URL is available, prompt the user to provide a Koji base URL before proceeding.
- Very specific: line 60
Create the triage output directory: base/build/work/scratch/triage/.
- Distinctive: line 61
Ensure there are no existing JSON files in the triage directory from previous runs, to avoid confusion.
- Very specific: line 62
Use cmdline tools (jq, python, etc.) to partition the failed builds into batches of ~6 builds each, writing a JSON file per batch to the …
- Distinctive: line 90
After all sub-agents complete, verify that a JSON file exists for each failed build.
- Very specific: line 94
Read all *.json files from base/build/work/scratch/triage/.
- Very specific: line 97
Write the consolidated summary to ./triage-summary.json with this structure:
- Very specific: line 128
Use this as the prompt template when spawning diagnostic sub-agents.
- Distinctive: line 186
If a sub-agent fails or hangs, note the affected task IDs and retry them individually.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Batch Build Triage
Triage failed builds from a JSON results file. Diagnose each failure using sub-agents, bucketize by root cause, and produce a consolidated summary. This workflow handles any number of failures — from 1 to hundreds — using the same sub-agent dispatch pattern throughout.
Input Format
The input results file is a JSON object with this structure:
{
"numKojiJobs": 9876,
"numKojiJobsClosed": 9870,
"numKojiJobsFailed": 6,
"buildTasks": [
{
"taskStatus": "Failed",
"kojiInfo": {
"kojiTaskNumber": 12345,
"componentName": "my-package",
"kojiTaskStatus": "Failed"
}
}
]
}Key fields:
buildTasks[].taskStatus—"Failed"or"Completed"- NOTE: Some builds may have overall status "Completed" while individual tasks failed, or vice versa. Use the OR of both
taskStatusandkojiTaskStatusto catch all failure modes.
- NOTE: Some builds may have overall status "Completed" while individual tasks failed, or vice versa. Use the OR of both
buildTasks[].kojiInfo.kojiTaskStatus— more detailed status. Filter to"Failed"for triage.buildTasks[].kojiInfo.kojiTaskNumber— the Koji task ID (use with the Koji base URL to construct URLs)buildTasks[].kojiInfo.componentName— package name
Workflow
Phase 1 — Diagnose (parallel sub-agents)
STOP — READ THIS FIRST. You are the orchestrator. Your ONLY job in this phase is to:
- Parse the results file to extract failed task IDs and package names
- Configure Koji and create the output directory
- Partition failures into batches and write batch files
- Generate the sub-agent prompt
.mdfile- Spawn sub-agents to do the actual diagnosis
Do NOT fetch Koji logs, read build output, investigate failures, or do any diagnostic work yourself. That is the sub-agents' job. If you catch yourself calling
koji_fetch, reading a skill file about how to triage, or analyzing build errors — you have gone off-script. Stop and spawn a sub-agent instead.
IMPORTANT: Always save diagnostic instructions as a
.mdfile in the working directory and reference it by path when spawning sub-agents — do NOT pass full prompt text inline inrunSubagentcalls. This ensures sub-agents can read instructions with file tools, avoids context window bloat in the orchestrator, and persists the instructions for debugging.
- Read the results file and filter
buildTasksto only entries with (kojiInfo.kojiTaskStatusof"Failed"andtaskStatusnot"SkippedDuplicateNvr") ortaskStatusof"Failed"(some failed builds may still have overall status "Completed"). Extract thekojiTaskNumberandcomponentNamefor each failed task. - Configure the koji MCP tool:
- If the user/prompt has provided a Koji base URL, use that.
- Otherwise, check if the MCP tool is already configured with a base URL (the tool may have been pre-configured by the user or the orchestrator). If it is configured, use that URL.
- Also check the environment variable
KOJI_BASE_URLfor a URL to use. If it is set, use that. - If no URL is available, prompt the user to provide a Koji base URL before proceeding.
- Create the triage output directory:
base/build/work/scratch/triage/.
- Ensure there are no existing JSON files in the triage directory from previous runs, to avoid confusion. If there are, prompt the user to confirm deletion before proceeding.
- Use cmdline tools (jq, python, etc.) to partition the failed builds into batches of ~6 builds each, writing a JSON file per batch to the triage directory (e.g.,
base/build/work/scratch/triage/batch-1.json,batch-2.json, etc.) with this structure:
All temporary and intermediate files (jq output, working files, batch files, etc.) MUST go in
base/build/work/scratch/triage/— do NOT use/tmpor baremktemp -d.
{
"tasks": [
{ "taskID": 12345, "package": "my-package" },
...
]
}Use your best judgement on how many builds to put in each batch, but ~6 should be the maximum to keep the sub-agent workload manageable. Try to maximize parallelism (i.e., more smaller batches rather than fewer larger batches) while keeping the batch size reasonable for a single sub-agent to handle in a timely manner.
For example, if there are 20 failed builds, it would be better to create 10 batches of 2 builds each, rather than 2 batches of 10 builds each, to enable more parallel sub-agents and faster overall completion.
- Configure the koji MCP tools for the sub-agents (e.g., set base URL, allow insecure if needed) - do this once in the orchestrator before spawning sub-agents, and they will inherit the configuration.
- For each batch, spawn a sub-agent using
runSubagent. Launch sub-agents in parallel if the platform supports it, BUT limit to 10 parallel sub-agents per wave to avoid rate limiting (i.e., put multiplerunSubagentcalls in the same tool-call block; if there are more than 10 batches, launch them in successive waves of 10). Each sub-agent receives:- The Koji base URL
- The path to its batch file
- The output directory path
- The path to the
.mdprompt file (do NOT inline the prompt content — reference by file path only)
IMPORTANT: Always use a sub-agent — even for a single build. Do NOT diagnose failures inline in the orchestrator. Sub-agents stay scoped to categorization because they follow the prompt
.mdfile; the orchestrator tends to over-investigate when it handles diagnosis directly. The orchestrator's job is strictly orchestration: partition, dispatch, collect, bucketize.
- Each sub-agent writes one JSON file per build to the triage directory:
base/build/work/scratch/triage/<taskID>.json - After all sub-agents complete, verify that a JSON file exists for each failed build. Re-run any missing ones.
Phase 2 — Bucketize & Summarize (single pass)
- Read all
*.jsonfiles frombase/build/work/scratch/triage/. - Collect the free-form
failureCategoryvalues assigned by sub-agents. - Normalize similar categories into canonical buckets (e.g., "implicit-int error", "C99 compliance", "GCC 14 implicit int" → "gcc-implicit-int"). Use your judgment — the goal is <= ~15 distinct buckets, not one per build. Use your best judgment to assign bucket names that are concise, descriptive, and offer a balance between specificity and generality.
- Write the consolidated summary to
./triage-summary.jsonwith this structure:
{
"generated": "2026-02-23T...",
"inputFile": "<results file name>",
"totalBuilds": 150,
"failedBuilds": 42,
"buckets": [
{
"name": "gcc-implicit-int",
"description": "C code uses K&R-style implicit int declarations that are errors in GCC 14+",
"count": 12,
"tasks": [
{ "taskID": 12345, "package": "gt", "arch": "aarch64", "shortSummary": "dim.c uses old-style function defs" },
...
]
},
...
],
"undiagnosed": []
}- Clean up triage scratch files with
koji_cleanup(but only after the summary is written, in case you need to re-run any sub-agents). - Present a human-readable summary to the user: bucket name, count, and representative example for each.
Sub-Agent Prompt Template
Use this as the prompt template when spawning diagnostic sub-agents. Save a single copy of this prompt as a .md file into the working directory (e.g., base/build/work/scratch/triage/diagnose-prompt.md) and reference it in the runSubagent calls, passing the variables during the call to runSubagent.
You are diagnosing Koji build failures for Azure Linux. For each task below, investigate the failure and write a JSON summary file.
## Inputs from the orchestrator
- Koji base URL: {{KOJI_BASE_URL}}
- Batch file path: {{BATCH_FILE}} (contains a JSON array of `{ "taskID": <number>, "package": "<name>" }` objects)
- Output directory: {{OUTPUT_DIR}}
## Investigation procedure
Read the skill file at `.agents/skills/skill-koji-triage/SKILL.md` for the full investigation
workflow — including how to use MCP tools, fetch logs, and categorize failures. Follow it exactly.
## Setup
1. Read `.agents/skills/skill-koji-triage/SKILL.md` (MUST do this first).
2. The orchestrator has already configured the default Koji base URL and SSL settings. **Do NOT call `set_koji_url`** — changing the default would affect other parallel sub-agents sharing the same MCP server.
- If you need to fetch from a different Koji instance for some reason, pass `override_base_url` directly to `koji_fetch` or `koji_allow_insecure` instead.
3. If the koji tools do not work as-is, inform the orchestrator of the issue — do not attempt to reconfigure them yourself, as that may cause issues for other parallel sub-agents.
## Tasks to diagnose
Read the batch file at: {{BATCH_FILE}}
It contains a JSON array of `{ "taskID": <number>, "package": "<name>" }` objects.
Construct the Koji URL tail for each task as: /koji/taskinfo?taskID=<ID>
## For each task
Follow the "Investigation Workflow" section from the skill file. Then:
1. Identify the failure category. Use a short kebab-case string (e.g., "missing-build-dependency", "gcc-implicit-int", "test-failure", "mock-infra", "source-prep-plugin"). Be specific but consistent.
- Note: Your job is JUST to categorize the failure, not to propose a fix or root cause analysis. The category should be based on the observed symptoms and error messages, not assumptions about the underlying issue.
2. Write a JSON file to: {{OUTPUT_DIR}}/<taskID>.json
- The orchestrator will read these files later for bucketization and summary. Follow the schema below exactly.
## Output JSON schema (one file per task)
{
"taskID": <number>,
"url": "<full task URL>",
"package": "<package name>",
"failureCategory": "<short-kebab-case-category>",
"failurePhase": "<prep|build|install|check|dependency|infra|source-prep>",
"shortSummary": "<1-2 sentence human-readable summary>"
}
## Rules
- Do NOT call `set_koji_url` — the orchestrator has already set the default. Use `override_base_url` on `koji_fetch` if you need to target a different URL.
- Do NOT call `koji_cleanup` — there may be multiple sub-agents working in parallel, and they should not delete each other's files. The orchestrator will handle cleanup after all sub-agents complete.
- Do NOT call `koji_allow_insecure` — the orchestrator has already configured SSL settings.
- If a task has no downloadable logs (e.g., plugin error in Result field only), note that in shortSummary.
- If you can't determine the failure, set failureCategory to "unknown" and explain in shortSummary.
- Return a brief summary of findings when done (which tasks succeeded/failed diagnosis).
- Do not edit or modify any files outside of your assigned output JSON file. If you need additional files or configuration, inform the orchestrator.Notes
- The orchestrator handles partitioning, sub-agent dispatch, result collection, bucketization, and cleanup.
- Sub-agents handle only Koji fetching / log analysis / JSON writing — they don't need workspace context.
- If a sub-agent fails or hangs, note the affected task IDs and retry them individually.
- Clean up triage scratch files with
koji_cleanuponly after the final summary is written.
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.

