From kraftwork-gitlab
Use when a CI pipeline is failing, you want to check pipeline status, read job logs, retry failed jobs, or watch a running pipeline
How this skill is triggered — by the user, by Claude, or both
Slash command
/kraftwork-gitlab:ci-describeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Debug and monitor CI/CD pipelines via `glab` CLI.
Debug and monitor CI/CD pipelines via glab CLI.
Optional subcommand: status, debug, retry, watch.
Examples: /glab-pipeline, /glab-pipeline debug, /glab-pipeline retry, /glab-pipeline watch
Default: status. If pipeline is failed, suggest running debug.
Auto-detect from current git repo. If outside a repo, pass --repo <git.group>/<name> (using git.group from workspace.json).
glab auth status 2>&1
If not authenticated, STOP and suggest glab auth login.
glab ci status
If no pipeline found for current branch:
glab ci list --per-page 5
Show last 5 pipelines with branch, status, and date.
glab ci view
Present each stage and its jobs with status:
Pipeline #12345 — failed
build:
build-image ............. passed (2m 13s)
test:
unit-tests .............. passed (4m 02s)
integration-tests ....... failed (1m 45s)
deploy:
deploy-staging .......... skipped
If pipeline is failed, suggest:
Run /glab-pipeline debug to investigate the failing job(s).
glab ci view
Parse output to find jobs with failed status. Store job names and IDs.
If no failing jobs:
No failed jobs in the latest pipeline. Current status: [STATUS].
Then STOP.
For each failing job:
glab ci trace [JOB_NAME]
This streams the full log. Since logs can be very long, focus on:
error, Error, ERROR, FATAL, fatal, failed, FAILEDIf glab ci trace doesn't work for the specific job, fall back to:
glab api "projects/:id/jobs/:job_id/trace" | tail -80
For each failing job, present:
Pipeline #12345 — [N] failed job(s)
1. [job-name] (stage: [stage])
Error: [concise description of failure]
Likely cause: [assessment]
2. ...
Suggested next steps:
- [Fix X and push] or
- [/glab-pipeline retry to retry flaky job]
glab ci view
Find failed jobs.
If no failed jobs:
No failed jobs to retry. Pipeline status: [STATUS].
Then STOP.
If one failed job, retry it directly. If multiple, ask the user:
Multiple jobs failed:
1. [job-name-1]
2. [job-name-2]
3. All failed jobs
Which would you like to retry?
For a specific job:
glab ci retry [JOB_ID]
For the full pipeline:
glab ci retry
Report: what was retried, new pipeline/job URL. Suggest /glab-pipeline watch to monitor.
glab ci status
If no running pipeline:
No running pipeline for current branch. Latest pipeline status: [STATUS].
Then STOP.
glab ci view --live
If --live is not supported, poll with:
glab ci status
Report job completions as they happen. When pipeline finishes:
Pipeline #12345 — [passed/failed]
[Full job breakdown with durations]
[If failed: suggest /glab-pipeline debug]
[If passed: all clear]
.gitlab-ci.yml exists.npx claudepluginhub filipeestacio/kraftwork --plugin kraftwork-gitlabManages GitLab CI/CD pipelines and jobs using glab ci: lists pipelines, validates .gitlab-ci.yml, views status, traces/retires jobs. Useful for debugging failures and config validation.
Diagnoses and fixes CI/CD pipeline failures including build errors, test failures, and pipeline issues. Uses git log analysis and structured debugging to identify root causes.
Waits for CI/CD pipelines (GitHub Actions, GitLab CI, Vercel) to finish after pushing code, then reports results. Useful for push-then-verify workflows.