Diagnose failing CI checks by finding the first causal error, separating code failures from flaky or infrastructure failures, and validating the smallest correction. Use for broken pipelines, failed GitHub Actions or other CI jobs, flaky tests, build failures, deployment check failures, or requests to explain why CI is red.