| name | pipeline-debugger |
| description | Debug and monitor GitLab CI/CD pipelines for merge requests. Check pipeline status, view job logs, and troubleshoot CI failures. Use this when the user needs to investigate GitLab CI pipeline issues, check job statuses, or view specific job logs. |
| allowed-tools | Bash, Read |
GitLab CI Debugger
This skill helps debug and monitor GitLab CI/CD pipelines associated with merge requests. It can check pipeline status, display job information grouped by stage, and retrieve logs for specific jobs.
This skill enables Claude to investigate GitLab CI pipeline failures by:
- Checking the current branch's MR pipeline status
- Identifying failed jobs
- Retrieving failed job logs
- Analyzing error messages and suggesting fixes
Prerequisites
- Git repository with GitLab remote configured
- GitLab authentication via GITLAB_TOKEN env var or .netrc file
The script will fail if it detects any missing configuration. Interpret the error message and provide instructions for setting up the required configuration.
Instructions
IMPORTANT: Always run the script from the user's current working directory (where Claude was launched), NOT from the skill directory. The script needs access to the git repository context. Use $SKILL_DIR/scripts/check_mr_pipeline.py to reference the script with an absolute path.
When the user asks to check CI status, debug pipeline failures, or view job logs:
Check Current Pipeline Status
- Run
$SKILL_DIR/scripts/check_mr_pipeline.pywithout arguments to check the current branch's MR pipeline status - The script will display all jobs grouped by stage with status indicators
- Run
Check Specific Branch
- If the user asks to check on the pipeline status for a different branch than the current one, use the
-bor--branchoption to specify that branch.- Example:
$SKILL_DIR/scripts/check_mr_pipeline.py -b feature-branch
- Example:
- If the user asks to check on the pipeline status for a different branch than the current one, use the
View Job Logs
- Use the
-jor--joboption to retrieve and display logs for a specific job - Example:
$SKILL_DIR/scripts/check_mr_pipeline.py -j "test-job-name" - The script will show the job's metadata and full log output
- Use the
Troubleshoot CI Failures
- If the user asks to troubleshoot a CI failure, use the full log output of a job to identify the error and suggest fixes.
Troubleshooting
- No open merge request found: Ensure there's an open MR for the branch
- Authentication errors when running the script: Instruct user to set up GITLAB_TOKEN or .netrc file
- Job not found: Use the script without
-joption first to see available job names