/gitlab:ci-monitor [mr-url | branch | pipeline-id] [--max-minutes N] [--project group/project]from gitlab
Watches GitLab CI pipelines and investigates failures. Monitors MRs, branches, or specific pipelines and reports green, failure diagnosis, or stop events.
Ships in gitlab. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Watch a GitLab pipeline and report its outcome to the caller: green, a failure diagnosis, or the event that ended the watch. Done when the watcher has exited or been stopped and the outcome is reported.
$ARGUMENTS
https://gitlab.com/group/project/-/merge_requests/123): --mr <url>--branch <name>--pipeline-id <id>glab mr view --output json | jq -r '.web_url'.Branch and pipeline-id modes infer the project from the git remote. Pass --project <group/project> to override.
Run the watcher with the Monitor tool and persistent: true:
bun ${CLAUDE_SKILL_DIR}/scripts/watch.ts --mr <url> | --branch <name> | --pipeline-id <id> [--project <group/project>]
Optional flags: --max-minutes <N>, --queued-timeout <minutes>, --api-error-threshold <N>.
The script prints one JSON object per line. run_id is the GitLab pipeline ID. It exits on success, fatal (a 401, 403, or 404 from glab), merged, pr-closed, and max-time-reached. Report each event once.
status running: keep watching.status failing: dispatch gitlab:logs (below) and report its summary. A retried job reports running next.status success: report green.conflicts: report the SHA and stop the monitor.mergeable-unknown, queued-timeout, api-error, blocked (waiting on a manual job), fatal, merged, pr-closed, max-time-reached: report it.On failing, pass run_id and the project path (from --project or the MR URL) to the logs agent:
Agent(subagent_type="gitlab:logs", prompt="Fetch failing-job logs for pipeline <run_id> in project <group/project>. Return the JSON summary described in the logs agent definition.")
Report the diagnosis and leave fixes, conflict resolution, and merge checks to the caller (pull-request:babysit owns fixes). Stop a running watcher with TaskStop.
For editing .gitlab-ci.yml rather than watching a run:
glab ci lint # Validate .gitlab-ci.yml before pushing
glab ci lint --dry-run --include-jobs [--ref <b>] # Simulate pipeline creation and list its jobs
glab ci config compile # Merged config with includes resolved
glab ci get [-p <pipeline-id> | --merge-request <iid>] [--status failed] -F json
glab ci run # Trigger a pipeline for the current branch
glab ci trace <job-id> # Stream job logs
glab ci retry <job-id> # Retry a failed job
glab ci view needs a TTY and fails here. Use glab ci get for pipeline and job detail.
Keyword syntax is at https://docs.gitlab.com/ci/yaml/ and predefined variables at https://docs.gitlab.com/ci/variables/.
What SKILL.md sets; muted values are Claude Code's defaults
low2 skills in this plugin
npx claudepluginhub bendrucker/claude --plugin gitlabOther plugins' skills for the same job