/pipeline-debug
Data Collection
- Read the workflow file (.github/workflows/, .gitlab-ci.yml, Jenkinsfile)
- If GitHub Actions:
gh run list --limit 5for recent executions - If available:
gh run view <id> --log-failedfor failure logs - Check recent commits that may have caused the failure
Analysis Checklist
- Failed step: which command, exit code, stderr output
- Dependencies: did Node/Python/Go versions change?
- Secrets: missing or expired environment variables?
- Cache: invalidated cache causing full rebuild?
- Timing: did job exceed timeout limit?
- Flaky tests: does the same step fail intermittently?
- Docker: base image changed, layer caching broken?
- Permissions: GITHUB_TOKEN missing required scopes?
- Network: external service/registry unreachable?
- Concurrency: parallel jobs competing for resources?
Output Format
Return structured diagnosis:
- Root Cause: What caused the failure (with evidence from logs)
- Fix: Exact command or workflow change to resolve
- Prevention: How to avoid in the future (pinning, retry, cache key)
- Confidence: HIGH/MEDIUM/LOW based on evidence available