Skip to content
Back to skills

Diagnose Ci

ASecurity

WAY 5 — diagnose a failed CI run (GitLab pipeline, GitHub Actions run, Azure Pipelines run, Bitbucket pipeline). Use when the user says "ci it", "diagnose ci", "fix ci", "why did ci fail", "check pipeline" with a run URL or ID.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 12, 2026
testingazuregitdevops

Security analysis

A100/100

Scanned October 12, 2026

npx -y skills add GhassenAZZOUZ/claude-qa-agent --skill diagnose-ci --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diagnose Ci?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Diagnose Ci
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ghassenazzouz-diagnose-ci/badge)](https://www.skillsdirectory.com/skills/ghassenazzouz-diagnose-ci)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: diagnose-ci
description: WAY 5 — diagnose a failed CI run (GitLab pipeline, GitHub Actions run, Azure Pipelines run, Bitbucket pipeline). Use when the user says "ci it", "diagnose ci", "fix ci", "why did ci fail", "check pipeline" with a run URL or ID.
---

# WAY 5 — CI Failure Diagnosis

## Step 1: Gather inputs
**Required (ask if missing):** a CI run URL, or a run ID plus the project/repo. The URL tells you the provider. Otherwise use `QA_CODE_HOST` (see the `tracker` skill).

## Phase 1: Fetch & diagnose
Run `ci-diagnostician` with the run reference, the provider (`gitlab` | `github` | `azure-devops` | `bitbucket`), and the non-secret settings for it (`GITLAB_PROJECT_ID` / `GITHUB_REPO` / `AZDO_ORG_URL`+`AZDO_PROJECT` / `BITBUCKET_WORKSPACE`+`BITBUCKET_REPO`). It fetches the run, the failed jobs (end of each log first) and the linked MR/PR's diff itself, so large logs never enter this conversation. It returns:
- the exact failing step and error line
- the failure type: `test-failure` | `build-failure` | `infra-failure` | `config-failure` | `dependency-failure`
- the root cause, cross-checked with the MR/PR diff, plus confidence
- a concrete fix (file + line, or a command), and whether the failure is transient and safe to retry

If the failed job is a QA test job (from `ci-test-setup`), say so. Its JUnit report names the failing `Test#<nn>`, and the fix may be `test-healer`, not product code.

## Phase 2: Report
1. Print the diagnosis in the agent's output format
2. Save it to `./qa-artifacts/ci/ci-<run-id>-<YYYY-MM-DD>.md`
3. Ask the user before posting it as a comment on the MR/PR (`change.comment`)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.