triage-ci-failure
Skill by DataDog
Classifies a failed CI job as caused by the PR's own changes, an active incident, flakiness, or infrastructure. Each verdict cites the evidence behind it. Intended for developers whose PR pipelines are red.
Install triage-ci-failure
Built from the published package, never by AI.
git clone --depth 1 https://github.com/DataDog/datadog-agent /tmp/datadog-agent && mkdir -p ~/.claude/skills && cp -r /tmp/datadog-agent/.agents/skills/triage-ci-failure ~/.claude/skills/triage-ci-failureRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/DataDog/datadog-agent /tmp/datadog-agent && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/datadog-agent/.agents/skills/triage-ci-failure ~/.gemini/antigravity-cli/skills/triage-ci-failureAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Triage CI failure is an agent skill that answers one question: is a failed CI job caused by the pull request's own changes? It collects failed jobs from a GitLab pipeline with ddgl, checks how the same job behaves on main using CI Visibility queries run through pup, and searches for matching incidents with a helper script. It then reads the job log and gives a verdict: pr-code, upstream, infra, flake, or inconclusive.
Every verdict must cite the evidence behind it. The skill only diagnoses and does not write fixes or retry jobs. Its output is a structured block for each failed job, which a caller such as handle-pr-ci-failure can act on. It is meant for developers and agents handling red PR pipelines who want to avoid spending hours on failures that are broken upstream.
Written from the project's SKILL.md and checked against it.
What it can do
- Failure collectionLists failed jobs and pipeline state for a ref or pipeline using ddgl.
- CI Visibility baselineChecks whether a failing job also fails on main or is often flaky, using pup queries.
- Incident correlationSearches for a matching CI incident and reads its timeline to see how far the fix has progressed.
- Log readingFetches the job log with ddgl and identifies the failing command and whether it failed in the job's own work or setup.
- Verdict reportingReturns a CI triage result block per failed job with blame, failure signature, evidence, and proposed fix.
What you need
- ddgl and pup installed locally or inside dda env dev
- An authenticated pup session (pup auth login or the dd-auth skill)
Try asking
- Investigate why this CI job failed on my PR
- Is there an active incident affecting CI right now?
- Should I retry this failed job or fix my PR changes?
Good to know
- Diagnosis only. It never writes fixes or retries jobs.
- Without a working pup setup, the CI Visibility and incident steps are unavailable and the verdict says so.
- Some E2E jobs cannot be retried directly and may need recovery steps first.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/triage-ci-failure/SKILL.md, .agents/skills/triage-ci-failure/scripts/incidents.py, .agents/skills/triage-ci-failure/scripts/test_incidents.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/evidence.md2 KB -
references/signals.md6 KB -
scripts/incidents.py19 KB -
scripts/test_incidents.py15 KB
Alternatives to triage-ci-failure
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
triage-ci-failure: common questions
Does this skill fix failing CI?
No. The skill only diagnoses and presents results. Acting on a pr-code verdict is handled by handle-pr-ci-failure.
What verdicts can it return?
It returns pr-code, upstream, infra, flake, or inconclusive. Each verdict comes with the evidence that produced it.
What happens if pup is not authenticated?
The skill says so and continues with the log and pipeline steps only. The verdict states the missing checks.
How do I install triage-ci-failure?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is triage-ci-failure free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is triage-ci-failure safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to triage-ci-failure?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
